> How can we pass checked box status from one activity to the calling > activity? > > For e.g., I have two activities. The first activity calls the second > activity that has a listview with checkboxed items and two buttons, > 'OK' and 'CANCEL'. The second activity has to pass the names of list > items that are checked to the calling acitivity. I am not able to > figure out how to do this efficiently?
Step #1: Have the first activity use startActivityForResult() to invoke the second activity Step #2: Have the second activity call setResult() after the user makes her selections, encoding the various bits of information in the Intent supplied to setResult() (e.g., as extras) Step #3: Have the first activity override onActivityResult() to get the Intent created in Step #2. -- 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 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