How to Understand Android Kiosk Mode
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.
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