0

I am trying to create J2me application which will capture the image and upload it on the server.

I have used following code for capture image.

 player = Manager.createPlayer("capture://video");
 player.realize();
 videoControl = (VideoControl) (player.getControl("VideoControl")); 

The above code does work on all Nokia phones, it does not show camera to capture image neither it give any exception in Samsung phones.

Please direct me to links where the capture image code works for Samsung java enabled phones.

gnat
  • 6,213
  • 108
  • 53
  • 73
Rohit
  • 181
  • 1
  • 10

1 Answers1

1

I've been through the same situation. You need to add a call to player.start().
In my case I did it after obtaining and adjusting the videoControl.

Telmo Pimentel Mota
  • 4,033
  • 16
  • 22
  • Thanks Telmo , i will try to do the same. But i have checked the the property called Supports.Video.Capture it returning false does it mean my phone does not support the image capture facility. – Rohit May 24 '12 at 13:18
  • Yes, when supports.video.capture returns false video capture is not supported. As found in http://developers.sun.com/mobility/apis/articles/mmapioptions/ – Telmo Pimentel Mota May 25 '12 at 11:38