Android Question Volume Change .. Service starts twice and how do I disable

mangojack

Expert
Licensed User
Longtime User
Hi .. I have included the following lines in the manifest to start a service on each volume change ..

B4X:
AddReceiverText(VLService, <intent-filter>
    <action android:name="android.media.VOLUME_CHANGED_ACTION" />
    </intent-filter>)

From logs it appears the service starts twice on each single volume button press , is this a problem ?

also ..apart from installing updated manifest without the above lines is there any other way to stop / disable the service starting on future volume changes.

Thanks Cheers mj
 
Top