The method onListItemClick(), which is maybe what you're asking about, is a protected method in ListActivity. You derive your Activity from ListActivity, instead of Activity and then override onListItemClick() and you should see some action.
On Dec 31, 1:19 pm, Eus <[email protected]> wrote: > HiHo! > > First, happy new year 2010! :-) > > Could someone please shed the light as to where onItemClick() function > gets called as callback when I click on the item of a ListView? > > In core/java/android/widget/AdapterView.java: > > onItemClick() belongs to the interface OnItemClickListener of > AdapterView. > > The listener is set through setOnItemClickListener() of AdapterView. > > The listener is only invoked in performItemClick() of AdapterView. > > The listener is also invoked indirectly in performItemClick() of > ListView. > > But, I still don't know where exactly onItemClick() of the listener will > get called when I click on the item of a ListView. Logically it should > be like: > > device -> kernel driver -> dalvik VM -> my app. > > Could someone please tell me the exact code that calls onItemClick() > when I click on the item through the device? > > Thank you. > > -- > Best regards, > Eus (FSF member #4445) > > In this digital era, where computing technology is pervasive, your > freedom depends on the software controlling those computing devices. > > Join free software movement today! It is free as in freedom, not as in > free beer! > > Join:http://www.fsf.org/jf?referrer=4445 -- 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

