public void showNotification(){ NotificationCompat.Builder builder = new NotificationCompat.Builder (getApplicationContext()); Intent intent = new Intent(getApplicationContext(),ImageActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); builder .setContentIntent(pendingIntent) .setSmallIcon(R.mipmap.ic_launcher) .setLargeIcon(BitmapFactory.decodeFile(getCacheDir() + "/Image-" + 1 + ".jpg")) .setWhen(System.currentTimeMillis()) .setAutoCancel(true) .setContentTitle("напоминание") .setContentText("Напоминание!"); Notification notification = builder.build(); int NOTIFICATION = 127; nm.notify(NOTIFICATION, notification); } LargeImage not initialized, but instead it is SmallIcon . Rather, this line of code does not want to perceive. If you set the picture initially in drawable resources, it turns out fine, but if I need to download it, nothing comes out
LogCatthere is something at the moment of displaying thenotification"eh? - Vladyslav Matviienko