listitem = m_adapter.getItem(position); can be listitem = 
getListAdapter().getItem(position) :P

On Thursday, 3 September 2009 02:20:31 UTC+5, danny wrote:
>
> Not sure what your issue is...but this is what worked for me. 
>
> In main activity init... 
>         final ListView searchResults = (ListView) findViewById 
> (R.id.list_search_results); 
>         searchResults.setOnItemClickListener(this); 
>
> and this DOES get called... 
>
>         @Override 
>     public void onItemClick(AdapterView<?> parent, View view, int 
> position, long id) { 
>         listItem = m_adapter.getItem(position); 
>         Log.i(null, listItem.getOrderName()); 
>     } 
>

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