Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

detecting battery charging android

<receiver android:name=".PowerConnectionReceiver">
  <intent-filter>
    <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
    <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
  </intent-filter>
</receiver>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #detecting #battery #charging #android
ADD COMMENT
Topic
Name
6+8 =