Android Question StartAtBoot

Galbas

Member
Licensed User
Longtime User
Hi guys! I need to put my app in startup of tablet. I got it but there is a delay around five seconds to start my app after the tablet shows me the home screen. Is it normal? If so, is there a way to change this? I am using the tablet in an industrial application, so it would be good if I could lock the access for other apps.
Thanks in advance,
Galbas
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Yes it is normal : the app starts after the BOOT_COMPLETED message has been sent. To reduce the delay you could put your app as a Launcher and set it as the default launcher.
 
Upvote 0

Galbas

Member
Licensed User
Longtime User
Could you tell me how can I do this? Do you know if is possible lock home button and recent task button? Thanks.
 
Upvote 0

Galbas

Member
Licensed User
Longtime User
I'm totally lost. I need run my app when I turn on the tablet. I use startatboot = true and my program run after 5 seconds (after on). Could you give an example how can I run my program without screen with google information and others? Is it possible turn off via code too?
Thanks,
Galbas.
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
I use startatboot = true and my program run after 5 seconds (after on).
Yes because it is waiting for the BOOT_COMPLETED intent (your device takes 5 seconds to be totally started : deleting its logs, reconnecting, etc.)
Could you give an example how can I run my program without screen with google information and others?
I am sorry, I am not sure I understand your need. If your app was created as a Launcher and selected as the default Launcher, other apps shouldn't be started.
Is it possible turn off via code too?
I don't know
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
How can I set my app as the default launcher?
If you have followed the tutorial (link above), after having installed your app and started it, press the device's Home button. It will ask you to choose for the default Launcher (proposing the old one and yours). Select the one you want to use, press "Always" or "One time" (translated so I don't know how it is really written but you get the idea). After that, if you had selected your app as a Launcher, it should be the default one (when pressing the Home button, you return to your app all the time).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…