Android: Pass data between fragments using bundle
I'm trying to pass data between fragments of different activies using bundles.
I have two fragments:
Fragment A is attached on Activity A;
Fragment B is attached on another activity: Activity B.
I need to pass an edit text string from Fragment A to Fragment B.
How can i accomplish that using bundles?
Can someone give me an example in kotlin?
This is what I've tried so far:
val bundle = Bundle()