Skip to main content
ME Application Developers - Demo Box

ME Application Developers WTK Demos

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:

  1. In WTK - WTK requires all projects and code to be in the WTK_install/apps directory so copy the particular demo directory and contents into the WTK_install/apps directory, restart WTK, and then select the "Open Project ..." button. You should be able to select the project you just copied. Clean, build, and run the project.

  • In NetBeans - NetBeans with Mobility Pack allows you to import existing WTK projects. In NetBeans simply select "File->New Project", then in the "Mobile" category choose "Import Wireless Toolkit Project". In the file selector locate the directory of the project you are importing.
  • Advanced Multimedia Supplements
      APIsDescriptionView / Run
    JSR234
    Advanced Multimedia Supplements
    This MIDlet suite demonstrates the power of JSR 234 Advanced Multimedia Supplements (AMMS). It consists of the following MIDlets:
    • Image Effects - Shows standard image processing operations.
    • Radio Tuner - Simulates a radio tuner by reading audio files from the project directory via the toolkitís built-in HTTP server.
    • Camera - Shows how the Advanced Multimedia Supplements provide control of a deviceís camera.
    • Moving Helicopter - Simulates a helicopter flying around a stationary observer. Use headphones for best results.
    • Music Effects - Shows off the advanced audio capabilities of the Advanced Multimedia Supplements. As an audio file loops continuously, you can adjust the volume, pan, equalizer settings, reverberation, and chorus settings.
    This demo runs on Wireless Toolkit (WTK).


    Audio Demo
      APIsDescriptionView / Run
    MMAPI1.1 Demonstrates audio capabilities, including mixing and playing audio with an animation.
    This demo runs on Wireless Toolkit (WTK) and Mpowerplayer.


    BluetoothDemo
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / Run
    CLDC1.1 This demo shows a simple floating point calculator.
    This demo runs on Wireless Toolkit (WTK), Mpowerplayer, and phoneME Feature.


    Games
      APIsDescriptionView / Run
    MIDP2.0 This set of games includes TilePuzzle, WomGame, and PushPuzzle.
    This demo runs on Wireless Toolkit (WTK) and Mpowerplayer.


    GoSIP
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / Run
    MIDP 2.0 The Photoalbum demo shows a variety of image formats.
    This demo runs on Wireless Toolkit (WTK) and Mpowerplayer.


    SATSADemos
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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
      APIsDescriptionView / 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.



    Contacts

    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.

     
     
    Close
    loading
    Please Confirm
    Close