How to obtain the possible duration of idle time of phone based on its current battery level
<p>I am new to the android programming environment.
I am currently working on a project which deals with the user's phone battery level.I am showing the current battery level left on the phone.now i want to display the amount of duration of "idle time, talk time, video playback, audio playback and web surfing" that can be done based on the current battery level.Please help me.What kind of approach shall i follow.(or) What available API shall i use to get those.</p>

<p>Thanking You</p>
