The Activity_Pause(UserClosed as Boolean) is not running in my app. I have tried closing the app using various methods (Home button, back button, launching other activities etc.) At no time, in any scenario, does the Activity_Pause run. Below are 2 examples of code within the pause subroutine (from different activities). Neither runs, ever. Any ideas why?
Thanks
B4X:
Sub Activity_Pause(UserClosed As Boolean)
ToastMessageShow("Activity_Pause raised this message", True)
End Sub
B4X:
Sub Activity_Pause(UserClosed As Boolean)
If UserClosed = True Then
Dim result As Int
result = Msgbox2("Do you want to switch APN?", "APN Settings","Yes", "", "No", Null)
If result = DialogResponse.POSITIVE Then
Dim i As Intent
i.Initialize("android.settings.APN_SETTINGS", "")
StartActivity(i)
End If
End If
End Sub
Thanks