Change in-Call volume

I found some extentions to change Music, Alarm or Ring volume.
But how can i change the in-call volume wich is different from the 3 others ?

Isn't it the media volume you like to adjust?


Taifun

No it is not media volume:
in settings I have 3 volumes: media, ring and Alarm

if i use media volume it change this one:

but when i'm in call it is this one:


and they are independant...

probably currently there is no extension available which is able to set this?

you could write your own extension and create the functionality yourself...
more information about how to create an extension see the App Inventor Extensions document
however that will be more advanced and will require some Java skills...

alternatively probably someone might want to write the extension for you? @gordonlu310 ?

see this snippet

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

ok thanks Taifun, I will have a look on this

Ok then i modify my extention to add in-call control volume.
Thank you Taifun for your help.

the only thing i didn't succed to do is to hide UI after few seconds. If i set Show UI to true, it appears on first button tap and desapear only after a new tap on screen...

JmlPhoneCall.aix (7,3 Ko)

Telephone.aia (9,5 Ko)

Mp3Tags.txt (39,5 Ko)

3 Likes

thank you
please use category Extensions to present your new extension and provide a quick documentation of your available blocks... thank you

Taifun

Well I'm in trouble with it:
when I use:

@SimpleFunction(description = "get Actal in-call Volume")
    public int GetInCallVolume() {
		 return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
	}

I can set result in variable or in text but if i use

@SimpleProperty(description = "get Actal in-call Volume")
    public int GetInCallVolume() {
		 return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
	}

I can't set result in a text

Can you try:

@SimpleProperty(description = "get Actal in-call Volume")
    public int GetInCallVolume() {
           return method();
	}

public int method(){
	return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
}

Thank you Gordon_Lu it works like that...even if i don't understand why ! :grimacing:

so here it is my corrected extension....Is it ok like that ?
JmlPhoneCall.txt (4,9 Ko)
JmlPhoneCall.aix (7,7 Ko)
Telephone.aia (9,5 Ko)

1 Like

I'll test it. BTW, I find this in your code.

Don't forget the naming conventions (change End_Call to HasCallEnded).

Ok. i'm not familiar at all with naming conventions..
I update it just now in my previous message.
thanks for your help and corrections

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.