@Override
 protected void onResume() {
   CacheService.setCurConv(conversation);
   ChatManagerAdapterImpl chatManagerAdapter =
       (ChatManagerAdapterImpl) ChatManager.getInstance().getChatManagerAdapter();
   chatManagerAdapter.cancelNotification();
   super.onResume();
 }
 @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)) {
           messageAgent.sendLocation(latitude, longitude, address);
         } else {
           toast(R.string.chat_cannotGetYourAddressInfo);
         }
         hideBottomLayout();
         break;
     }
   }
 }
 @Override
 protected void onDestroy() {
   CacheService.setCurConv(null);
   super.onDestroy();
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   initLocation();
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   addLocationBtn.setVisibility(View.VISIBLE);
   //    addLocationBtn.setVisibility(View.GONE);
 }