Пример #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);
   }
 }