[android-developers] Re: How can i select data onListClick

2010-03-23 Thread alain
Actually, it's beacause the Object itself in the Adapter is a Cursor ... This could help you maybe. Instead of : String callno = mContactList.getAdapter().getItem(position).toString(); I would try : String callno = mContactList.getAdapter().getItem(position).toString(); String callno = ((Curso

Re: [android-developers] Re: How can i select data onListClick

2010-03-22 Thread Nandan .
Thanks for help. i had solve that problem using cursor.i takeout data direct from cursor. but until i cant understand why its not working with adapter or listview. once again thank you for help On Mon, Mar 22, 2010 at 1:33 AM, alain wrote: > I use the listener on the Listview this way : > >

[android-developers] Re: How can i select data onListClick

2010-03-22 Thread alain
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);

Re: [android-developers] Re: How can i select data onListClick

2010-03-22 Thread Nandan .
hiii when i want to retrive data from the list on the Onlistclick event.using this code. String callno = mContactList.getAdapter().getItem(position).toString(); its retrive bellow information. android.content.contentresolver$cursorwrapperin...@43d4e598 but i want that String on which i click

[android-developers] Re: How can i select data onListClick

2010-03-20 Thread Paul Turchenko
What exactly not working? On Mar 20, 2:34 pm, "Nandan ." wrote: > its pass bellow information to another activity > > android.content.contentresolver$cursorwrapperin...@43d4e598 > > plz help me > > > > On Sat, Mar 20, 2010 at 5:50 PM, Nandan . wrote: > > Hiii > > > i had used Listview to display

[android-developers] Re: How can i select data onListClick

2010-03-20 Thread Nandan .
its pass bellow information to another activity android.content.contentresolver$cursorwrapperin...@43d4e598 plz help me On Sat, Mar 20, 2010 at 5:50 PM, Nandan . wrote: > Hiii > > i had used Listview to display phoneno from phonebook.now i want on the > onListClick event just select the phonno