prevent屏幕上的调光/待机锁,而使用Android应用程序?调光、应用程序、屏幕上、prevent

由网友(取而代之)分享简介:我开发一个应用程序,最后触摸我需要把它是preventing屏幕锁定时,该设备进入待机(屏幕关闭)。确切的行为,如谷歌导航。I'm developing an application and the last touch I need to put on it is preventing the screen to...

我开发一个应用程序,最后触摸我需要把它是preventing屏幕锁定时,该设备进入待机(屏幕关闭)。确切的行为,如谷歌导航。

I'm developing an application and the last touch I need to put on it is preventing the screen to lock when the device goes into standby (screen off). The exact behavior as Google Navigation.

我想知道什么,编程我将不得不使用来保持,而使用的应用程序这一功能使整个时间?

I'm wondering what, programatically I will have to use to keep this feature enable the entire time while using the app?

推荐答案

编写以下code到XML文件将prevent屏幕的锁定

writing the following code to your xml file will prevent the screen from locking

android:keepScreenOn="true"
阅读全文

相关推荐

最新文章