Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. final NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
  2. .setWhen(new Date().getTimeInMillis())
  3. .setSmallIcon(R.drawable.ic_notification)
  4. .setContentTitle("title")
  5. .setContentText("text")
  6. .setStyle(new android.support.v7.app.NotificationCompat.DecoratedCustomViewStyle())
  7. .setContent(remoteViews);
  8.  
  9. import android.support.v7.app.NotificationCompat;
  10.  
  11. final NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);
  12. notificationBuilder.setWhen(new Date().getTimeInMillis())
  13. .setSmallIcon(R.drawable.ic_notification)
  14. .setContentTitle("title")
  15. .setContentText("text")
  16. .setStyle(new NotificationCompat.DecoratedCustomViewStyle())
  17. .setContent(remoteViews);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement