Log in or register to post comments

System tools - prevent tablet/phone from sleeping

March 26, 2013 - 11:54pm #1

Hello,

is this option 'System tools - prevent tablet/phone from sleeping' a default?

I want the app can sleep but cannot find any code or setting to disable this option.

setting 'Screen.sleepTimeout = SleepTimeout.SystemSetting;' not helping..

Kindly advise.

 

System tools - prevent tablet/phone from sleeping

April 17, 2013 - 8:10am #7

Have you found a solution?

System tools - prevent tablet/phone from sleeping

April 2, 2013 - 2:33am #6

no surprise, because the Android Manifest of Vuforia has this permission:

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

 

 

aciang wrote:

I make some test..

 

 

Make 1 unity project without importing Vuforia extension and deploy it android device.

in Setting - Applicaction info

There is no permissions.

 

Make other Unity Project, this time import Vuforia extension and deploy it to android device.

It's empty scene, only importing Vuforia extension and we have Permission as below:

- Network Communication

- Hardware controls

- Phone calls,

- System tools (prevent tablet from sleeping)

 

 

 

 

System tools - prevent tablet/phone from sleeping

March 30, 2013 - 10:01am #5

You need to implement a WakeLock which is a class associated with the PowerManager. 

http://developer.android.com/reference/android/os/PowerManager.WakeLock.html

System tools - prevent tablet/phone from sleeping

March 29, 2013 - 11:44pm #4

still struggling with this..

System tools - prevent tablet/phone from sleeping

March 27, 2013 - 4:13am #3

I make some test..

 

 

Make 1 unity project without importing Vuforia extension and deploy it android device.

in Setting - Applicaction info

There is no permissions.

 

Make other Unity Project, this time import Vuforia extension and deploy it to android device.

It's empty scene, only importing Vuforia extension and we have Permission as below:

- Network Communication

- Hardware controls

- Phone calls,

- System tools (prevent tablet from sleeping)

 

 

 

 

System tools - prevent tablet/phone from sleeping

March 27, 2013 - 1:57am #2

Hi, AKAIK, normally that option (prevent from sleeping) is disabled on devices by default; however, if the user of the device has enabled the option I think you cannot "force" the device to sleep.

You may also want to check on Android-specific website / forums.

Log in or register to post comments