Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I want my desktop to check state of the phone and warn me at appropriate time (calculated on my presence at the desktop, phone charge, time of day and other criteria).

Is there a way to get my phone charge state remotely? What software/services should I use?

As programmer, I'd prefer a solution that would allow to script criteria and logic myself. All I need are means to access charge state remotely say through Google API's or web-published information.

I'm asking this question here as I believe there should be a ton of monitoring Android applications publishing state by various means.

share|improve this question

1 Answer 1

There's an app here that allows you to do that according to the description (along with many more things): https://market.android.com/details?id=com.androidlost&hl=en

If you want to code your own application then you'll want to check out this Intent and the two Intents below it (ACTION_BATTERY_LOW, ACTION_BATTERY_OKAY): http://developer.android.com/reference/android/content/Intent.html#ACTION_BATTERY_CHANGED

And this class which has what the Intent contains: http://developer.android.com/reference/android/os/BatteryManager.html

You could have your application pick up the ACTION_BATTERY_LOW Intent and then send a message to you warning you about the status.

I'm assuming you've done some Android development before, if not then get the basics down before coming back and trying to code your battery app.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.