How to create a foreground service using setForeground method?
I want to create a foreground service which will run over a long period and will not become cached process in which it can be killed when memory is needed. According to the docs:
I want to create a foreground service which will run over a long period and will not become cached process in which it can be killed when memory is needed. According to the docs: