> I have a ListView that shows data from the database. When clicked over an > item of the list, I need to know what is the id of that item in the > database.
http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html http://developer.android.com/reference/android/widget/AdapterView.OnItemSelectedListener.html Whichever one of those you are using, the ID of the item in the list is passed as the "id" parameter. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

