I have a project requirement which requires android to be always powered on with service running in background. While I can handle service part, as from 2.2 by using START_STICKY, still there is no way I can guarantee the device always is on. Or at-least if connected to power-supply should boot automatically, if switched off.
Is there any solution for this in real world ? Except for going to make a new firmware, I need some ideas or a workaround. Thanks.
UPDATE: I thought to be better more clear. In my case I am not using android as a mobile and there will be no user. Its use is like an hardware equipment running android which once installed with my app, no one has access to it. And is always connected to power supply and internet. Also user will have access to its power-supply controls.
I agree it cannot be done from inside application or using Android APIs. But this is a real world problem, and I desperately need a solution on this. Any thing even not related to programming, may be mechanical or anything.
I also wanted to do the same but could not find any solution online. Then I came up with a hardware solution which I have described in my blog here http://iembed.tumblr.com/post/9055351385/boot-on-power
Hope this helps!