locationManager .getLastKnownLocation(LocationManager.NETWORK_PROVIDER); if (tmpLocation != null) { String value = "" + tmpLocation.getTime(); // LogWrapper.v(TAG, "getLastCoordinates: " + coordinates + "; " // + new Date(tmpLocation.getTime())); // t0 = System.currentTimeMillis() - t0; // LogWrapper.v(TAG, t0 + "[ms]"); // dont return default 0,0 values sometimes seen if (tmpLocation.getLatitude() != 0f && tmpLocation.getLongitude() != 0) { return value; } else { return null; } } else { LogWrapper.v(TAG, t0 + "[ms]");