p
You need to start the activity from the service and run this code from Activity_Create sub.
Thank you for your reply.
This is what I have already tested: From the Service I wake up the phone and start the activity-x over the lock screen. So far all fine. In the Activity_Create Sub
in activity-x I call ShowWhenLocked then I wait 5 seconds (timer) and then I try to start the 3rd party app with PackageManager:
In = pm.GetApplicationIntent(3rdPartyAppPackage)
If In.IsInitialized Then
StartActivity(In)
End If
The result: activity-x opens over the lock Screen, the 3rd Party app also opens but remains behind the lock Screen. (when I unlock I can see the app running)
But I want to open the 3rd party app directly from the Service and Show it over the lock Screen.