[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Sasi Kumar
join the below group to discuss more http://groups.google.com/group/mobile-application-developers use like this lv=(ListView)findViewById(R.id.ListView01); lv.setChoiceMode(lv.CHOICE_MODE_SINGLE); lv.setAdapter(new ArrayAdapterString(this,

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Martin Obreshkov
You can register public abstract void onItemSelected (AdapterView? parent, View view, int position, long id) and to retrieve the selected value from ArrayAdapter.getItem(int position) using the selected position as parameter. On Fri, Aug 28, 2009 at 3:35 PM, ragavendran ssraghav.ra...@gmail.com

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Martin Obreshkov
Thanks a lot it's really very simple and clear using ContextMenu On Fri, Aug 28, 2009 at 3:45 PM, Sasi Kumarsasikumar.it1...@gmail.com wrote: join the below group to discuss more http://groups.google.com/group/mobile-application-developers use like this                

[android-developers] Re: How i get the Selected item from the list Adapter.

2009-08-28 Thread Yusuf Saib (T-Mobile USA)
You can't figure out which item is selected from the adapter. It is the ListView or ListActivity (depending on which you used) that will tell you which is selected. Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely