-1

When starting a new activity (MyActivity2) I can pass data with .addExtra(). After opening MyActivity2 I can call getExtra() and my data is right where I want it. My question - After calling finish() on MyActivity2, I want to pass data to MyActivity1. What is the proper way to pass data when just drilling back to the previous activity like this? A static variable seems to work but from what I have read, they are not part of OOP. What are my options?

temp_
  • 1,238
  • 2
  • 12
  • 24

1 Answers1

0

You can use startActivityForResult(). Check out this question.

Community
  • 1
  • 1
rakex
  • 1,999
  • 2
  • 16
  • 17