tags:

views:

41

answers:

1

I have seen 2 methods so far in my search, both of which I am having trouble with.

Method 1)

Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS, 100);

Method 2)

IHardwareService hardware = IHardwareService.Stub.asInterface(ServiceManager.getService("hardware"));
hardware.setScreenBacklight(.5);

Which of these methods is correct? Or is there another that I should be using?

Thanks

A: 

Any one have an answer to this? I know it's possible, because I see other apps doing it.

Jim Jenkins