mardi 6 octobre 2015

Multiple Table SQLiteDatabase instantiation Trouble

I am trying to set up an app with multiply tables in the data base. I have been following Multiple Table SQLite DB Adapter(s) in Android? but have ran into some trouble.

I have set up my tables using the same steps as in the post above but What I don't understand is how I call upon the functions of the adapters in my main activity?

I thought this would work

DBAdapter db = new DBAdapter(this);
CarsDBAdapter car = new CarsDBAdapter(this);
car.getAllCars();

But I get an error saying 'cant resolve getAllCars'

Any help would be great.

Aucun commentaire:

Enregistrer un commentaire