标签:android
// 保持Android设备屏幕灯长亮 public static void setScreenBright(Activity activity, boolean keepScreenOn) { if (keepScreenOn) { activity.getWindow().addFlags( WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } }
标签:android
原文地址:http://blog.csdn.net/zhangphil/article/details/43964463