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(); }
@Override protected void onResume() { mDoingListAdapter.notifyDataSetChanged(); super.onResume(); }