@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); } }
@Override public void onDestroy() { super.onDestroy(); if (networkReceiver != null) unregisterReceiver(networkReceiver); }