tags:

views:

60

answers:

1

Hi,

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

Can anybody sent me code for implementing this method?

Thanks

A: 

http://developer.android.com/reference/android/app/Service.html#startForeground%28int,%20android.app.Notification%29

Falmarri
I search for implementation of startForeground on android 2.0, example is for implementation prior to API level 5. Thanks
Jovan