Im trying to save my arraylist into sqlite.All of this values are String and any of two are int;photo and valoracion.
I know i cant save int into sqlite,but how can i fix it?¿
public List<Dataset> getAllItemList(){
ArrayList<Dataset> allItems = new ArrayList<Dataset>();
allItems.add(new Dataset("A todo gas", R.drawable.fast,"Diesel","Director1",0));
allItems.add(new Dataset("padrino", R.drawable.padrino,"Brandom","Directo2",10));
allItems.add(new Dataset("saw", R.drawable.saw,"Payaso","Director3",10));
return allItems;
}
Aucun commentaire:
Enregistrer un commentaire