コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void onProviderDisabled(String provider) {
   Log.d(TAG, "onProviderDisabled - " + provider);
   QWeatherNative.OnLocationReady(0, 0, 0);
 }