NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;在view中添加此代碼後仍須要修改配置文件,在配置文件中添加保持喚醒狀態 android
<!--<uses-permission android:name="android.permission.WAKE_LOCK"/>-->. io