List of usage examples for android.location LocationListener interface-usage
From source file de.grobox.liberario.DirectionsFragment.java
public class DirectionsFragment extends LiberarioFragment implements LocationListener { private View mView; private boolean mChange = false; private FavLocation.LOC_TYPE mHomeClicked; private LocationManager locationManager; private Location gps_loc = null;
From source file com.cs528.style.style.weather.WeatherActivity.java
/** * Created by xiongkuang on 4/14/16. * This activity is used to display weather condition and */ public class WeatherActivity extends MainActivity implements LocationListener { private static final int MY_PERMISSIONS_ACCESS_FINE_LOCATION = 1;
From source file com.m2dl.mini_projet.mini_projet_android.MainActivity.java
public class MainActivity extends AppCompatActivity implements LocationListener, OnMapReadyCallback, GoogleMap.OnMarkerClickListener { public static final String TAG = "UPS-Caring"; private Uri imageUri;
From source file uk.org.rivernile.edinburghbustracker.android.fragments.general.NearestStopsFragment.java
/**
* Show a list of the nearest bus stops to the handset. If a location could not
* be found or the user is too far away, an error message will be shown.
* The user is able to filter the shown bus stops by what bus services stop
* there. Long pressing on a bus stop shows a context menu where the user can
* perform various actions on that stop. Tapping the stop shows bus times for
From source file weathernotificationservice.wns.activities.MainActivity.java
public class MainActivity extends AppCompatActivity implements LocationListener { protected static final int MY_PERMISSIONS_ACCESS_FINE_LOCATION = 1; // Time in milliseconds; only reload weather if last update is longer ago than this value private static final int NO_UPDATE_REQUIRED_THRESHOLD = 300000;
From source file org.osm.keypadmapper2.KeypadMapper2Activity.java
public class KeypadMapper2Activity extends FragmentActivity implements AddressInterface, LocationListener, MenuListener, NotificationListener, SensorEventListener { SensorManager sensorManager; Sensor gsensor, msensor; float[] mGravity;
From source file org.spontaneous.trackservice.RemoteService.java
/**
* This is an example of implementing an application service that runs in a different process than the application.
* Because it can be in another process, we must use IPC to interact with it. The {@link Controller} and {@link Binding}
* classes show how to interact with the service.
*
* <p>
From source file eu.basicairdata.graziano.gpslogger.GPSApplication.java
public class GPSApplication extends Application implements GpsStatus.Listener, LocationListener { //private static final float M_TO_FT = 3.280839895f; private static final int NOT_AVAILABLE = -100000; //private static final int UM_METRIC_MS = 0;
From source file com.jbsoft.farmtotable.FarmToTableActivity.java
public class FarmToTableActivity extends AbstractMapActivity implements GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, LocationListener { private static final String STATE_NAV = "nav"; private static final int[] MAP_TYPES = { GoogleMap.MAP_TYPE_NORMAL, GoogleMap.MAP_TYPE_HYBRID, GoogleMap.MAP_TYPE_SATELLITE, GoogleMap.MAP_TYPE_TERRAIN };
From source file au.org.ala.fielddata.mobile.CollectSurveyData.java
/** * The CollectSurveyData activity presents a survey form to the user to fill * out. */ public class CollectSurveyData extends SherlockFragmentActivity implements SpeciesSelectionListener, OnPageChangeListener, LocationListener {