I've got a small app that looks up and dials a number, then I'd like to exit the app.
I'm not sure why it continues to run further code in activity create, even after the activity.finish command...
B4X:
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...