Android sqlite: how to retrieve specific data from particular column?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing restaurant menu application. My app has a sqlite table which has these columns: "id", "category", "item_name" Contents of category column is of type string. Primary key of table is id . I want to retrieve data of particular category. For example, I want to retrieve item names of all items which are in category Veg and then display this result in list view. I have tried following different queries but both are not working. Please help me. String vg ="Veg"; Cursor mCursor = database.query(true, DATABASE_TABLE, new String[] {