Beginning android: how to map a string to a list
Posted
by
user569421
on Stack Overflow
See other posts from Stack Overflow
or by user569421
Published on 2011-01-10T06:11:21Z
Indexed on
2011/01/10
6:53 UTC
Read the original article
Hit count: 204
I just finished the NotepadV1-3 tutorial for Android apps, and I was thinking of creating my own inventory app for fun, which for now basically consists of a list of names (such as "DVD" or "Grocery"), each of which can be clicked, which will bring up another specific list associated with that name. However, with the SQLiteDatabase.insert(..) method, the ContentValue can only take (among many others) "String, String" as argument, and I can't figure out how to input into the database a list of Strings associated with a particular key. I'm having trouble researching on how to resolve this as I am not that familiar with SQL.
What would be the best way to store a key with its associated list of Strings?
Any pointers and suggestions are appreciated!
Android newb :[
© Stack Overflow or respective owner