android - How to get only one column as the result of a query with ActiveAndroid? -


how can array column "name" of category model?

i can categories using

list<category> categorylist = new select()     .from(category.class)     .execute(); 

and create array name of category, guess there way directly , cannot find how.

a little late in answering this, issue because sqliteutils.rawquery() makes assumption id column going in cursor result. set columns string[] {id, your_column} , you'll fine.

    list<category> categorylist = new select(new string[]{"id,your_column"}).from(category.class).execute(); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -