since I am at the beginning with Android coding, I did not dare to post my question, but now I am at a point where I can not resist.
I have a service that turns onCreate camera LED:
@Override public void onCreate() {
I can say that WakeLock is acquiring, I tested FULL_WAKE_LOCK, and it didnβt disconnect, given Time Time Out. But since the screen is not needed, I do not want to use the full wakelock.
Cyanogenmod for my phone (HTC Legend) brings a torch application that can do what I want. Its source code is here:
https://github.com/CyanogenMod/android_packages_apps_Torch/tree/gingerbread/src/net/cactii/flash2
I noticed that the light turns off for a short time with this application, if this is a hint for someone, obviously not for me; (
I donβt expect anyone to change my code to do what I want, but I would be grateful if someone could point me in the right direction!
Congratulated
Sj
source share