Android Question Open app from service module

luke2012

Well-Known Member
Licensed User
Longtime User
Hi to all,
how to call the app's main from a service (the service is within the app's main to call) ?

I'm using this code inside the service but the app crash:

B4X:
Sub SIP_CallRinging (IncomingCall As SipAudioCall)
    OpenApp
End Sub

Sub OpenApp
    Dim i As Intent
    i.Initialize("", "")
    i.SetComponent("luke2012.android.allpetvoip/.main")
    StartActivity(i)
End Sub
 
Top