Integrate Android Annotations in Android Studio

This post will show how to integrate Android Annotations and some basic implementation from it.

If you wonder what is Android Annotations, it is essentially an annotation-driven framework that allows you to significantly reduce the boiler plate code of an Android application by generating classes at compilation time (generates a class extending the annotated class with an underscore as suffix by default) that contains well implemented code for you. It also relies in the Spring Framework for Android for the network-related annotations.

The code for this demo is here:

The master branch contains the code without AndroidAnnotations, the aa-integration branch will contain Android Annotations integration.

For this guide I will have an application that has one activity, which contains one text view and a button, if the button is tapped, the text disappears. So let’s start with the activity’s layout, one text view and a button below it.;

This blog collects my experiences as a java software developer on back-end, game, web or android environments as a series of how-to’s and little tutorials that I hope will save you some time and understand things better.

I may post other things as well, most probably about photography and image post-processing.

Happy coding!