以下皆在android 4.3 平台上测试通过
1.将 休眠时间调制 15秒:
Settings.System.putInt(getContentResolver(),android.provider.Settings.System.SCREEN_OFF_TIMEOUT,-1);
权限:
权限:
2.关闭蓝牙:
BluetoothAdapter bluetoothadapter = BluetoothAdapter.getDefaultAdapter();
3.关闭wifi
WifiManager manager =null;