I am wondering to know how to detect screen dim or brightness on Android 1.6.
I've found a solution on API Level 7. It is easy to develop :
PowerManager pm = (PowerManager)
getSystemService(Context.POWER_SERVICE);
boolean isScreenOn = pm.isScreenOn();
But I need a solution for Android 1.x.
Can you suggest me ?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…