dimanche 26 juillet 2015

how populate textview with specific column/row from sqlite database

Actually i am jus a newbee in android prog, below i have an example of my two table created, one in DbHelper and another one is in Schedule_DB_Helper. I have also activity_add_schedule, in my activity i have an txtSchedName(textview) which i want to populate from KEY_NAME="pname" in DbHelper and after I select specific name it will display its ID in txtID(textview) then i save that in Schedule_DB_Helper. I think is it possible to merge that two Helper but i dont have any idea, but then my problem as of now is how to populate txtSchedName(textview) of data from KEY_NAME="pname" in DbHelper.

Aucun commentaire:

Enregistrer un commentaire