Check NetworkService and battery condition

Put your problem here if it does not fit any of the other categories.

Check NetworkService and battery condition

Postby Jitendra Kumar » Tue Mar 11, 2008 10:39 am

Hi! This is jitendra. I m working on GPS Based services based on Android. Is there any in built functionality to get the battery condition and check network status in Android. As we need to customize our own services we should be able to access how can battery condition can be shown.
Jitendra Kumar
Developer
Developer
 
Posts: 49
Joined: Thu Mar 06, 2008 7:55 am
Location: Bangalore

Top

Postby plusminus » Tue Mar 11, 2008 3:08 pm

Hello Jitendra,

I have not had a look for the BatteryStatus, but for Data-Connection, you can use a

DataStateIntentReceiver, which works fine (CONNECTED / CONNECTING / DISCONNECTED and DATAIN / DATAOUT).

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests