How to Understand Android Kiosk Mode: Difference between revisions
(Created page with "[http://ftp.wizarpos.com/advanceSDK/KioskDemo-One2Two.zip Download Demo]") |
No edit summary |
||
Line 1: | Line 1: | ||
[http://ftp.wizarpos.com/advanceSDK/KioskDemo-One2Two.zip | 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 == | |||
=== <big>startLockTaskMode</big>=== | |||
<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. | |||
{|class="wizarpostable" | |||
|- | |||
! scope="row" colspan="2" | Parameters | |||
|- | |||
| taskId|| '''int:''' task id. | |||
|} | |||
{| | |||
|- | |||
| | |||
|} | |||
{|class="wizarpostable" | |||
|- | |||
! scope="row" colspan="2" | Returns | |||
|- | |||
| boolean || true:success ; false: failed; | |||
|} | |||
== Download == | |||
=== AIDL=== | |||
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl AIDL] | |||
=== Demo === | |||
Please download the [http://ftp.wizarpos.com/advanceSDK/KioskDemo-One2Two.zip demo] |
Revision as of 05:32, 12 July 2023
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