コード例 #1
0
 /** 初始化数据 void */
 private void initCommonInfoData() {
   // 设置已绑定的手机号码
   String bindPhone = "";
   RelateUser relateUser = AccountManager.getInstance().getRelateUser(RelateUser.TYPE_PHONE);
   if (relateUser != null) {
     bindPhone = AccountManager.getInstance().getDisplayName(relateUser);
   }
   mBindPhoneTextView.setText(bindPhone);
 }
コード例 #2
0
 /** 设置密码 void */
 private void setPassWord() {
   Intent intent =
       new Intent(YellowpagePersonalInfoActivity.this, YellowpageModifyPasswordActivity.class);
   RelateUser relateUser = AccountManager.getInstance().getRelateUser(RelateUser.TYPE_PHONE);
   String showStr =
       relateUser.accName.substring(0, 3)
           + " "
           + relateUser.accName.substring(3, 7)
           + " "
           + relateUser.accName.substring(7);
   intent.putExtra("old_phone", showStr);
   startActivity(intent);
 }