Ejemplo n.º 1
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   // 设置头像
   if (NApplication.ImgheadBitmap != null) {
     ivHead.setImageBitmap(NApplication.ImgheadBitmap);
   }
   // 上传头像
   if (NApplication.headBitmap != null) {
     dialog = ProgressDialog.show(UserInfoActivity.this, "提示", "正在加载中");
     savePicture(NApplication.headBitmap);
   }
   Intent intent = getIntent();
   IC = intent.getStringExtra("IC");
   name = intent.getStringExtra("name");
   Sex = intent.getStringExtra("Sex");
   if (IC != null) {
     tvNameContext.setText(name);
     tvIdContext.setText(IC);
     tvTelContext.setText(phone);
     tvSex.setText(Sex);
     IC = null;
   }
 }
Ejemplo n.º 2
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   //		setContentView(R.layout.activity_user_info);
   // 获取xml文件中的pass,phone,获取用户信息
   User user = new User(UserInfoActivity.this);
   pass = user.getPass();
   phone = user.getPhone();
   dohandler();
   userlnfo();
 }