문제

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.

도움이 되었습니까?

해결책 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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top