private void toQuery() {
   Log.wtf("collectionGuid", collectionGuid);
   Log.wtf("sharePre.getPres", sharePre.getPres("guid"));
   new QueryFavorOrNotTask(
           QueryDetailActivity.this, new GetData(), collectionGuid, sharePre.getPres("guid"))
       .execute();
 }
  @SuppressLint("NewApi")
  private void initParam() {
    application = (MyApp) getApplication();
    bean = (NiGoBean) getIntent().getSerializableExtra("bean");
    flag = getIntent().getStringExtra("flag");
    PADDING = UIUtil.dip2px(this, getResources().getDimension(R.dimen.padding));
    MARGINMORE = UIUtil.dip2px(this, getResources().getDimension(R.dimen.marginMore));
    sharePre = new OptsharepreInterface(QueryDetailActivity.this);

    //		mylat = UIUtil.tryToDouble(sharePre.getPres("lat"));
    //		mylon = UIUtil.tryToDouble(sharePre.getPres("lon"));
    mylat = application.getLat();
    mylon = application.getLon();

    collectionBean = new CollectionBean();
    collectionBean.setGuid(bean.getGuid());
    collectionBean.setCreateDate();
    collectionBean.setAddPersonGuid(sharePre.getPres("guid"));
    collectionGuid = bean.getGuid() == null ? "" : bean.getGuid();
    if (flag.equals("service")) {
      collectionBean.setTypeOfCollection(6);
    } else {
      collectionBean.setTypeOfCollection(3);
    }
    collectionBean.setCollectionGuid(bean.getGuid());
    serviceCollectBean = new ServiceCollectBean();
    serviceCollectBean.setGuid(bean.getGuid());
    collectionBean.setCollection(serviceCollectBean);
  }