0

Why the function onActivityResult in FragmentActivity is protected

meanwhile the function onActivityResult in Fragment is public?

sooglejay
  • 1,355
  • 1
  • 9
  • 15
  • Because the activity need to access its fragment, included the fragment's methods. – Anggrayudi H Nov 24 '15 at 14:14
  • Possible duplicate of [onActivityResult is not being called in Fragment](https://stackoverflow.com/questions/6147884/onactivityresult-is-not-being-called-in-fragment) – sooglejay Sep 05 '18 at 05:35

1 Answers1

0

Because the activity need to access its fragment, included the fragment's methods.

Thanks to @Anggrayudi H.

sooglejay
  • 1,355
  • 1
  • 9
  • 15