|
Notification.Builder builder2=new Notification.Builder(this);
Intent intent2=new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.jianshu.com/p/82e249713f1b"));
PendingIntent pendingIntent2=PendingIntent.getActivity(this,0,intent2,0);
builder2.setContentIntent(pendingIntent2);
builder2.setSmallIcon(R.mipmap.ic_launcher);
builder2.setLargeIcon(BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher));
builder2.setAutoCancel(true);
builder2.setContentTitle("折叠通知");
RemoteViews remoteViews=new RemoteViews(getPackageName(),R.layout.layout_view);
Notification notification=builder2.build();
notification.bigContentView=remoteViews;
mNotificationManager.notify(1,notification);
在wex5 中 报错 |
|