@Override
 protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
   super.onActivityResult(requestCode, resultCode, intent);
   if (resultCode == RESULT_OK) {
     switch (requestCode) {
       case LOCATION_REQUEST:
         final double latitude = intent.getDoubleExtra(LocationActivity.LATITUDE, 0);
         final double longitude = intent.getDoubleExtra(LocationActivity.LONGITUDE, 0);
         final String address = intent.getStringExtra(LocationActivity.ADDRESS);
         if (!TextUtils.isEmpty(address)) {
           AVIMLocationMessage locationMsg = new AVIMLocationMessage();
           locationMsg.setLocation(new AVGeoPoint(latitude, longitude));
           locationMsg.setText(address);
           chatFragment.sendMessage(locationMsg);
         } else {
           showToast(R.string.chat_cannotGetYourAddressInfo);
         }
         break;
       case QUIT_GROUP_REQUEST:
         finish();
         break;
     }
   }
 }
 @Override
 protected void onResume() {
   NotificationUtils.cancelNotification(this);
   super.onResume();
 }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
 }