Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to load app directly without launching homescreen

When android device power on, is it possible to load one specific application without launching home screen?

How to make this change?

Where to change code

Setting permission as boot_completed works but before my application is loaded, the homescreen is shown for 5 seconds. How to disable android from showing any homescreen launcher before my application

like image 330
Gerel tumen Avatar asked Oct 19 '22 00:10

Gerel tumen


1 Answers

This mode is called kiosk mode, and android has provision for running devices in Kiosk mode, you can refer to this guide for the complete set up. Basically what you do is set up your app to listen to the RECEIVE_BOOT_COMPLETED broadcast and disable all actions such as back button home button minimize buttons etc. Also don't forget to set up an exit mechanism. Just follow the guide and you should be fine.

like image 162
Bhargav Avatar answered Oct 21 '22 20:10

Bhargav