Using Intent constructor with package and class name is the best (IMHO) in my case
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 18 Nov 2014 03:18:13 +0000 (04:18 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Tue, 18 Nov 2014 03:18:13 +0000 (04:18 +0100)
app/src/main/java/name/gumartinm/weather/information/boot/BootReceiver.java

index 462491f..c900b6a 100644 (file)
@@ -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,