Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package hs163838.hs.ui.main;
- import android.location.Location;
- import android.location.LocationListener;
- import android.os.Bundle;
- import com.google.android.gms.maps.model.LatLng;
- public class MyLocationListener implements LocationListener{
- private Location location;
- private LatLng latLng;
- @Override
- public void onLocationChanged(Location loc){
- if(location!=null){
- latLng = new LatLng(location.getLatitude(), location.getLongitude()); }
- }
- @Override
- public void onProviderDisabled(String provider){
- // TODO Auto-gen method stub
- }
- @Override
- public void onProviderEnabled(String provider){
- // TODO Auto-gen method stub
- }
- @Override
- public void onStatusChanged(String provider, int status, Bundle extras){
- // TODO Auto-gen method stub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement