when i run in service, i wanto show my app.main activity ,how to do?
OPENAPP(Application.PackageName)??
Sub OPENAPP(PACKNAME As String )
OPENAPP(Application.PackageName)??
Sub OPENAPP(PACKNAME As String )
B4X:
Sub OPENAPP(PACKNAME As String )
'GOOD
Try
Dim Intent1 As Intent
Dim pm As PackageManager
Intent1 = pm.GetApplicationIntent (PACKNAME)
StartActivity (Intent1)
Catch
ToastMessageShow ("Failed to launch app! Is it installed?", True)
End Try
End Sub