摘要:
使用PowerManager.WakeLock来保证程序运行时保持手机屏幕的恒亮。public class WakeLockDemo extends Activity { private PowerManager.WakeLock wakeLock = null; //获取锁 public void acquireWakeLock(Context context) { if (wakeLock == null) { PowerManager powerManager = (PowerManager)(context.getSystemSer... 阅读全文