0

I have created a midlet that takes photos.

Is there any way to turn on the devices flash/torch in my code? If so, is a particular API required?

(The device I'm developing for is a Sonim XP3300.)

Thanks in advance.

ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253

2 Answers2

1

Must admit I haven't used it myself (yet), but I believe the device must support JSR-234 before you can control advanced stuff like that. So first check if the device supports JSR-234, and then look into the documentation for possibilities.

mr_lou
  • 1,910
  • 2
  • 14
  • 26
  • Thanks for the reply. Have been looking up JSR-234 and it does indeed have a FlashControl class. I've found a code snippet here - http://developer.samsung.com/java/technical-docs/Advanced-Mutlimedia-Supplements-JSR-234 - but do you know where the officialy API documentation is for JSR-234?? – ban-geoengineering Oct 09 '13 at 13:16
  • I think you can download and/or view it here: http://jcp.org/en/jsr/detail?id=234 – mr_lou Oct 09 '13 at 17:45
0

As mr_lou pointed out, JSR-234 was indeed required (in particular, the FlashControl class) but it turns out this JSR is not supported by the Sonim XP3300 as a NoClassDefError is thrown when I try to reference FlashControl in my code.

ban-geoengineering
  • 18,324
  • 27
  • 171
  • 253