public void onLocationChanged(Location location) { double longitude = location.getLongitude(); double latitude = location.getLatitude(); Log.d(TAG, "longitude - " + longitude + " latitude - " + latitude); QWeatherNative.OnLocationReady(RESULT_OK, longitude, latitude); m_lm.removeUpdates(m_locationListener); }
public void onStatusChanged(String provider, int status, Bundle extras) { Log.d(TAG, "onStatusChanged - " + provider + " status - " + status); if (status == LocationProvider.OUT_OF_SERVICE) QWeatherNative.OnLocationReady(0, 0, 0); }
public void onProviderDisabled(String provider) { Log.d(TAG, "onProviderDisabled - " + provider); QWeatherNative.OnLocationReady(0, 0, 0); }