Must use Android Libraries

Below are my favorites and must use library for every Android Project.
1) ButterKnife
2) Retrofit
3) Glide
4) Parceler


Field and method binding for Android views which uses annotation processing. ButterKnife makes your code cleaner and under-stable.

class ExampleActivity extends Activity {
  @BindView( EditText username;
  @BindView( EditText password;

  @BindString(R.string.login_error) String loginErrorMessage;

  @OnClick( void submit() {
    // TODO call server...

  @Override public void onCreate(Bundle savedInstanceState) {
    // TODO Use fields...


Retrofit turns your HTTP API into a Java interface.

public interface GitHubService {
  Call<List<Repo>> listRepos(@Path("user") String user);

The Retrofit class generates an implementation of the GitHubService interface.

Retrofit retrofit = new Retrofit.Builder()
GitHubService service = retrofit.create(GitHubService.class);
Call<List<Repo>> repos = service.listRepos("octocat");

Each Call from the created GitHubService can make a synchronous or asynchronous HTTP request to the remote webserver.


Glide is a fast and efficient open source media management and image loading framework.


Glide includes a large number of features. Some of the more notable features are

  • Animated GIF decoding
  • Local video stills
  • Thumbnail suppor
  • Lifecycle integration
  • Transcoding
  • Animations


  • Automatic job cancellation in lists where views are re-used.
  • Background image loading.
  • Memory and disk caching and easier to configure
  • Bitmap and resource pooling


Parceler is a easiest way to serialize Java Objects between Contexts.

public class Example {
    String name;
    int age;

    public Example() {}

    public Example(int age, String name) {
        this.age = age; = name;

    public String getName() { return name; }

    public int getAge() { return age; }

Add wrapped object to bundle

Bundle bundle = new Bundle();
bundle.putParcelable("example", Parcels.wrap(new Example("Andy", 42)));

And dereferenced in the onCreate() method:

Example example = Parcels.unwrap(getIntent().getParcelableExtra("example"));

Leave a Reply

Your email address will not be published. Required fields are marked *