Android Training/Getting a Result from the Activity

Page contents not supported in other languages.
From Android Wiki