Hi, I can't start my app on android 10 from the service.(It's ok on the android 7.)
I found a way like this :
So i can see my app's notifaction bar afer the system reboot , but i dont know how to start activity from the notifaction .
I am try this code but its not run:
I found a way like this :
B4X:
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT"/>
I am try this code but its not run:
B4X:
Sub Service_Start (StartingIntent As Intent)
Log("Service started !")
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "package:my.package.app")
StartActivity(in)
'Service.StopAutomaticForeground 'Call this when the background task completes (if there is one)
End Sub