Android Question Start service immediatelya boot

devmobile

Active Member
Licensed User
Hello
I can start service in boot start android with #StartAtBoot: True
But when android start,my service run after 2-5 second
While it run after 1 second or immediately
Thanks
 
I do not understand

I also do not see a question!?
 
Upvote 0
Android when it starts, it also starts the services. You can not set a priority on your App, it will be the operating system to decide, you can not anticipate it with respect to anything else
 
Upvote 0
Android when it starts, it also starts the services. You can not set a priority on your App, it will be the operating system to decide, you can not anticipate it with respect to anything else
My app lock statusbar
When android started,my app start but before run it,user can access to status
Do you have idea?
 
Upvote 0
I'm sorry, I have no idea how to do it. Maybe @Erel knows a method
 
Upvote 0
I see android.intent.action.QUICKBOOT_POWERON in stackoverflow that if i use it in my app,service run quickly
How do i use it?
 
Upvote 0
I use it but not working.
I think below below code but it take a second for start service
Code: Copy
AddReceiverText(s1, <intent-filter>
            <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
            <category android:name="android.intent.category.DEFAULT" />
            <action android:name="android.intent.action.BOOT_COMPLETED" />
               <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        </intent-filter>)
 
Upvote 0
I read in the post that maybe the attribute Start at Bolt was disabled. But re-read the threads, I'm out office now
 
Upvote 0
;)
 
Upvote 0
Please give me solution before i die
There seems not to be any as we must wait for the boot to be completed to receive the intent and start the service. Perhaps if you created your own ROM replacing the launcher... But feel free to die another day :)
 
Upvote 0
Back
Top