Ryan Harter


The case for Fragment Callbacks

Fragment are a great addition to Android. They allow reusability of sections of your views at the controller layer, and they also provide better encapsulation of your app’s logic. This can really help developers speed up code development and also keep their code clean, which makes it easier to maintain. All of these benefits are available if you follow a few guidelines when developing your code. One of the biggest mistakes that I see developers make, particularly those coming from other platforms, is casting the parent activity....