@Override
 public boolean onContextItemSelected(MenuItem item) {
   if (item.getItemId() == com.xuhai.telescopes.R.id.delete_contact) {
     try {
       // 删除此联系人
       deleteContact(toBeProcessUser);
       // 删除相关的邀请消息
       InviteMessgeDao dao = new InviteMessgeDao(getActivity());
       dao.deleteMessage(toBeProcessUser.getUsername());
     } catch (Exception e) {
       e.printStackTrace();
     }
     return true;
   } else if (item.getItemId() == com.xuhai.telescopes.R.id.add_to_blacklist) {
     moveToBlacklist(toBeProcessUsername);
     return true;
   }
   return super.onContextItemSelected(item);
 }
 @Override
 public void refresh() {
   super.refresh();
   if (inviteMessgeDao == null) {
     inviteMessgeDao = new InviteMessgeDao(getActivity());
   }
   if (inviteMessgeDao.getUnreadMessagesCount() > 0) {
     applicationItem.showUnreadMsgView();
   } else {
     applicationItem.hideUnreadMsgView();
   }
 }