merlin2049er Well-Known Member Licensed User Longtime User Jun 17, 2015 #1 I've got a small app that looks up and dials a number, then I'd like to exit the app. Code: For Each Phone As cuPhone In cu.GetPhones(c.Id) If Phone.PhoneType = "other" Then dial(Phone.number) Activity.Finish End If . . . Sub dial(number As String) Dim i As Intent i.Initialize(i.ACTION_CALL, "tel:" & number) StartActivity(i) End Sub I'm not sure why it continues to run further code in activity create, even after the activity.finish command...
I've got a small app that looks up and dials a number, then I'd like to exit the app. Code: For Each Phone As cuPhone In cu.GetPhones(c.Id) If Phone.PhoneType = "other" Then dial(Phone.number) Activity.Finish End If . . . Sub dial(number As String) Dim i As Intent i.Initialize(i.ACTION_CALL, "tel:" & number) StartActivity(i) End Sub I'm not sure why it continues to run further code in activity create, even after the activity.finish command...
Douglas Farias Expert Licensed User Longtime User Jun 17, 2015 #2 Try use Code: ExitApplication Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Jun 17, 2015 #3 Thank, didn't know that existed. Lol. Upvote 0
Gunther Active Member Licensed User Longtime User Jun 18, 2015 #4 Just for info: As you may know, Erel doesn't like the Code: ExitApplication His approach is that the OS should decide to finish the app completely, which one can do with Code: Activity.Finish Upvote 0
Just for info: As you may know, Erel doesn't like the Code: ExitApplication His approach is that the OS should decide to finish the app completely, which one can do with Code: Activity.Finish
merlin2049er Well-Known Member Licensed User Longtime User Jun 18, 2015 #5 Thanks, I used both (just in case) ! Upvote 0