Exemplo n.º 1
0
  private void deleteRecord(int position, long id) {
    SFHelper.showToast(R.string.toast_delete);
    DoingListDBHelper dbhelper = new DoingListDBHelper(EDApplication.context);
    SQLiteDatabase job_db = dbhelper.getWritableDatabase();
    job_db.delete(DoingListDBHelper.TABLE_NAME, Constants.KEY_JOB_TIMESTAMP + "=" + id, null);
    job_db.close();
    dbhelper.close();

    DataProvider.instance.notifyDataChanged();

    mDoingListAdapter.notifyDataSetChanged();
  }
Exemplo n.º 2
0
 @Override
 protected void onResume() {
   mDoingListAdapter.notifyDataSetChanged();
   super.onResume();
 }