I tried the example given in
In the emulator it runs properly.
But, when I put my jar file in LG KP500 and press on the camera button it throws an exception
javax.microedition.media.MediaException: There is no matching DataSource.locator:capture://video
Now, I inserted the jar file in nokia 6500. This time it shows the camera when camera button is pressed. But, when I press on capture button it throws a different exception
javax.microedition.media.MediaException: only capture://image..
How do I solve this?