This example MIDlet shows you how to create an MMS message that
consists of an image and a text field. The MIDlet uses the Player
interface of the Mobile Media API (MMAPI) to first
capture an image using the device camera. The MIDlet then bundles
the captured image together with a piece of text into an MMS message.
The MMS message thus consists of only two parts: one bitmap image
(image/jpeg) and one text field (text/plain).
Figure: MMSMIDlet views
For a tutorial that shows you how to create this MIDlet, see section Example: Creating and sending MMS messages.
This MIDlet is provided in two versions:
The regular version is compatible with Series 40 2nd Edition and S60 2nd Edition FP2 devices and newer.
The Series 40 full touch version is only compatible with Java Runtime 2.0.0 for Series 40 devices and newer.
This MIDlet has been tested on the following devices:
Nokia Asha 305 (Java Runtime 2.0.0 for Series 40)
Nokia E72 (S60 3rd Edition FP2)
Nokia N8-00 (Symbian Anna with Java Runtime 2.2 for Symbian)
Nokia X3-02 (Series 40 6th Edition FP1)
The MIDlet project files are packaged as a zip file. The zip file includes two projects: the regular version and the Series 40 full touch version. To download the zip file, click the following link:
The MIDlet consists of the following classes (click to view the full source code):
Note: The source code is from the Series 40 full touch version of the MIDlet. To view the source code of the regular version, see the source code files in the zip file.