Frage

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.

War es hilfreich?

Lösung 2

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.

Andere Tipps

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top