@Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case 0:
       Toast.makeText(SettingActivity.this, "清理成功", Toast.LENGTH_SHORT).show();
       break;
   }
 }
 @Override
 public void handleMessage(Message msg) {
   // TODO Auto-generated method stub
   super.handleMessage(msg);
   czz_name.setText(optname);
   czz_psw.setText(optpsw);
   admin_name.setText(adminname);
   admin_psw.setText(adminpsw);
   hideProgressDialog();
 }
Beispiel #3
0
 @Override
 public synchronized void handleMessage(Message msg) {
   // TODO Auto-generated method stub
   switch (msg.what) {
     case UPDATE_TIPS:
       if (tips != null) {
         tips.setText((CharSequence) msg.obj);
       }
       break;
     default:
       super.handleMessage(msg);
   }
 }
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   if (scroll.getScrollY() + height + 100 >= background.getHeight()) {
     if (!isLoading && !isLoaddone) {
       new LoadDataAsync().execute();
     }
   }
   //			if(scroll.getScrollY() != y){
   //				((TextView)findViewById(R.id.slide_btn)).getBackground().setAlpha(100);
   //			}else{
   //				((TextView)findViewById(R.id.slide_btn)).getBackground().setAlpha(255);
   //			}
   //			y = scroll.getScrollY();
 }
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
   switch (msg.what) {
     case 1:
       mAddBlack.setVisibility(View.GONE);
       mRemoveBlack.setVisibility(View.VISIBLE);
       mUserInfo.setText(title + "已被加入黑名单,无法收到此用户消息");
       break;
     case 2:
       mAddBlack.setVisibility(View.VISIBLE);
       mRemoveBlack.setVisibility(View.GONE);
       mUserInfo.setText(title);
       break;
   }
 }
Beispiel #6
0
        @SuppressWarnings("unchecked")
        @Override
        public void handleMessage(android.os.Message msg) {
          super.handleMessage(msg);
          switch (msg.what) {
            case MSG_SET_ALIAS:
              JPushInterface.setAliasAndTags(
                  getApplicationContext(), (String) msg.obj, null, mAliasCallback);
              break;

            case MSG_SET_TAGS:
              JPushInterface.setAliasAndTags(
                  getApplicationContext(), null, (Set<String>) msg.obj, mTagsCallback);
              break;
          }
        }
Beispiel #7
0
        @Override
        public void handleMessage(Message msg) {
          super.handleMessage(msg);
          switch (msg.what) {
            case GlobalParam.MSG_COMMENT_STATUS:
              WeiYuanState status = (WeiYuanState) msg.obj;
              if (status == null) {
                Toast.makeText(mContext, R.string.commit_data_error, Toast.LENGTH_LONG).show();
                return;
              }
              if (status.code != 0) {
                Toast.makeText(mContext, status.errorMsg, Toast.LENGTH_LONG).show();
                return;
              }
              setResult(RESULT_OK);
              sendBroadcast(new Intent(FriensLoopActivity.MSG_REFRESH_MOVIINF));
              sendBroadcast(new Intent(GlobalParam.ACTION_REFRESH_MOVING_DETAIL));
              AlbumCommentActivity.this.finish();
              break;

            default:
              break;
          }
        }
 @Override
 public void handleMessage(Message msg) {
   super.handleMessage(msg);
 }