A good start is by checking this previous post: Notification builder
However, I don’t think the demo is complete as there are other technicalities that has to be addressed in the design. You need to have a look at
Ringkasan layanan | Developer Android | Android Developers
Create a background service | Android Developers
Kf