@Override
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.contact_new_friend_activity);
   ButterKnife.inject(this);
   initView();
   refresh();
 }
 @Override
 protected void onDestroy() {
   if (locClient != null && locClient.isStarted()) {
     // 退出时销毁定位
     locClient.stop();
   }
   // 关闭定位图层
   baiduMap.setMyLocationEnabled(false);
   mapView.onDestroy();
   mapView = null;
   // 取消监听 SDK 广播
   unregisterReceiver(receiver);
   super.onDestroy();
   // 回收 bitmap 资源
   descriptor.recycle();
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.chat_location_activity);
   initBaiduMap();
 }
 @Override
 protected void onResume() {
   mapView.onResume();
   super.onResume();
 }
 @Override
 protected void onPause() {
   mapView.onPause();
   super.onPause();
   lastLocation = null;
 }