Skip to content Skip to sidebar Skip to footer

Set Brightness Of Flash In Android

In my program I tested this: try { FileWriter mWriter = new FileWriter('/sys/class/leds/flashlight/brightness'); mWriter.write(125); mWriter.flush(); } c

Solution 1:

It belongs to system and is being protected by system, so you must be a root to access.Also all Android devices dont have the same flashlight design in structure, sample like: in HTC device, it supports API for handling 3 different brightness level, but others don't...


Post a Comment for "Set Brightness Of Flash In Android"