Tools
分类目录
文章归档
标签
   

如何让设备不休眠

代码:

  1. NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

 

Android需要配置权限:

 

  1. <uses-permission android:name="android.permission.WAKE_LOCK" />
  2. <uses-permission android:name="android.permission.WRITE_SETTINGS" />

No Comment

Post A Comment