October 2018
Intermediate to advanced
464 pages
15h 17m
English
Since this recipe uses the same flashlight code as Lights, Action, and Sound - getting the user's attention!, we'll jump to the showNotification() method. Most notification builder calls are the same as in previous examples, but there are two significant differences:
.setVibrate() .setPriority(PRIORITY_MAX)
We create a PendingIntent as we've done previously, but ...