/** Creates a PendingIntent to be sent when the alarm for this talk goes off. */ private PendingIntent getPendingIntent(Talk talk) { Intent intent = new Intent(); intent.setClass(context, FavoritesNotificationReceiver.class); intent.setData(talk.getUri()); return PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_ONE_SHOT); }