Android Question StartAtBoot not working on android 5.XX

ajk

Active Member
Licensed User
Longtime User
StartAtBoot not working on android 5.XX. Really don't know why. Apps compiled in different IDE /Java/ works.

Tested on Android 5.1 - real device /usb/. Installed, then opened, not closed > phone restarted. Attached example run on Android 4.4.
 

Attachments

  • test.zip
    6.8 KB · Views: 147
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Apps compiled in different IDE /Java/ works.
It doesn't matter how you compile the app. There is exactly one way to make an app start at boot.

I've deleted the read-only manifest file, added #StartAtBoot: true to the service and ran your app.

It started after a restart automatically. Tested on Android 6.
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
Yes I know it works on android 6. Problem is with android 5. Sorry for this read-only manifest. It remained after AndroidManifest.xml modification tests.

I have tested app in the way you do - with #StartAtBoot: true in service and read-only prosperity switched off - so B4A can use it's own AndroidManifest.xml.
Of course everything seems ok inside (permission, service ,receiver) but unfortunately in not start after reboot. Several other apps /e.g.. PixelPhonePro/ starts flawlessly and their processes appear as working after phone restart.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
did you swipe the app from the taskmanager (kill the app manually)?
 
Upvote 0

somed3v3loper

Well-Known Member
Licensed User
Longtime User
I am sorry to say this again :) but it might be helpful .
My device has a Startup Manager that block apps from starting at boot unless I choose to allow them .
 
Upvote 0

ajk

Active Member
Licensed User
Longtime User
I did not kill the app. There is no Startup Manager in device. All other apps /mentioned above/ starts without any additional configuration - just after install & first manual run.
 
Last edited:
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Normal that the StartAtBoot attribute had been commented in the test.zip project attached ?
 
Upvote 0
Top