Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
- .setWhen(new Date().getTimeInMillis())
- .setSmallIcon(R.drawable.ic_notification)
- .setContentTitle("title")
- .setContentText("text")
- .setStyle(new android.support.v7.app.NotificationCompat.DecoratedCustomViewStyle())
- .setContent(remoteViews);
- import android.support.v7.app.NotificationCompat;
- final NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);
- notificationBuilder.setWhen(new Date().getTimeInMillis())
- .setSmallIcon(R.drawable.ic_notification)
- .setContentTitle("title")
- .setContentText("text")
- .setStyle(new NotificationCompat.DecoratedCustomViewStyle())
- .setContent(remoteViews);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement