Issue
How would I programmatically determine when an android device has rebooted (whether on its own, or user initiated) ?
Solution
Set up a BroadcastReceiver and register it in your manifest to respond to the android.intent.action.BOOT_COMPLETED system even. When the phone starts up the code in your broadcastreceiver's onReceive method will run. Make sure it either spawns a separate thread or takes less than 10 seconds, the OS will destroy your broadcastreceiver thread after 10 seconds.
Answered By - Aaron Bruce
Answer Checked By - Katrina (JavaFixing Volunteer)