I'm Developing an Android Application where it's constantly required to keep the App up an running at all time. with the phone connected to a power outlet at all time, Is it possible that if the phone's battery died to Auto-start up the app with no user intervention . *i.e to power up the phone automatically without hitting any power button and start up android since charger is connected. * then start up my app with android.intent.action.BOOT_COMPLETED and RECEIVE_BOOT_COMPLETED permission
PS: I have tried android.intent.action.ACTION_POWER_CONNECTED but it only works if the phone is already powered up.
To prevent any important phone calls or SMS messages from being missed, the phone automatically powers on when being charged. When the phone is powered off and connected to a charger for charging: If the battery level is higher than 2%, the phone automatically powers on.
I have exactly same requirement as yours.
Can we plan a solution like this:
The Android device is always connected to charger's output. Charger's power supply is connected to a custom made hardware device which controls power supply to charger. This hardware device puts charger off until battery is getting low. i.e. 20% remaining. Once battery is less than 20%, that device automatically switch on the charger. The "custom made hardware" gets it input from android device itself via USB/WiFi/Bluetooth.
Just a thought. May not be practically possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With