For 1 and 2 you need to register a broadcast receiver, I've seen it done and code given in forms, I don't know the specifics off the top of my head.
-Kitzy On Mar 4, 8:50 pm, veenviz <veen....@gmail.com> wrote: > hi anrdoid-folks > im a student who is new to java and 've jst managed to run > hello word program in android sdk. > > im building a small app for which I need to know 3 things: > 1. the battery charge begins event (plugged thru AC power / USB or how > ever) > 2. the battery charging stopped event (unplugged from AC power / USB) > 3. api to query amount of battery left (in %) > > Can any of u guys plz help me with piece of code or links to the above > > any help is much appreciated -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en