From bd15b03c64f3676a1840c70d60fee340b015ade4 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 5 Jun 2012 21:23:55 +0200 Subject: [PATCH] Switched from NotificationBuilder to NotificationCompatBuilder --- src/de/podfetcher/service/PlaybackService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/de/podfetcher/service/PlaybackService.java b/src/de/podfetcher/service/PlaybackService.java index c44327f9e..30a14a38f 100644 --- a/src/de/podfetcher/service/PlaybackService.java +++ b/src/de/podfetcher/service/PlaybackService.java @@ -10,6 +10,7 @@ import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaPlayer; +import android.support.v4.app.NotificationCompat; import android.util.Log; import android.net.Uri; import android.os.Binder; @@ -33,7 +34,7 @@ public class PlaybackService extends Service { "action.de.podfetcher.service.playerStatusChanged"; private static final int NOTIFICATION_ID = 1; - private Notification.Builder notificationBuilder; + private NotificationCompat.Builder notificationBuilder; private Notification notification; private MediaPlayer player; @@ -105,7 +106,7 @@ public class PlaybackService extends Service { this, 0, new Intent(this, MediaplayerActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); Bitmap icon = BitmapFactory.decodeResource(null, R.drawable.stat_notify_sdcard); - notificationBuilder = new Notification.Builder(this) + notificationBuilder = new NotificationCompat.Builder(this) .setContentTitle("Mediaplayer Service") .setContentInfo("Click here for more info") .setOngoing(true)