Manifest.xml :
<receiver android:name=".BattStatusShow">
<intent-filter>
<action android:name="android.intent.action.ums_connected" />
</intent-filter>
</receiver>
BroadcastReceiver, USB .
public class BattStatusShow extends BroadcastReceiver{
if (intent.getAction().equalsIgnoreCase( "android.intent.action.UMS_CONNECTED")) {
}
}
, , , Android- . , , Nokia PC Station Nokia .