Enhance broadcastreceivers优化广播接收器 Since AndroidAnnotations 2.4 You can enhance an Android BroadcastReceiver with the @EReceiver annotation: 你可以使用 @EReceiver 优化Android广播接收器: @EReceiver public class MyReceiver extends BroadcastReceiver { } You can then start using most AA annotations, except the ones related to views and extras: 然后,除了Views和extras相关的注解,你可以使用大多数AA的其他注解: @EReceiver public class MyReceiver extends BroadcastReceiver { @SystemService NotificationManager notificationManager; @Bean SomeObject someObject; }