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 -
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 !