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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -