android

EventBus: Simplifying data sharing between components in Android

Read Time < 1 minute In almost every android app there is a need to pass data between different components i.e Activities, Fragments, Services and threads. One case is very common and that is posting data to UI thread from background thread. Although android framework provide Handlers and AsyncTasks for this purpose but we all know they are not well …

EventBus: Simplifying data sharing between components in Android Read More »

Dependency Injection with Dagger

Read Time 2 minutes According to Single Responsibility principle, no class of your application should create new instances of other classes it needs. These objects Dependencies should be created and provided by someone else. Dagger is a dependency injection framework for android being used widely. Today I’ll shortly explain the different components of dagger and how we can set up and use dagger …

Dependency Injection with Dagger Read More »