Monday, July 6, 2020

how-to-program-notification-dots-in-Android

NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
        .setSmallIcon(R.drawable.notification_icon)
        .setContentTitle(textTitle)
        .setContentText(textContent)
        .setPriority(NotificationCompat.PRIORITY_DEFAULT);



future reading: https://developer.android.com/training/notify-user/build-notification#java

No comments:

熱門必看