开发者

Screen Retain unlock when our application is running

Is it possible to make continu开发者_运维问答ously unlocked the screen when our application is running.


You can use WakeLock. But it's not a good solution because you have to acquire and release it manually. And AFAIK it requires a permission. The better solution is to use android:keepScreenOn="true" for a view which requires screen to be on.


I think that you can do that in xml with this option: android:keepScreenOn="true"...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜