From 5c044575a93d1583ef3d5e0271b3a59fac361cd2 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 18 Nov 2014 04:18:13 +0100 Subject: [PATCH] Using Intent constructor with package and class name is the best (IMHO) in my case --- .../main/java/name/gumartinm/weather/information/boot/BootReceiver.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java b/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java index 462491f..c900b6a 100644 --- a/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java +++ b/app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java @@ -55,8 +55,6 @@ public class BootReceiver extends BroadcastReceiver { if (chosenInterval != 0) { final AlarmManager alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); - // TODO: better use some string instead of .class? In case I change the service class - // this could be a problem (I guess) final Intent serviceIntent = new Intent(context, NotificationIntentService.class); final PendingIntent alarmIntent = PendingIntent.getService( context, -- 2.1.4