I'm making an application to activate/desactive the speakerphone with this code :
- Code: Select all
boolean enabled = true;
AudioManager amgr = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
If I activate the speakerphone at the beginning of a call (incoming or outgoing), the speakerphone icon is displayed in the notification status bar. On the other hand, I activate the speakerphone during a call, the speakerphone icon isn't displayed.
Any idea to solve this trouble ?