If I have a listview which is populated with a string array say:
Mazda
Renault
Holden
Audi
and when I want to click on an item, rather than returning string “Mazda” I’d rather return an associated number e.g. Mazda Returns 0, Renault returns 1 etc.
Is this possible and would I see a significant performance increase on querying an
SQLite DB using just ints rather than strings?
Thanks,
M
in your listview there are adapter are use, so in this method there are position variable also already exist there.if you print it in
logcatit will get every time position of your list-item.you need to handle it in array easily