|
[android-beginners] Re: OnItemClickListener: msg#01239AndroidBeginners
Holden Karau wrote: > I'm trying to set on OnItemClickListener for a ListView > Whenever > s.setOnItemClickListener(OnItemClicksitelist); > runs I get the wonderful "has stopped unexpectedly" error > I've allready set the adapter on s without any issues and it works > when I don't have the click listener defined (namely it displays the > items) > > The listener is as follows > private OnItemClickListener OnItemClicksitelist = new OnItemClickListener(){ > > public void onItemClick(AdapterView<?> arg0, View arg1, int > arg2, > long arg3) { > .... > } > } > > Any suggestions about what I might be doing wrong? What does your Java stack trace tell you? You can get this via adb logcat, DDMS, or the DDMS perspective in Eclipse. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to android-beginners-unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |