How to Understand Android Kiosk Mode: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
The system provides the AIDL interface to set kiosk mode, When connect the service, the package name is '''com.wizarpos.wizarviewagentassistant''', and the class name is '''com.wizarpos.wizarviewagentassistant.SystemExtApiService'''. When the application uses the interface, it must import wizarviewagentassistant.
== Android kiosk mode instruction ==
== Permission ==
Android kiosk mode is a special mode in which users can only access specific apps or features and cannot change system settings or install other apps freely. This mode is commonly used in public devices such as self-service kiosks, display devices, etc. in commercial and educational environments.
 
In Android kiosk mode, you can restrict user behavior, such as prohibiting changes to screen brightness, volume adjustment, accessing notification bars, disabling physical buttons, etc. In addition, you can also programmatically control the lifecycle of apps, such as restarting apps automatically when they exit, preventing users from switching to other apps.
In summary, Android kiosk mode helps you better manage and control public devices, ensuring they remain in a secure and controllable state.
== Enable Android kiosk mode ==
To enable Android kiosk mode, you can use AIDL interface provided by the system. To use this interface, import wizarviewagentassistant. When starting the service, pass com.wizarpos.wizarviewagentassistant as the package name and com.wizarpos.wizarviewagentassistant.SystemExtApiService as the class name.
=== Permission ===
The application declares the following permissions in the manifest:
The application declares the following permissions in the manifest:
   android.permission.MANAGE_ACTIVITY_STACKS
   android.permission.MANAGE_ACTIVITY_STACKS


== API Overview ==
=== API Overview ===
=== <big>startLockTaskMode</big>===
==== <big>startLockTaskMode</big>====
   <syntaxhighlight lang="java">boolean startLockTaskMode(int taskId);</syntaxhighlight>
   <syntaxhighlight lang="java">boolean startLockTaskMode(int taskId);</syntaxhighlight>
Request to put this activity in a mode where the user is locked to a restricted set of applications.
Request to put this activity in a mode where the user is locked to a restricted set of applications.
Line 26: Line 32:
|}
|}


== Download ==
=== Download ===
=== AIDL===
==== AIDL====
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL]
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL]
=== Demo ===
==== Demo ====
Please download the [http://ftp.wizarpos.com/advanceSDK/KioskDemo-One2Two.zip demo]
Please download the [http://ftp.wizarpos.com/advanceSDK/KioskDemo-One2Two.zip demo]

Revision as of 06:22, 3 November 2023

Android kiosk mode instruction

Android kiosk mode is a special mode in which users can only access specific apps or features and cannot change system settings or install other apps freely. This mode is commonly used in public devices such as self-service kiosks, display devices, etc. in commercial and educational environments.

In Android kiosk mode, you can restrict user behavior, such as prohibiting changes to screen brightness, volume adjustment, accessing notification bars, disabling physical buttons, etc. In addition, you can also programmatically control the lifecycle of apps, such as restarting apps automatically when they exit, preventing users from switching to other apps. In summary, Android kiosk mode helps you better manage and control public devices, ensuring they remain in a secure and controllable state.

Enable Android kiosk mode

To enable Android kiosk mode, you can use AIDL interface provided by the system. To use this interface, import wizarviewagentassistant. When starting the service, pass com.wizarpos.wizarviewagentassistant as the package name and com.wizarpos.wizarviewagentassistant.SystemExtApiService as the class name.

Permission

The application declares the following permissions in the manifest:

 android.permission.MANAGE_ACTIVITY_STACKS

API Overview

startLockTaskMode

boolean startLockTaskMode(int taskId);

Request to put this activity in a mode where the user is locked to a restricted set of applications.

Parameters
taskId int: task id.
Returns
boolean true:success ; false: failed;

Download

AIDL

Please download the AIDL

Demo

Please download the demo