I am using a Fragment
to start a new Activity
using startActivityForResult()
, I am getting the result (Bundle)
in onActivityResult
() method.Since onActivityResult
() called before onResume
().I want to make sure, I keep/save the Bundle
properly so that when Fragment's
onResume()
gets called, I get the kept/saved result to perform further action.
What are the different ways to achieve this. I tried using getArguments()/setArguments(), but that seems to be not the right way to achieve this.
Try this