diff --git a/api/current.xml b/api/current.xml index 04b7c9aa6e0b8..9a635f6f9ef6b 100644 --- a/api/current.xml +++ b/api/current.xml @@ -72101,6 +72101,29 @@ + + + + + + + + + + + + + + + + NMEA 0183 for more details. + * You can implement this interface and call {@link LocationManager#addNmeaListener} + * to receive NMEA data from the GPS engine. */ public interface NmeaListener { void onNmeaReceived(long timestamp, String nmea); diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java index 8f17e78259900..8f0352da63bf2 100644 --- a/location/java/android/location/LocationManager.java +++ b/location/java/android/location/LocationManager.java @@ -1276,13 +1276,11 @@ public class LocationManager { /** * Adds an NMEA listener. * - * @param listener NMEA listener object to register + * @param listener a {#link GpsStatus.NmeaListener} object to register * * @return true if the listener was successfully added * * @throws SecurityException if the ACCESS_FINE_LOCATION permission is not present - * - * {@hide} */ public boolean addNmeaListener(GpsStatus.NmeaListener listener) { boolean result; @@ -1308,9 +1306,7 @@ public class LocationManager { /** * Removes an NMEA listener. * - * @param listener NMEA listener object to remove - * - * {@hide} + * @param listener a {#link GpsStatus.NmeaListener} object to remove */ public void removeNmeaListener(GpsStatus.NmeaListener listener) { try {