Select to view content in your preferred language

How to disable screen timeout for AppStudio application

777
2
Jump to solution
04-04-2023 01:30 AM
GKmieliauskas
Esri Regular Contributor

Hi,

I have tried to run my application on Android phone from AppStudio Player and installed from apk file. AppStudio Player disables screen timeout and application view stays the same for all time of using no matter there are some actions on it or not.

If I use application installed from apk, then after time specified in phone Screen timeout setting application goes to screen saving mode (gets dark).

Is it possible using ArcGIS AppStudio API to get the same behavior like from AppStudio Player? Is there another way to get avoid screen timeout?

1 Solution

Accepted Solutions
PaulHaakma
Esri Contributor

Hi.

The AppStudio AppFramework Platform component includes a "stayAwake" property which you can set to prevent your custom app from going to sleep.

You can find the documentation for this here:

https://developers.arcgis.com/appstudio/api-reference/qml-arcgis-appframework-platform-platform

 

View solution in original post

2 Replies
PaulHaakma
Esri Contributor

Hi.

The AppStudio AppFramework Platform component includes a "stayAwake" property which you can set to prevent your custom app from going to sleep.

You can find the documentation for this here:

https://developers.arcgis.com/appstudio/api-reference/qml-arcgis-appframework-platform-platform

 

GKmieliauskas
Esri Regular Contributor

Thank you for the solution. It works fine.

0 Kudos