How do I get onActivityResult in fragment?
Answer
Option 1: If you’re calling startActivityForResult() from the fragment then you should call
startActivityForResult(), not getActivity(). startActivityForResult() , as it will result in fragment onActivityResult(). If you’re not sure where you’re calling on startActivityForResult() and how you will be calling methods.
Answer
Option 1: If you’re calling startActivityForResult() from the fragment then you should call
startActivityForResult(), not getActivity(). startActivityForResult() , as it will result in fragment onActivityResult(). If you’re not sure where you’re calling on startActivityForResult() and how you will be calling methods.