@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    showPopUpWindow();
    EventBus.getDefault().register(this);

    databaseUtils = new DatabaseUtils(this);
    userID = getIntent().getStringExtra("user_id");
    LogUtils.d("user_id", userID);
  }
 @Override
 protected void onStart() {
   super.onStart();
   btnBack.setOnClickListener(this);
   llAvatar.setOnClickListener(this);
   llName.setOnClickListener(this);
   llSex.setOnClickListener(this);
   llCity.setOnClickListener(this);
   llSignature.setOnClickListener(this);
   llPwd.setOnClickListener(this);
   llLogout.setOnClickListener(this);
 }
  @Override
  protected void onResume() {
    super.onResume();

    user = databaseUtils.queryUser(userID);
    LogUtils.d("user", user.toString());
    LogUtils.d("avataravatarqqqq", "::" + user.user_avatar);
    if (user != null) {
      ImageOptions imageOptions =
          new ImageOptions.Builder()
              .setIgnoreGif(true)
              .setImageScaleType(ImageView.ScaleType.CENTER_CROP)
              .setFailureDrawableId(R.drawable.person_avatar_default_round)
              .setLoadingDrawableId(R.drawable.person_avatar_default_round)
              .build();
      x.image().bind(ivAvatar, user.user_avatar, imageOptions);

      tvUserSex.setText(user.user_sex);
      tvUserName.setText(user.user_name);
      tvUserCity.setText(user.user_city);
      tvSignature.setText(user.user_signature);
    }
  }
 @Override
 protected void onDestroy() {
   super.onDestroy();
   ImageUtils.tempSelectedImg.clear();
   EventBus.getDefault().unregister(this);
 }