June 27, 2015 · Public
Hi bucky in your android for beginner series you made an app with fragments (Tutorial 26-30). In that app you made interface of TopSectionFragment class and then used it to communicate with BottomPictureFragment. But we can do this by just creating object of MainActivity in TopSectionFragment and just pass the data and from there we can pass it to BottomPictureFragment. So why you chose that interface way? I am very confused.