oh that's really bad practice.
your listview has to use a listadapter (e.g. ResourceCursorAdapter)
that adapter connects your content provider and there you can perform SQL 
queries to read the data from db.

first it looks a little bit complicated but you should really use this, not 
only for performance.

this is an article about implementing a content provider.
http://thinkandroid.wordpress.com/2010/01/13/writing-your-own-contentprovider/

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to