コード例 #1
0
 @Override
 protected void onResume() {
   super.onResume();
   UserSharedPreference userSharedPreference = new UserSharedPreference(this);
   Bitmap bitmap = userSharedPreference.getUserPhotoBitmap();
   if (bitmap != null) mLeftMenuHeadIV.setImageBitmap(bitmap);
 }
コード例 #2
0
 private void showUserName() {
   UserSharedPreference userSharedPreference = new UserSharedPreference(this);
   String strNickName = userSharedPreference.getStrUserName();
   if (strNickName == null || strNickName.length() <= 0) {
     int iUserType = userSharedPreference.getiUserType();
     if (iUserType == Util.PHONE_LOGIN) strNickName = userSharedPreference.getStrPhoneNumber();
   }
   if (strNickName != null) {
     mLeftMenuUserNameTV.setText(strNickName);
   }
 }