I created a text listener like this (below) in the manifest file. I assume the listener will always be enabled in any activity (thus wasting battery).
<receiver
android:name="com.me.basic.SMSReceiverActivity"
android:enabled="true">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
But in my app, there are lots of activities, and only one of them requires the text listening to be on. Is there a code I can use to disable and enable this listener?