Private MyGPS As GPS
Public Sub Initialize
If MyGPS.GPSEnabled = False Then
StartActivity(MyGPS.LocationSettingsIntent) 'Will open the relevant settings screen.
Public Sub Destroy()
Private Sub MyGPS_NMEA (TimeStamp As Long, Sentence As String)
Edit: Note: Destroy is not called by default, you'll have to call it manually to dispose of the class when you don't need it anymore.