I have the folowing method in a Service in my appplication:
public void switchSpeaker(boolean speakerFlag){ if(speakerFlag){ audio_service.s
You have to expose service`s switchSpeaker method for clients. Define your .aidl file. Than bind to that service from your activity and simply call switchSpeaker. See documentation
No other simple way to call this method, only if it static)