Skip to content
pyricau edited this page Jan 10, 2012 · 7 revisions

Since AndroidAnnotations 1.0

@SystemService

The @SystemService annotation indicates that an activity field should be injected with the corresponding Android System service.

It is the same as calling the Context.getSystemService() method.

Usage example:

@EActivity
public class MyActivity extends Activity {

  @SystemService
  NotificationManager notificationManager;

}

Using AndroidAnnotations

Questions?

Enjoying AndroidAnnotations

Improving AndroidAnnotations

Clone this wiki locally