-1

Sir/Madam, I want to make a callback result to one fragment to another fragment using android JAVA. I try-out to find the issue but non of the solution found. If i using interface it send callback response to Activity, which i didn't want. thank you!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

1

You have many options to do so:

  1. Shared ViewModel (Recommended) (https://medium.com/@abhilashmyworld/communicate-between-fragments-using-viewmodel-e83344e9df53)

  2. EventBus

  3. Through the Hosting activity (calling method on fragment object)

  4. Passing objects

  5. Broadcast (too old school)

Sandesh Baliga
  • 579
  • 5
  • 20