Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid notification large image not working
    text
    copied!<p>I am creating my notification like this:</p> <pre><code> Intent intent = new Intent(this, OfferNotification.class); PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0); Uri soundUri = RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( this).setSmallIcon(R.drawable.unknown) //.setLargeIcon(BitmapFactory.decodeResource( getResources(), R.drawable.unknown)) .addAction(R.drawable.ic_launcher, "d", pIntent) .setAutoCancel(true) .setContentTitle("Offer from " + restaurantName) .setContentText(offerDescriptoin).setSound(soundUri); // Creates an explicit intent for an Activity in your app Intent resultIntent = new Intent(this, OfferNotification.class); resultIntent.putExtra("offerID", offer.getID()); TaskStackBuilder stackBuilder = TaskStackBuilder.create(this); stackBuilder.addParentStack(OfferNotification.class); stackBuilder.addNextIntent(resultIntent); PendingIntent resultPendingIntent = stackBuilder .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT); mBuilder.setContentIntent(resultPendingIntent); NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); mNotificationManager.notify(offer.getID(), mBuilder.build()); </code></pre> <p>when i used small icon, it works very well, but when i use large icon, i can hair the voice of the nofitication but the notification itself doesn't appear, any help pelase?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload