java - How to send an android system intent? -


because of bug described here want write little android app fix problem in indirect approach.

i want write program disconnect , reconnect charger programmatically.

i new java , android applications ( although know c,c++,c#).

from here not sure on right way, happy hear solution. 1 came send intent called battery_changed described here.

i quote: "this protected intent can sent system."

i want send battery state of charging change (of course, when battery full) couldn't "touch" method, ide(eclipse,with sdk, adt plugin, on win 7 x64) not recognize android.intent.action.battery_changed existing value. 2 things thought might useful: developer.android.com/reference/android/content/intent.html#action_power_connected developer.android.com/reference/android/content/intent.html#action_power_disconnected

sending action_battery_changed not affect charging, if broadcast yourself, firmware can do.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -