I am developing an Android application that will work as a service most of the time. The user will be able to control it through the status bar - including the ability to completely stop the service.
Although I can create a custom view and put the buttons in the Notifications area [see fig. 1], I would like it to be indicated above the name "Android" / "Service Provider". In the same way as the Music Player application does (see Figure 2). Thus, even if the user clears their notifications, the application control panel will remain active while the service is running.
What is the best way to do this, please?

Original image link
android
DJiK
source share