Question: I'd like to know if there is a way to get the elapsed time since the phone was unplugged from AC supply. I know that I can register a receiver to catch battery events - but this just works if my service is running already when the status changes.

In my case I assume that the application is started when the AC supply was already plugged out before and I then want to retrieve the time

thanks in advance,
cheers

Martin

Answer: 
JuicePlotter does this somehow (<http://latedroid.com/juiceplotter>), it graphs battery events from before the app was started, or even installed. I don't know how it works, but it would be a good place to do some research.
looks like there's no way to figure out