0

I have a music player app and I want to show the album art along with song details in notification bar when song is playing. I have set album art as .setLargeIcon(albumArt) where albumArt is bitmap image offcourse. But it is not at all large in notification bar. Here how it look likes in my device -

enter image description here

Here is the notification I am using -

final Notification noti = new Notification.Builder(getApplicationContext())
        .setContentTitle(fileStripped)
        .setContentText(artist)
        .setOngoing(true)
        .setWhen(0)
        .setSmallIcon(R.drawable.ic_action_headphones)
        .setLargeIcon(albumArt)
        .setContentIntent(pIntent).getNotification();
    noti.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_NO_CLEAR;
    final NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);

Please help me out with thing. Searching a lot on Google but didnt saw any answers to this !!

Thanks in Advance !

Gavin
  • 341
  • 2
  • 10
  • not matter of pixallated... the album art of every music file is coming not as large as it should.. [that art in notifications is crisp at 200dp even, paint did that pixallated while i was editing image] – Gavin Nov 30 '14 at 08:33
  • I think you need to use a custom Notification layout http://stackoverflow.com/a/18414768/4224337 – Rami Nov 30 '14 at 14:11
  • that code makes my app force closes!! – Gavin Dec 01 '14 at 17:10

0 Answers0