| Overview |
Project Demo Box is a collection of ready-to-use code, demos, and sample applications that demonstrate important concepts and features of the Java ME platform. Among other code Project Demo Box includes the full source code of the samples and demos that ship with Sun Java Wireless Toolkit (WTK) for CLDC. The source code for these samples and demos can be found in the Project Demo Box WTK repository, and it is maintained, improved, and added to in a community effort. A brief description and a screen shot of each demo is listed below. If a "Launch" button is present you can run the demo directly in your browser using the mpowerplayer emulator, which requires Java WebStart Technology. |
Useful Links: How to Run Troubleshooting Contribute Contacts License: BSD |
| License | |||
| The source code in this project is licensed under BSD. | |||
| How to Run the Demos | |||
|
First use subversion to check out the directory of the particular demo you are interested in (or check out the entire demo directory). There are two ways to run a particular demo:
|
|||
| Advanced Multimedia Supplements | |||
| APIs | Description | View / Run | |
| JSR234 Advanced Multimedia Supplements |
This MIDlet suite demonstrates the power of JSR 234 Advanced Multimedia
Supplements (AMMS). It consists of the following MIDlets:
|
|
|
| Audio Demo | |||
| APIs | Description | View / Run | |
| MMAPI1.1 |
Demonstrates audio capabilities, including mixing and playing audio with an animation. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| BluetoothDemo | |||
| APIs | Description | View / Run | |
| JSR82 Bluetooth |
This application contains MIDlets that demonstrate device discovery and data exchange using the JSR 82 Bluetooth
API. The demo shows how images can be transferred between devices using Bluetooth. You must run two instances of the emulator to see how this demonstration works. This demo runs on Wireless Toolkit (WTK). |
|
|
| CHAPIDemo | |||
| APIs | Description | View / Run | |
| JSR211 CHAPI |
CHAPIDemo is a content browser (see JSR 211) that makes uses of MediaHandler. It maintains a list of favorites and
enables you to select and view various kinds of content. This demonstration uses the content handler registry, so you cannot see all of its features when you use the Run button. Instead, you can use Project > Run via OTA to install
the application into the emulator. This demo runs on Wireless Toolkit (WTK). |
|
|
| CityGuide | |||
| APIs | Description | View / Run | |
| JSR 179 Location API |
This demo shows how you can use the Location API (JSR 179). It shows your current
position superimposed on a city map that displays landmarks based on the current location. As you move around the city, interesting landmarks are highlighted and identified.
Because location prompts occur frequently, it is best to run this demonstration in
manufacturer (trusted) mode. This demo runs on Wireless Toolkit (WTK). |
|
|
| Demos | |||
| APIs | Description | View / Run | |
| MIDP 2.0 |
This demo contains several MIDlets that highlight different MIDP features: Colors, Properties, HTTP, FontTestlet, Stock Tracker, What If?, Tickets, ManyBalls. This demo runs on Wireless Toolkit (WTK), Mpowerplayer, and phoneME Feature. |
|
|
| FPDemo | |||
| APIs | Description | View / Run | |
| CLDC1.1 |
This demo shows a simple floating point calculator. This demo runs on Wireless Toolkit (WTK), Mpowerplayer, and phoneME Feature. |
|
|
| Games | |||
| APIs | Description | View / Run | |
| MIDP2.0 |
This set of games includes TilePuzzle, WomGame, and PushPuzzle. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| GoSIP | |||
| APIs | Description | View / Run | |
| JSR180 SIP |
GoSIP is a chat application that uses SIP (JSR 180) to set up communications using a SIP proxy server and registrar. This demo shows how to set up a chat using SIP and the SIP server. This demo runs on Wireless Toolkit (WTK). |
|
|
| i18nDemo | |||
| APIs | Description | View / Run | |
| JSR238 Mobile Internationalization API |
This MIDlet suite shows off the JSR 238 Mobile Internationalization API. The
MIDlets String Comparator and Formatter show how to sort strings and display
numbers appropriately for different locales. The third MIDlet, MicroLexicon, is a
small phrase translator that comes in handy if you need to ask for a beer in Prague,
Herzliya, Beijing, Milan, or several other locations. This demo runs on Wireless Toolkit (WTK). |
|
|
| JBricks | |||
| APIs | Description | View / Run | |
| JSR229 Payment API |
JBricks is a game that demonstrates the use of the JSR 229 Payment API. The game
itself resembles Breakout or Arkanoid. In JBricks, you can buy another life or a new
game level. Behind the scenes, the Payment API handles the details. This demo runs on Wireless Toolkit (WTK). |
|
|
| JSR172Demo | |||
| APIs | Description | View / Run | |
| Web Services |
This demo shows how to access a web service from a MIDlet called Server Script. The web service is already running on an Internet server. If you are behind a firewall, you must
configure the emulator’s proxy server settings. Launch Server Script and follow the
prompts. You can browse through simulated news headlines, all of which are
retrieved from the web service. To see what is going on behind the scenes, use the network monitor. This demo runs on Wireless Toolkit (WTK). |
|
|
| MobileMediaAPI | |||
| APIs | Description | View / Run | |
| MMAPI 1.1 |
The MobileMediaAPI application contains four MIDlets that showcase the toolkit’s
multimedia capabilities: Simple Tones, Simple Player, Video, and Pausing Audio Test. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| NetworkDemo | |||
| APIs | Description | View / Run | |
| MIDP 2.0 |
This set of demos shows how to use datagrams and serial connections. It has two MIDlets: Socket Demo and Datagram Demo. Each demo requires you to run two emulator instances so that you can emulate the server and client
relationship. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| ObexDemo | |||
| APIs | Description | View / Run | |
| JSR 82 OBEX |
This demo shows how to transfer image files between emulator instances using the OBEX API. The demo shows the use of OBEX over a simulated infrared connection. When you run two instances of the emulator, you will see that one listens for incoming connections, while the other attempts to send an image. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| OpenGLESDemo | |||
| APIs | Description | View / Run | |
| JSR 239 OpenGLES |
JSR 239 defines the Java programming language bindings for two APIs, OpenGL
for Embedded Systems (OpenGLES) and EGL. OpenGLES is a standard API for
3D graphics, a subset of OpenGL, which is pervasive on desktop computers. EGL
is a standard platform interface layer. Both OpenGLES and EGL are developed by
the Khronos Group (http://khronos.org/opengles/).
While JSR 184 (which is object-oriented) requires high-level functionality, OpenGL
is a low-level graphics library suited for accessing hardware accelerated 3D
graphics. This demo runs on Wireless Toolkit (WTK). |
|
|
| PDAPDemo | |||
| APIs | Description | View / Run | |
| JSR 75 PIM and FileConnection |
PDAPDemo shows how to use the FileConnection and PIM APIs that are part of the JSR 75 specification. Using the commands in the demo, you can view a file or see its properties. The JSR75 PIM APIs example demonstrates how to access personal information, such as contacts, calendars, and to-do lists. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| Photoalbum | |||
| APIs | Description | View / Run | |
| MIDP 2.0 |
The Photoalbum demo shows a variety of image formats. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| SATSADemos | |||
| APIs | Description | View / Run | |
| JSR177 SATSA |
SATSADemos includes demonstrations of SATSA, the Security and Trust Services
APIs. Most of the demos show how to communicate with a smart card. The
emulator can communicate with a simulated smart card using a socket protocol. The
smart card simulator, cref, is included with the toolkit. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| SATSAJCRMIDemo | |||
| APIs | Description | View / Run | |
| JSR177 SATSA |
This application contains a single MIDlet, JCRMIMIDlet, which shows how to
communicate with a card application using Java Card RMI, a card-friendly remote
object protocol. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| SIPDemo | |||
| APIs | Description | View / Run | |
| JSR 180 SIP |
This application is a very simple example of using SIP (JSR 180) to communicate
directly between two devices. Typically devices use SIP with a proxy server to set
up direct communications of some kind. For a more complete example involving a
proxy, take a look at the GoSIP demo. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
| SVGContactList | |||
| APIs | Description | View / Run | |
| JSR226 SVG API |
This application uses different skins to display the same contact list information and
a news banner. The skins have different colors and fonts. This demo runs on Wireless Toolkit (WTK).
This demo runs on Wireless Toolkit (WTK). |
|
|
| SVGDemo | |||
| APIs | Description | View / Run | |
| JSR226 SVG API |
This suite contains MIDlets that demonstrate various ways of using the JSR 226
Scalable 2D Vector Graphics API for Java ME technology. This API provides ways to load
manipulate, render, and play SVG content. For more information on SVG, see phoneME UI Labs. This demo runs on Wireless Toolkit (WTK). |
|
|
| UIDemo | |||
| APIs | Description | View / Run | |
| MIDP 2.0 |
This demo showcases the breadth of MIDP 2.0's user interface capabilities. This demo runs on Wireless Toolkit (WTK), Mpowerplayer, and phoneME Feature. |
|
|
| WMADemo | |||
| APIs | Description | View / Run | |
| WMA 2.0 |
This application shows how to send and receive SMS, CBS, and MMS messages. The
Sun Java Wireless Toolkit for CLDC offers a flexible emulation environment to
support messaging. Messages can be exchanged between emulator instances and can
be generated or received using the WMA console utility. Because this example makes use of the push registry, you can't see all of its features just by using the Run button. Use the Run via OTA feature to install the application into the emulator in a process that mirrors how applications are installed on real devices. This demo runs on Wireless Toolkit (WTK) and Mpowerplayer. |
|
|
If you have suggestions or requests, please contact Oldrich Maticka. Also, refer to the ME Application Developer Interest forum for an active discussion about developing applications for the Java ME platform.