Professional Documents
Culture Documents
Maps
Maps
A0:C2:D9:63:4E:34:FF:C7:D2:9B:55:33:54:91:D5:ED:29:2E:3C:BB
if (location != null) {
Lat = location.getLatitude();
Log = location.getLongitude();
agregarMarcador(Lat, Log);
@Override
public void onStatusChanged(String s, int i, Bundle bundle) {
@Override
public void onProviderEnabled(String s) {
@Override
public void onProviderDisabled(String s) {
}
};
if (ActivityCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&
ActivityCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
return;
}
LocationManager locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
ActualizarUbicacion(location);
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,10000,0,
locationListener);