Tuesday, December 18, 2012

[android-developers] Speaker Problem

- I have the permission MODIFY_AUDIO_SETTINGS declared
- I use the following code to make a call with speaker ON

AudioManager am = null;

am = (AudioManager)getSystemService(Context.AUDIO_SERVICE);  

am.setMode(AudioManager.MODE_IN_CALL); 

am.setSpeakerphoneOn(true);

The problem is: This works fine in version 4.0 and lower.
Version 4.1 and higher doesn't works, but I don't receive errors. Just doesn't work.

Does anyone can help me with ideas?

Best Regards,
André


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment