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 1.0
Retrieving Android System Services requires remembering the name of the constant, and casting the retrieved object.
notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
The @SystemService annotation indicates that an activity field should be injected with the corresponding Android System service.
@SystemService
It is the same as calling the Context.getSystemService() method.
Usage example:
@EActivity public class MyActivity extends Activity { @SystemService NotificationManager notificationManager; }