• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Example: Android Simple
2=======================
3
4This example demonstrates how to structure an Android application with Dagger.
5
6A custom `Application` class is used to manage a global object graph of objects. Modules are
7assembled with a `getModules` method on the application that can be overridden to add additional
8modules in development versions of your applications or in tests.
9
10Injection of activities is done automatically in a base activity.
11
12_Note: The app does not actually do anything when it is run. It is only to show how you can
13 structure Dagger within an Android app_
14
15_Note: The app is in transition to Dagger 2 and may not reflect recommended patterns.  Before
16 we release Dagger 2.0 it will, but until this note is removed, please do not rely on this
17 example as a strong recommendation._
18