public void locationCb(String url, Location loc, AjaxStatus status) {

    if (loc != null) {
      Log.d("Location:" + loc.toString());
      mLatitude = String.valueOf(loc.getLatitude());
      mLongitude = String.valueOf(loc.getLongitude());

      // PlaceAPI api = new PlaceAPI(mAccessToken);
      // api.nearbyPois(mLatitude, mLongitude, range, q, category, count, page, offset, listener);

      mIsLocation = true;

      aq.id(R.id.ly_loadlocation).gone();
      aq.id(R.id.tv_location).visible();
      aq.id(R.id.ib_insert_location).image(R.drawable.btn_insert_location_nor_2);
    } else {
      Log.w("loc is null!");
    }
  }
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode == RESULT_OK) {
      if (null == data) {
        Toast.makeText(ComposeActivity.this, "添加图片失败!", Toast.LENGTH_SHORT).show();

        return;
      }
      Uri uri = data.getData();
      mPicPath = getRealPathFromURI(uri);
      Log.d("pic url == " + mPicPath);

      File file = new File(mPicPath);

      // load image from file, down sample to target width of 45 pixels
      aq.id(R.id.iv_insertpic).image(file, 45).visible();
    }

    super.onActivityResult(requestCode, resultCode, data);
  }