I want to start service once i get BOOT_COMPLETE intent. In HTC explorer there are 2 options for reboot those are ‘poweroff’ and ‘restart’. When i use ‘restart’ i am getting BOOT_COMPLETE intent properly. But when i use ‘poweroff’ not getting BOOT_COMPLETE intent so i am not able to start service. Is their any intent i can get only after reboot in HTC?
I have been surfing Google, could not find any hint. I am stuck please help me out
I used this code <action android:name="android.intent.action.BOOT_COMPLETED"/> in manifest but no use
Thanks in advance
Some HTC devices can enable a “fast boot” feature that is more like a deep hibernation and not a real reboot and therefore should not give the BOOT_COMPLETE intent. Also make sure that the app is not installed on the SD card as it might not receive the BOOT_COMPLETED because of that.
This might also be interesting:
http://commonsware.com/blog/2011/07/13/boot-completed-regression-confirmed.html
http://arthurfmay.blogspot.jp/2011/06/broadcastreceiver-bootcompleted-and.html
And especially this where the “fast boot” option is being mentioned:
http://groups.google.com/group/android-developers/browse_thread/thread/56562e4de4919dc6
Edit:
How about simply using:
And you can then check if the service is running:
And if it isn’t just start it: