I use the listener on the Listview this way :

getListView().setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> view, View arg1, int arg2,
long arg3) {
                String item = (String) view.getItemAtPosition(arg2);
                Toast.makeText(MyActivity.this, "HOP : " +
item,Toast.LENGTH_SHORT).show();
        }
});

maybe it can help !
alain
www.oxiane.com

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to