i have another problem in my app...
here the scenario : 1. i have sqlite file that i put in asset folder it contain title : VARCHAR and image : ?? (will be my question at this time i use VARCHAR)
i have image that i store in res/drawable folder
i set the value in sqlite, so my database already contain some value (title and image)
my question is
is it possible to set an image value from my sqlite so i can get the image from res/draweable folder?
if it possible, what type of data should i use? and how to call it when load the data base
if it not possible? what the best way to use the image?
at this time here my sqlite helper
public ArrayList<DrawerItem> getItemMenu(){
ArrayList<DrawerItem> listMenu = new ArrayList<DrawerItem>();
String selectQuery = "SELECT * FROM tbMenu";
Cursor cursor = myDataBase.rawQuery(selectQuery, null);
if(cursor.moveToFirst()){
do{
DrawerItem setMenu = new DrawerItem(selectQuery, Integer.parseInt(selectQuery));
setMenu.setTitle(cursor.getString(0));
setMenu.setImgResID(cursor.getInt(1));
listMenu.add(setMenu);
}while (cursor.moveToNext());
}
return listMenu;
}
thx for your time guys to read my question...