I'm on mobile kind of hard to read your code, but there are several ways to do this. The easiest way is probably to write listener interface and then get the data on parent activity to send to second fragment.
A couple of links to help you:
youtu.be/i22INe14JUc
journaldev.com/14207/android-passi...
By the way writing and implementing interfaces is not just for Android, so you could look for more tutorials without Android keyword.
ohhh I had no idea, all of this time I was googling my questions wrong
Thank you so much, I will try to follow the tutorials :D
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm on mobile kind of hard to read your code, but there are several ways to do this. The easiest way is probably to write listener interface and then get the data on parent activity to send to second fragment.
A couple of links to help you:
youtu.be/i22INe14JUc
journaldev.com/14207/android-passi...
By the way writing and implementing interfaces is not just for Android, so you could look for more tutorials without Android keyword.
ohhh I had no idea, all of this time I was googling my questions wrong
Thank you so much, I will try to follow the tutorials :D