How can I control the device speaker (On/Off) from my app during a call in Android 14 and later?
I expect the speaker to switch on or off based on user input during a call, but the code executes without any errors, and there’s no change in the speaker state.
I’ve checked permissions and ensured that the methods are being called, but nothing seems to work. I'm testing on Android 14 and using the latest version of the relevant libraries. Any insights on what might be going wrong would be appreciated!”
This is my current code service
package com.example.ivrapplication.activity
import...