Become a member
Sign in
Aastha Jain
Aastha Jain

Aastha Jain

5 Following
1 Followers
  • Profile

  • Claps

  • Highlights

Highlighted by Aastha Jain

See more

From Practical guide to Dagger 2 by Gaurav Chaddha

…e this problem comes from. We want to implement a concept called Dependency Injection. It says that if a component depends on another component, instead of making this dependency itself, it should be provided (injected) from the outside. This will help us in loose coupling between the components, a simple way to test the behavior of a component and much cleaner code. A basic example code is:

From Android Interview Questions Cheat Sheet — Part I by Anitaa Murthy

There’s also the potential for this to result in a memory leak since the AsyncTask maintains a reference to the Activity, which prevents the Activity from being garbage collected as long as the AsyncTask remains alive.

Claps from Aastha Jain

See more

Coroutines are not about multi-threading at all.

Roman Elizarov

Blocking threads, suspending coroutines

Roman Elizarov

Practical guide to Dagger 2

Gaurav Chaddha