Stay organized with collections
Save and categorize content based on your preferences.
NmeaListener
interface NmeaListener
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 android.location.LocationManager#addNmeaListener to receive NMEA data from the GPS engine.
Summary
Public methods |
abstract Unit |
|
Public methods
onNmeaReceived
abstract fun onNmeaReceived(
timestamp: Long,
nmea: String!
): Unit
Deprecated: Deprecated in Java.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# GpsStatus.NmeaListener\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNmeaListener\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/location/GpsStatus.NmeaListener \"View this page in Java\") \n\n```\ninterface NmeaListener\n```\n\n|----------------------------------------------|\n| [android.location.GpsStatus.NmeaListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 24.**\n|\n| use [OnNmeaMessageListener](/reference/kotlin/android/location/OnNmeaMessageListener) instead.\n\nUsed 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](http://en.wikipedia.org/wiki/NMEA_0183) for more details. You can implement this interface and call android.location.LocationManager#addNmeaListener to receive NMEA data from the GPS engine.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onNmeaReceived](#onNmeaReceived(kotlin.Long,%20kotlin.String))`(`timestamp:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`, `nmea:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onNmeaReceived\n\nAdded in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onNmeaReceived(\n timestamp: Long, \n nmea: String!\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*"]]