Implement startForeground method in Android

Viewed 30763

I want to implement the startForeground() method in the Service class for prevent service self kill.

Can anybody sent me code for implementing this method?

4 Answers
Related