• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps need to store 2 column, but display only 1 in listview

jesb

Lurker
Jun 1, 2011
5
0
i'm new to android, and i'm trying to accomplish the following.

in SimpleCursorAdapter, i can bind 2 column to a ListView:
- the id of a row in sqllite db
- and the data of a row users see '

this app that i'm writing is displaying data from external source(data return from PHP which pull stuff from mysql).
how do i accomplish the same thing in ListView? i need to store the ID column, but display ONLY the data of a row WITHOUT the id.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones