Broadcast receiver onReceive() getting called multiple times
问题 I have a boot_completed receiver which gets notified on boot. <receiver android:name=".BootCompletedReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> But it appears to get called multiple times. I start a timer, and then a service, which leads to multiple timers, and then the service gets reset and runs again. Creating timer like this. This is not a repeating timer, is it?: private void setAlarm(Context context, long