How to call stopservice() method of Service class from the calling activity class

后端 未结 5 847
北海茫月
北海茫月 2020-11-30 06:19

I am trying to call my service class\'s stopService() method from my activity. But I dont know how to access stopservice method from my activity class. I have the below code

5条回答
  •  执笔经年
    2020-11-30 06:53

    @Juri

    If you add IntentFilters for your service, you are saying you want to expose your service to other applications, then it may be stopped unexpectedly by other applications.

提交回复
热议问题