The Mobile Media API specification includes a code fragment that describes how to capture an image using the device’s camera. The Camera MIDlet uses the same technique.
1) First, a Player must be created, which takes its input from the camera
2) The player must be initialized
3) You must then get the visible “video control,” which will show the live viewfinder
4) Start the player, so that the user can see what the camera is pointing at:
5) Once the video control is active, you can take a snapshot