> Step #2: In contact_list.java class, ListView items with checkboxes,
> and two buttons "OK" and "CANCEL". When OK button is pressed, pass the
> names of ListView items that are checked, to the first activity
> (send_to.java)
>
>          setResult(RESULT_OK, Intent data);
>
>          How do I bundle the checkbox status to the Intent data?

Try something like:

Intent stuffToReturn=new Intent();

stuffToReturn.putExtra("someKey", someValue);
stuffToReturn.putExtra("someOtherKey", someOtherValue);
// lather, rinse, repeat

setResult(RESULT_OK, stuffToReturn);

> Step #3: Back in the calling activity, send_to.java, I need to
> override onActivityResult(int requestCode, int resultCode, Intent
> data). Is this correct?

Yes. You can see an example of that here:

http://github.com/commonsguy/cw-android/tree/master/Rotation/RotationOne/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


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

Reply via email to