0

I can disable the auto brightness starting from api level 8. What about older versions? How can I disable auto brightness mode from API 4?

Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74
sara
  • 320
  • 1
  • 2
  • 11

2 Answers2

0

As per Google android dashboard only 0.3% device are on API level 4. Infect only 3.5% devices are below API level 7. So I guess you don't have to worry about API level 4 or for that matter anything below API level 8 is bit waste of time...

Android Dashboard

Praful Bhatnagar
  • 7,425
  • 2
  • 36
  • 44
  • I'd like to encourage people to use old phones plus, 0.3% considering that there's 500 million android devices out there, is a big number. – sara Nov 16 '12 at 10:11
  • Thanks to Auto Bright: https://play.google.com/store/apps/details?id=com.geekyouup.android.autobright Source available: http://autobright.googlecode.com String SCREEN_BRIGHTNESS_MODE = "screen_brightness_mode"; int SCREEN_BRIGHTNESS_MODE_MANUAL = 0; int SCREEN_BRIGHTNESS_MODE_AUTOMATIC = 1; Settings.System.putInt(resolver, SCREEN_BRIGHTNESS_MODE, SCREEN_BRIGHTNESS_MODE_MANUAL); Settings.System.putInt(resolver, SCREEN_BRIGHTNESS_MODE, SCREEN_BRIGHTNESS_MODE_AUTOMATIC); User permission: – sara Nov 16 '12 at 11:17
0
private static final String SCREEN_BRIGHTNESS_MODE = "screen_brightness_mode";
private static final int SCREEN_BRIGHTNESS_MODE_MANUAL = 0;
private static final int SCREEN_BRIGHTNESS_MODE_AUTOMATIC = 1; 

Settings.System.putInt(resolver, SCREEN_BRIGHTNESS_MODE, mode); 
Settings.System.putInt(resolver, Settings.System.SCREEN_BRIGHTNESS, lev);
whiteLT
  • 338
  • 7
  • 21