@Override public boolean onContextItemSelected(MenuItem item) { boolean handled = true; Activity activity = getActivity(); switch (item.getItemId()) { case R.id.menu_show_avatar: UILauncher.launchShowFriendAvatarImage(activity, mSettingHelper.getAccountAvatar()); break; case R.id.menu_upload_avatar: UILauncher.launchUploadAvatarUIAndSave(this, REQUEST_CODE_UPLOAD_AVATAR); break; case R.id.preview_all_info: UILauncher.launchMyInfoUI(activity); break; default: handled = false; break; } return handled || super.onContextItemSelected(item); }