Esempio n. 1
0
  @Override
  public void onResume() {
    // TODO Auto-generated method stub
    super.onResume();
    getPushCount();
    String accessToken = APP.getSession().getWeiboAccessToken();
    if (accessToken == null) {
      weiboBinding.setVisibility(View.GONE);
      weiboUnBinding.setVisibility(View.VISIBLE);
    } else {
      weiboBinding.setVisibility(View.VISIBLE);
      weiboUnBinding.setVisibility(View.GONE);
    }
    GetSingerInfoRequest request =
        new GetSingerInfoRequest(getActivity(), new GetSingerInfoRequest.Params(sid));
    request.request(
        new SimpleRequestHandler() {
          @Override
          public void onSuccess(Object object) {
            GetSingerInfoRequest.Result result = (GetSingerInfoRequest.Result) object;
            city.setText(result.getModels().getAddress());
            ImageLoader.getInstance()
                .displayImage(
                    result.getModels().getSingerimgurl(), avatar, DisplayOptions.IMG.getOptions());
            nickname.setText(result.getModels().getSingername());

            if (result.isPhoneLogin()) {
              phoneContainer.setVisibility(View.VISIBLE);
            } else {
              phoneContainer.setVisibility(View.GONE);
            }
            containerView.setVisibility(View.VISIBLE);
          }

          @Override
          public void onComplete() {
            loadingView.setVisibility(View.GONE);
          }
        });
  }
Esempio n. 2
0
 private void onlogout() {
   APP.getSession().logout();
   ((MemberFragment) getParentFragment()).initFragment(LoginFragment.newInstance());
 }
Esempio n. 3
0
 @Override
 protected String getURL() {
   // TODO Auto-generated method stub
   return APP.getAppConfig().getRequest_news() + "cctv11/InsertFeedbackhelp";
 }