Great, thank you Mark.  I really appreciate the help!

On Jan 25, 7:00 pm, Mark Murphy <[email protected]> wrote:
> Realm X wrote:
> > 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?)
>
> It's certainly a reasonable pattern.
>
> > 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?
>
> Neither. Set up a listener on the ListView. If this is part of a
> ListActivity, just override onListItemClick(). If not, use
> setOnItemClickListener() on the ListView itself.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Consulting/App Development:http://commonsware.com/consulting

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