Access Android flashlight without android.hardware.Camera v.2
This is not a duplicate question of [similar question][1]!


  [1]: http://stackoverflow.com/questions/6024087/can-i-control-the-flashlight-without-using-android-hardware-camera
I tried almost all solutions, that uses android.os.ServiceManager (from example, i've linked above). But none of them works for the latest SDKs.

I have a flex application, that can access to native java thought Native extensions. But the real problem is that I need to access camera from Flex for live video streaming and to turn the flashlight on. This is a big problem because only one of Java and Flex can access camera instance at once (sounds like it should be).

So I'm looking for the solution to turn the flashlight on using some undocumented features or may be NDK or something else but without java code, like it has been done now:

    camera = Camera.open();
    Parameters params = camera.getParameters();
    params.setFlashMode(Parameters.FLASH_MODE_TORCH);
    camera.setParameters(params);

Thanks for any ideas!
Access Android flashlight without android.hardware.Camera v.2
===

This is not a duplicate question of [similar question][1]!


  [1]: http://stackoverflow.com/questions/6024087/can-i-control-the-flashlight-without-using-android-hardware-camera
I tried almost all solutions, that uses android.os.ServiceManager (from example, i've linked above). But none of them works for the latest SDKs.

I have a flex application, that can access to native java thought Native extensions. But the real problem is that I need to access camera from Flex for live video streaming and to turn the flashlight on. This is a big problem because only one of Java and Flex can access camera instance at once (sounds like it should be).

So I'm looking for the solution to turn the flashlight on using some undocumented features or may be NDK or something else but without java code, like it has been done now:

    camera = Camera.open();
    Parameters params = camera.getParameters();
    params.setFlashMode(Parameters.FLASH_MODE_TORCH);
    camera.setParameters(params);

Thanks for any ideas!