![]() ![]() (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE) NotificationCompat.BigTextStyle bigText = new NotificationCompat.BigTextStyle() ītBigContentTitle("Today's Bible Verse") ītSummaryText("Text in detail") PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, ii, 0) Intent ii = new Intent(mContext.getApplicationContext(), RootActivity.class) New NotificationCompat.Builder(mContext.getApplicationContext(), "notify_001") NotificationManager mNotificationManager ![]() setSmallIcon(R.drawable.icon)Īndroid 8 introduced a new requirement of setting the channelId property by using a NotificationChannel. So, add the setSmallIcon call to the builder chain like this for it to work. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |