This example MIDlet suite shows you how to use the Content Handler API on Series 40 devices to:
Handle content locally in a MIDlet
Invoke content in an external content handling application
Register an application as a content handler
This example also shows you how to define the correct JAD attributes for content handling.
Figure: ContentHandler MIDlet suite
You need the following to develop and test this MIDlet:
Series 40 5th Edition Feature Pack 1 SDK or newer
Series 40 5th Edition Feature Pack 1 device or newer
You also need to set up the resources on an Internet server from where the MIDlet can download them. When you test the MIDlet in an emulator, you may need to configure your firewall or Internet settings to allow access to the server. Another option is to use your local workstation as a web server, for example by using Apache HTTP Server, and load the resources from there.
For more information about the MIDlet, see:
Design for information about the design and functionality of the MIDlet
Implementation for information about implementing the MIDlet
You can download the project files for the MIDlet from the download page.