-3

Has a MainActvity,the fragment is inside. The Fragment startActivityForResult to another Activity,and get data setResult() to the Fragment. The Mainctivity's launchMode is defult. But,the Fragment's Method onActivityForResult() is not implement.

1 Answers1

1

Make sure to call super.onActivityResult in your MainActivity if you override onActivityResult

That's the most common mistake but there are more cases which are covered here

Community
  • 1
  • 1
arsent
  • 6,975
  • 3
  • 32
  • 31