Android Question Can you get raw NMEA sentences from GPS receiver?

Discussion in 'Android Questions' started by tmf, Jun 26, 2015.

  1. tmf

    tmf Member Licensed User

    In an Android device with GPS receiver can you get the raw NMEA sentences?

  2. Troberg

    Troberg Well-Known Member Licensed User

    Something like this:

    Sub Class_Globals
    Private MyGPS As GPS
    End Sub

    Public Sub Initialize
    If MyGPS.GPSEnabled = False Then
    StartActivity(MyGPS.LocationSettingsIntent) 'Will open the relevant settings screen.
    End If
    End Sub

    Public Sub Destroy()
    End Sub

    Private Sub MyGPS_NMEA (TimeStamp As Long, Sentence As String)
    End Sub
    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice