Code example for Location

Methods: getAccuracygetLatitudegetLongitude

0
public class OverlayLocationNotifier { 
 
	public static boolean locationEqual(final Location l1, final Location l2) {
		return (l1 == null && l2 == null)
				|| (l1 != null && l2 != null
						&& l1.getLatitude() == l2.getLatitude()
						&& l1.getLongitude() == l2.getLongitude() && l1
						.getAccuracy() == l2.getAccuracy());
	} 
 
	private final NotificationManager nm;
 
	private final NetworkLocationService service;
 
	public OverlayLocationNotifier(final NetworkLocationService service) {
		this.service = service;
		nm = (NotificationManager) service
				.getSystemService(Context.NOTIFICATION_SERVICE);
	} 
 
	public void start() {