Hi Dileep,
The following code will loop through all items in the ListView 'lv'
and, if the checkbox is checked, will extract the email at that
position. It could take a bit longer if the list is long, but I don't
know of any other way to extract checked values.
ListView lv = some ListView Object;
int listItemCount = lv.getChildCount();
for( int i=0;i<listItemCount;i++ ) {
CheckBox cbox = (CheckBox) ((View)lv.getChildAt(i)).findViewById
(R.id.checkbox);
if( cbox.isChecked() ) {
String email = ((TextView)((View)lv.getChildAt(i)).findViewById
(R.id.email_field)).getText();
}
}
Kirk
On Feb 17, 6:53 am, dilu <[email protected]> wrote:
> Hi
> I have a list view with checkbox .List view contains all email list
> from phonebook application.Now i want to check multiple email at a
> time.After checking the email items ,I want to send some request to
> selected email.
> So,please tell me how to do this?
> any sample code or tutorial or anything relevant to this?
> Thanks
> dileep
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---