Hi,
I wanted to register for a SCREEN_ON intent to start a service
I found this intent and created a filter in the manifest :
AddReceiverText(unlock, <intent-filter>
<action android:name="android.intent.action.SCREEN_ON" />
</intent-filter>)
then added this code in my service :
Sub Service_Start (StartingIntent As Intent)
'ToastMessageShow("service start", False)
If (StartingIntent.HasExtra("android.intent.action.SCREEN_ON")) Then
ToastMessageShow("screen on", False)
End If
End Sub
but I never receive the intent for the SCREEN_ON event.
For sure I know how to create a service and wait for the screen_on event inside this service with the phone events library.
But I wanted to test it with an intent.
Is there a way to have it run ?
thanks