We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Since AndroidAnnotations 2.3
You can enhance your Android Application class with the @EApplication annotation:
Application
@EApplication
@EApplication public class MyApplication extends Application { }
You can then start using most AA annotations, except the ones related to views and extras:
@EApplication public class MyApplication extends Application { public void onCreate() { super.onCreate(); initSomeStuff(); } @SystemService NotificationManager notificationManager; @Inject MyEnhancedDatastore datastore; @RestService MyService myService; @Background void initSomeStuff() { // init some stuff in background } }