DEV Community

Discussion on: Android studio fragments

Collapse
 
thefern profile image
Fernando B 🚀 • Edited

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.

Collapse
 
gracesros profile image
Grace

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