Android-Development

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 »

Be More Productive with Dagger2

Read Time 2 minutes   According to single responsibility and separation of concern concept no component of your application should Create  the new objects of other classes it needs. Those objects(Dependencies) should be created and  provided by someone else. Dagger is (that someone else) a dependency injection framework for android and as of now, is the best amongst all.  If …

Be More Productive with Dagger2 Read More »