Android Devs,

I have a fundamental question regarding a ListActivity before I code.
I have a database which I query in the background using AsyncTask. I
take the resulting cursor and use it to create a custom
SimpleCursorAdapter which binds the cursor data with a custom XML I
pass to it (including setting the _id of each value to a TextView). In
order to create dynamic icons to go with each record returned, I
override setViewValue() for the SimpleCursorAdapter ViewBinder.

When the query is done, the adapter is created, I pass the adapter
back to the UI thread and set the ListView to that adapter (this is
best practice for querying dbs and leaving the UI thread to UI stuff
only right?) My question is, since I want to be able to click anywhere
on an item in the list and have it create an intent to start a new
activity and pass along the records ID, where do I assign an
onClickListener to each item? Do I assign it when I override
setViewValue() for the SimpleCursorAdapter?

Ultimately I want to be able to click an item and have it pull up a
new activity which is a detailed screen of an item.

Any help is always greatly appreciated. You guys and gals rock!

-Longshore

-- 
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