Back to project page geocamTalkAndroid.
The source code is released under:
NASA OPEN SOURCE AGREEMENT VERSION 1.3 THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE, REPRODUCTION, DISTRIBUTION, MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORI...
If you think the Android project geocamTalkAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
// __BEGIN_LICENSE__ // Copyright (C) 2008-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ /* w ww . j a va 2 s. c o m*/ package gov.nasa.arc.geocam.talk.service; import android.location.Location; import android.location.LocationListener; import android.os.Bundle; import android.util.Log; /** * The listener interface for receiving geoLocation events. The class that is * interested in processing a geoLocation event implements this interface, and * the object created with that class is registered with a component using the * component's <code>addGeoLocationListener<code> method. When * the geoLocation event occurs, that object's appropriate * method is invoked. * * @see GeoLocationEvent */ public class GeoLocationListener implements LocationListener { /** The cur location. */ private Location curLocation; /* * (non-Javadoc) * * @see * android.location.LocationListener#onLocationChanged(android.location. * Location) */ @Override public void onLocationChanged(Location location) { curLocation = location; Log.d("location", "location listened"); } /* * (non-Javadoc) * * @see * android.location.LocationListener#onProviderDisabled(java.lang.String) */ @Override public void onProviderDisabled(String provider) { } /* * (non-Javadoc) * * @see * android.location.LocationListener#onProviderEnabled(java.lang.String) */ @Override public void onProviderEnabled(String provider) { } /* * (non-Javadoc) * * @see android.location.LocationListener#onStatusChanged(java.lang.String, * int, android.os.Bundle) */ @Override public void onStatusChanged(String provider, int status, Bundle extras) { } /** * Gets the location. * * @return the location */ public Location getLocation() { return curLocation; } }