What exactly not working?

On Mar 20, 2:34 pm, "Nandan ." <bhavesh2...@gmail.com> 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 . <bhavesh2...@gmail.com> wrote:
> > Hiii
>
> > i had used Listview to display phoneno from phonebook.now i want on the
> > onListClick event just select the phonno and pass phone no to another
> > activity.
> > but its not working . can anyone help me . my code is below.
> > Thank you very much for help.
>
> > private void populateContactList() {
> >         // Build adapter with contact entries
> >         Cursor cursor = getContacts();
> >         String[] fields = new String[] {
> >                 ContactsContract.Data.DISPLAY_NAME
> >         };
> >        SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
> > R.layout.contact_entry, cursor,
> >                 fields, new int[] {R.id.contactEntryText});
> >         mContactList.setAdapter(adapter);
> >         mContactList.setOnItemClickListener(onListClick);
> >     }
>
> >     private ListView.OnItemClickListener onListClick=new
> > ListView.OnItemClickListener() {
> >         @Override
> >         public void onItemClick(AdapterView<?> mAdapterView, View v, int
> > position,
> >                 long id) {
> >             // TODO Auto-generated method stub
>
> >   // I have problem in this line to select data from listview
>
> > String callno = mContactList.getAdapter().getItem(position).toString();
>
> > Intent i=new Intent(ContactManager.this, phonebookcall.class);
> >             i.putExtra(abcd, callno);
> >             startActivity(i);
> >         }
> >     };
>
> > --
> > B!-!/-\\/!=$!-!
>
> --
> B!-!/-\\/!=$!-!

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