Esempio n. 1
1
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   switch (requestCode) {
     case GET_LOCATION_REQUEST_CODE:
       if (m_instance.m_lm.isProviderEnabled(android.location.LocationManager.GPS_PROVIDER)) {
         doGetLocation();
       }
       break;
     default:
       super.onActivityResult(requestCode, resultCode, data);
   }
 }
Esempio n. 2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (networkReceiver != null) unregisterReceiver(networkReceiver);
 }