@Override
    public void onReceive(Context context, Intent intent) {
      do {
        long draftID = intent.getLongExtra(DraftMgr.DRAFT_ID, 0);
        if (intent.getAction().equals(NotifyProgress.ACTION_SUCCEED)) {
          // 点击刷新
          DraftMgr.instance().deleteDraft(draftID);
          mlistViewAdapter.delItem(draftID);
          Log.i("draft process delete" + draftID);
          mlistViewAdapter.notifyDataSetChanged();
          break;
        }
        if (intent.getAction().equals(NotifyProgress.ACTION_FAIL)) {
          DraftInfo draftinfo = (DraftInfo) mlistViewAdapter.getItemByid(draftID);
          if (draftinfo != null) {
            draftinfo.sending = false;
          }
          mlistViewAdapter.notifyDataSetChanged();
          break;
        }
        if (intent.getAction().equals(NotifyProgress.ACTION_PROCESS)) {

          break;
        }
      } while (false);
    }
        @Override
        public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
          DraftInfo info =
              (DraftInfo) mlistViewAdapter.getItem(arg2 - mlistView.getHeaderViewsCount());

          mDraftInfo = info;
          DraftMgr.instance().deleteDraft(info.id);
          mlistViewAdapter.notifyDataSetChanged();
          // resend(info);
          Intent i = new Intent(Statuses_Draft_Activity.this, Statuses_Send_Activity.class);
          i.setAction(Statuses_Send_Activity.ACTION_DRAFT);
          startActivity(i);

          finish();
        }
 private void clear() {
   mItems.clear();
   DraftMgr.instance().deleteAll();
   btnTitle.setText("草稿箱(" + getCount() + ")");
 }
 public void initData() {
   mItems = DraftMgr.instance().getDraft();
   btnTitle.setText("草稿箱(" + getCount() + ")");
 }