I'm opening an Activity on fragment view touch. how to get data back to the fragment which opens the Activity.
See Question&Answers more detail:osI'm opening an Activity on fragment view touch. how to get data back to the fragment which opens the Activity.
See Question&Answers more detail:os1- First you'll have to start the Activity from your fragment using startActivityForResult()
2- Make sure to call super.onActivityResult
in your Activity's onActivityResult()
method ( if you're implementing it)
3-Inside your fragment, you just need to implement onActivityResult()
and handle the result as you wish