Example: Creating and sending MMS messages

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

Prerequisites

You need the following to develop and test this MIDlet:

  • Series 40 2nd Edition or S60 3rd Edition FP2 SDK or newer

  • Series 40 2nd Edition or S60 2nd Edition FP2 device or newer

For instructions on how to set up the Java ME development environment, see section Setting up the development environment.

Development

For more information about the MIDlet, see:

  • Design for information about the design and functionality of the MIDlet

  • Implementation for instructions on how to implement the MIDlet

You can download the project files for the MIDlet from the download page.