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
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.