Kiosk mode in Android

后端 未结 11 1964
感情败类
感情败类 2020-11-22 11:26

I\'m in the process of evaluating if and how a CF .NET enterprise application can be ported to run on Android devices. The application on Windows Mobile phones are run in ki

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 11:50

    Kiosk mode is nothing but locking a single or set of applications when you switch on an android device. This can be achieved by lock task mode. When the device runs in lock task mode, users typically can’t see notifications, access non-whitelisted apps, or return to the home screen.

    The Device policy controller (DPC) can whitelist the app that can run when the system is in lock task mode. Since its a dedicated device for a specific purpose the person using the device can't leave lock task mode. The device which are Android 5.0 and higher can run in lock task mode.

        •        Whitelisting the applications
    

    First step is to whitelist the application by DPC. DPC can whitelist the apps which can be used in lock task mode by calling

    DevicePolicyManager.setLockTaskPackages()

        ▪         Start lock task mode
    

    Once the whitelisting is done, DPC can call the below function to start the lock task.

    ActivityOptions.setLockTaskEnabled()

    You can find more details regarding the lock task mode here. https://developer.android.com/work/dpc/dedicated-devices/lock-task-mode

提交回复
热议问题