Stay organized with collections
Save and categorize content based on your preferences.
GpsStatus.NmeaListener
public
static
interface
GpsStatus.NmeaListener
android.location.GpsStatus.NmeaListener
|
This interface was deprecated
in API level 24.
use OnNmeaMessageListener
instead.
Used for receiving NMEA sentences from the GPS.
NMEA 0183 is a standard for communicating with marine electronic devices
and is a common method for receiving data from a GPS, typically over a serial port.
See NMEA 0183 for more details.
You can implement this interface and call LocationManager.addNmeaListener
to receive NMEA data from the GPS engine.
Summary
Public methods
onNmeaReceived
public abstract void onNmeaReceived (long timestamp,
String nmea)
Parameters |
timestamp |
long |
nmea |
String |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# GpsStatus.NmeaListener\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nGpsStatus.NmeaListener\n======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/location/GpsStatus.NmeaListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nGpsStatus.NmeaListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.location.GpsStatus.NmeaListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 24.** \n\nuse [OnNmeaMessageListener](/reference/android/location/OnNmeaMessageListener) instead.\n\nUsed for receiving NMEA sentences from the GPS.\nNMEA 0183 is a standard for communicating with marine electronic devices\nand is a common method for receiving data from a GPS, typically over a serial port.\nSee [NMEA 0183](http://en.wikipedia.org/wiki/NMEA_0183) for more details.\nYou can implement this interface and call [LocationManager.addNmeaListener](/reference/android/location/LocationManager#addNmeaListener(android.location.GpsStatus.NmeaListener))\nto receive NMEA data from the GPS engine.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onNmeaReceived](/reference/android/location/GpsStatus.NmeaListener#onNmeaReceived(long,%20java.lang.String))`(long timestamp, `[String](/reference/java/lang/String)` nmea) ` |\n\nPublic methods\n--------------\n\n### onNmeaReceived\n\nAdded in [API level 5](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onNmeaReceived (long timestamp, \n String nmea)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-----------------|\n| `timestamp` | `long` \u003cbr /\u003e |\n| `nmea` | `String` \u003cbr /\u003e |"]]