Android Question GPS App Crashes On Exit

RichardN

Well-Known Member
Licensed User
Longtime User
I have incorporated the Starter module from Erel's GPS Example HERE in an app that incorporates Google Mapping. The required manifest text is also present. All the intended functionality works correctly apart from the fact that the app causes a brief system level crash when it exits. (A blank Android home screen is displayed for a few seconds before it sorts itself out and returns to normal)

In debug mode I get the error:

The code in question:
B4X:
Sub Activity_Pause
    CallSubDelayed(Starter, "StopGPS")
End Sub

'From the starter module (unchanged from the quoted example)

Public Sub StopGps

    If gpsStarted Then
        GPS1.Stop
        gpsStarted = False
    End If
    
End Sub

Anyone seen this before?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…