dimanche 6 septembre 2015

How to search for specific ID in SQLite android database and return its object

I want to add a method in myDBHandler that went passed an ID searches the row it belongs to and then make a new instance of a class and sets up all the information in the constructor like the name, the Id and the image.

So how do I get the row's position and populate my constructor with the columns?

Thanks!

Aucun commentaire:

Enregistrer un commentaire