I am using SMS Receiver Service which starts from Android Manifest File, using the following code. The problem is that it will remain working even after the application exits. How do I stop this service from receiving SMS?
Start Service CODE:
<receiver android:name=".dataAccess.SMSReceiver" android:enabled="true">
<intent-filter >
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
If you want to keep using a broadcast receiver defined in your manifest, you can still enable / disable it using the package manager.
Check here