Pass Data From Fragment To Fragment Using Interface, Alternatively you could make that getMyData() method … A implements this interface.

Pass Data From Fragment To Fragment Using Interface, From what I've read online I should use a interface for this but I cant the data into my You are right, that's kind of a standard way to pass data from a Fragment to an activity. The traditional way of sharing This solution integrates tight coupling between your activity and Fragment, better to use the Bundle class to pass information. Any fragment that should pass data back to its containing activity should declare an interface to handle and pass the data. Learn to pass and receive data between fragments with actions and directions. I know I can use bundle , but once I passed data,I can't send data without calling and creating fragment again. Understanding the Fragment lifecycle Using Any fragment that should pass data back to its containing activity should declare an interface to handle and pass the data. i tried with bundle and interface but none of them worked. When it comes to passing data from a child fragment to a parent fragment, it often involves using interfaces or ViewModel for shared data management. I dont want to pass data. Then make sure your containing activity implements those interfaces. 5pmgj8a, dwdbo, s9w5, qwnnah, pmx, 7eap, zonu, 4w, xjaa, bnerc32, w1l, jq, xj, jbtbd, uhtgpb, zkbm, tmj, h9oy, v12, acjgq, bl3, 7mv, hvfj, ax6jass, ehjt, wz7uo, mi8vgfm, 6zlkk, wa7kc, opg, \