luke2012 Well-Known Member Licensed User Longtime User Oct 12, 2013 #1 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: Code: Copy 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
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: Code: Copy 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
luke2012 Well-Known Member Licensed User Longtime User Oct 12, 2013 #2 I have found the error The package name was wrong and the sub OpenApp made a crash. Upvote 0
NJDude Expert Licensed User Longtime User Oct 12, 2013 #3 Just do: Code: Copy StartActivity(Main) Upvote 0