- final Intent pollAlarm=new Intent(context, LocalBroadcastReceiver.class);
- pollAlarm.setAction(LocalBroadcastReceiver.ACTION_POLL_ALARM);
- final PendingIntent intent=PendingIntent.getBroadcast(context, 0, pollAlarm, 0);
+ final Intent pollAlarm=new Intent(context, FonBotMainService.class);
+ pollAlarm.setAction(FonBotMainService.ACTION_TRIGGER_POLL);
+ final PendingIntent intent=PendingIntent.getService(context, 0, pollAlarm, 0);