Skip to content

Auto-Starting Kiosk-App after reboot #2

Description

@myThorsten

Hello DonnKey :)
A few days ago I found this fantastic project. With its help, I was able to successfully start my app in kiosk mode. Thanks a lot for this :).

Now I was wondering what happens if the user comes up with the idea of rebooting the device. Or what happens when the battery dies and the device needs to be restarted. How can I make the kiosk-app start automatically? I found two stackoverflow entries:

and extended the AndroidManifest.xml of the KioskInstaller accordingly
image

and added a BroadcastReceiver:
image

And that works. After a while. After restarting the device, it sometimes takes 15 seconds, sometimes 30 seconds, sometimes 60 seconds for the kiosk-app to start. Until then, the user can use the device normally and do all sorts of things.

Do you know a better way?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions