Ejemplo n.º 1
0
  private void first() {
    mContext = getActivity();
    deviceHeight = getResources().getDisplayMetrics().heightPixels;
    iconfont = Typeface.createFromAsset(mContext.getAssets(), "iconfont.ttf");

    mDataCener = DataCener.getInstance();
    // loading_dialog = mDataCener.createLoadingDialog(mContext);
    if (!AppUtil.isNull(mDataCener)) mDataService = mDataCener.getDataService();
  }
Ejemplo n.º 2
0
 @Override
 public HttpEntity getEntry() {
   HttpEntity aEntity = null;
   try {
     BaseReqBean.cpoyObjAttr(this.getBaseReqBean(), mReqBean, BaseReqBean.class);
     DataCener aCenter = DataCener.getInstance();
     if (null != aCenter) {
       mReqBean.setGroup(Constants.getMobileClientGroup());
       mReqBean.setUserName(aCenter.getUserName());
       mReqBean.setToken(aCenter.getToken());
       mReqBean.setOperation(action);
     }
     StringEntity aStrEntity = getStringEntity(mReqBean);
     aEntity = aStrEntity;
   } catch (Exception e) {
     e.printStackTrace();
   }
   return aEntity;
 }