注意:
android.app.RemoteServiceException: Bad notification posted from package Couldn't create icon: StatusBarIcon(pkg=com.risetek.nfcuser=-1 id=0xffffffff level=0 visible=true num=0 )
检查Notification的各个参数是否配置齐全了。这里需要添加通知的图标:
notification.icon = R.drawable.ic_launcher;