예제 #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);
   }
 }