Some phones do not support big notifications. So how can I know then in runtime to make my notif big or usual size? Also i need it support control buttons. Here is my code of big notif:
RemoteViews remoteViews = new RemoteViews(getPackageName(),
settings.getAttributeId(settings.getThemeByString(), R.attr.theme_dependent_notification));
remoteViews.setOnClickPendingIntent(R.id.prev, ppreviousIntent);
remoteViews.setOnClickPendingIntent(R.id.play, pplayIntent);
remoteViews.setOnClickPendingIntent(R.id.next, pnextIntent);
remoteViews.setOnClickPendingIntent(R.id.close, pcloseIntent);
remoteViews.setImageViewBitmap(R.id.cover, icon);
remoteViews.setTextViewText(R.id.name, title);
remoteViews.setTextViewText(R.id.artist, text);
remoteViews.setTextViewText(R.id.count, count);
if (isPlayerActive) remoteViews.setImageViewResource(R.id.play, R.drawable.pause);
else remoteViews.setImageViewResource(R.id.play, R.drawable.play);
notification = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.equalizer_icon)
.setContentTitle(title)
.setContentText(text)
.setTicker(getString(R.string.app_name))
.setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_MAX)
.build();
notification.bigContentView = remoteViews;