Hi,
I want to catch the power connected event by add receiver to manifest.xml
and a service module named PowerConnectedReceiver,
but no effect, any sugguestion?
Thanks
I want to catch the power connected event by add receiver to manifest.xml
B4X:
AddReceiverText(PowerConnectedReceiver,
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
</intent-filter>)
and a service module named PowerConnectedReceiver,
B4X:
Sub Service_Start (StartingIntent As Intent)
Log("Power Connected!")
Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
End Sub
but no effect, any sugguestion?
Thanks