Hi,

I am creating a database driven app for managing people.  I am showing
a list of people with each name in a TextView.  When a TextView is
clicked, I launch a new intent to show the detail for the person.

My question:  What's the best practices for passing the id of the
person to the new intent?  The TextView is displaying the name of the
person, so how do I know the id of the person?  Once I know the id, I
know how to pass it to the new intent, but I don't know what the best
way to associate the id of the person to the TextView.  Is there a
best practice for this?

thanks!

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

Reply via email to