119 InterFragment Communication Part 2 |

slidenerd · 76K views · 2013 · 8:28

Open on YouTube

Software (other)Testing, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about passing data or events between Fragments, as a simple walkthrough of the interface-and-Activity pattern.

Recommended by 3 people across 3 different months, 2014 to 2016.

What it is

A short Android tutorial from the slidenerd channel on communication between two Fragments. It shows how to define an interface, have the Activity implement it, let Fragment 1 send events through it, and have the Activity pass those events on to Fragment 2.

What people said

Recommends Devrath · 2014-08 · Stack Overflow · on “Pass arraylist with bundle”

using newInstance is the simplest way , ...else you have to perform interfragmentcommunication...pass data from fragmenta--->activity ----> fragmentb ... check this tutorial [this video] ........... my way is very simpler !

Recommends arickdev · 2014-11 · Stack Overflow · on “Adding a dynamic chapter number to the titlebar of the detail view in Android”

When you need handle content from database... you well need to know about this topics: LoadManager. [LINK] AsyncTaskLoader. [LINK] BaseAdapter. [LINK] JSON. [LINK] Some Tutorials: [LINK] [LINK] And maybe Callbacks, if you'll use Fragments! Dificult (for me): [LINK] Easy (I think so): [this video] I know... it's crazy all this stuff... but I think that maybe you will need it!

Recommends Elvis Chweya · 2016-02 · Stack Overflow · on “EventBus not working when trying to communicate between two fragments”

Using `EventBus` seems like an overkill for this. If you haven't given up on `Interface`s yet, here a very simple and very elaborate explanation and example on **Inter-Fragment Communication** on YouTube [this video] I hope this helps.