vendredi 10 avril 2015

Edit/Delete rows of sqlLite data base in android

i use this tutorial for writing an android proje that shows data base's field in ListView. now i want to Edit them (edit/delete) with ActionMode's buttons. i use this code but it doesn't work.



public void editBTN() {
Intent i = new Intent(getApplicationContext(),AddActivity.class);
i.putExtra("Id", testId);
i.putExtra("Number" ,test_number);
i.putExtra("update", true);
startActivity(i);
}


would you please help me towrite EDITing and DELETing code?thanks!


Aucun commentaire:

Enregistrer un commentaire