Tagged articles
4 articles
Page 1 of 1
Liulishuo Tech Team
Liulishuo Tech Team
May 24, 2017 · Mobile Development

Understanding Dagger 2 Modules, Components, and Subcomponents in Android

This article explains how Dagger 2 structures dependency injection for Android apps using Modules, Components, and Subcomponents, illustrating their roles with diagrams, comparing them to manual injection, and showing how they clarify code dependencies while keeping runtime overhead minimal.

AndroidDagger2Mobile Development
0 likes · 4 min read
Understanding Dagger 2 Modules, Components, and Subcomponents in Android
Tencent TDS Service
Tencent TDS Service
Sep 22, 2016 · Mobile Development

Master Android Unit Testing: Why It Matters and How to Do It

This article explains the importance of unit testing in Android development, outlines why developers should invest time in it, and provides a step‑by‑step guide on writing effective Android unit tests using JUnit, Mockito, Dagger2, and Robolectric, along with practical tips, CI integration, and common pitfalls.

AndroidCIDagger2
0 likes · 23 min read
Master Android Unit Testing: Why It Matters and How to Do It
Qunar Tech Salon
Qunar Tech Salon
Sep 12, 2016 · Mobile Development

Understanding Dagger2 Dependency Injection in Android with Practical Code Examples

This article explains the concepts and practical usage of Dagger2 for compile‑time dependency injection in Android, illustrating why hard‑coded object creation is problematic, how constructor, setter, and interface injection solve these issues, and providing step‑by‑step code samples for modules, components, scopes, and qualifiers.

AndroidDagger2annotations
0 likes · 19 min read
Understanding Dagger2 Dependency Injection in Android with Practical Code Examples
21CTO
21CTO
Apr 27, 2016 · Mobile Development

Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases

This article shares practical experiences and best practices for Android unit testing, covering why testing matters, simple test structures, mocking with Mockito, dependency injection via Dagger2, using Robolectric, CI integration, common pitfalls, and a detailed checkout flow example.

AndroidCIDagger2
0 likes · 25 min read
Mastering Android Unit Testing: Practical Tips, Tools, and Real-World Cases