I'm using the NotificationCompat.Builder
class to create a notification in which it has to stay on top with the highest priority.
I set the notification priority as follows:
notification.setPriority(Notification.PRIORITY_MAX);
However, Android Studio says that the PRIORITY_MAX
field is deprecated .
Question
So, I would like to know if there is any alternative to PRIORITY_MAX
and that is not deprecated or deprecated?