在想要实现常亮的Acivity的onCreate()方法中增加代码getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);