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.
How to turn on camera flash or torch in Java ME / J2ME?
Question
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.
La solution 2
Autres conseils
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.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow