Android Notifications
Services have no graphical user interface, so what if you have code running in the background that suddenly needs to inform the user about something? Notifications to the rescue. Use them to get your users' attention, but try avoid annoying the user too much.
Lecture material
Recommended reading
The following chapters from the course book The Busy Coder's Guide to Android Development: