Programmatically turning on/off speaker mode

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Programmatically turning on/off speaker mode

Postby sxjthefirst » Wed Mar 12, 2008 7:43 pm

I am new to Android and would like to know if this is possible.

We normally turn on speaker when in a call manually. Can this be done through a program which package /class should I be looking at.

Thanks in advance for any help.
sxjthefirst
Developer
Developer
 
Posts: 36
Joined: Wed Mar 12, 2008 7:24 pm

Top

Postby sxjthefirst » Fri Mar 14, 2008 4:19 pm

Eureka!
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. import android.media.AudioSystem;
  3.  
  4. ...
  5.  
  6. AudioSystem.speakerphone(true);
  7.  
  8.  
Parsed in 0.030 seconds, using GeSHi 1.0.8.4

this was simple enough. When you set this you may not see any visual cue to indicate the mode has changed unless you are in call or something equivalent.
sxjthefirst
Developer
Developer
 
Posts: 36
Joined: Wed Mar 12, 2008 7:24 pm

Postby Premier » Sat Jul 11, 2009 1:02 pm

sxjthefirst wrote:Eureka!
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. import android.media.AudioSystem;
  2. ...
  3. AudioSystem.speakerphone(true);
  4.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

this was simple enough. When you set this you may not see any visual cue to indicate the mode has changed unless you are in call or something equivalent.


How do you the same in cupcake (1.5) ??
Premier
Junior Developer
Junior Developer
 
Posts: 21
Joined: Fri Jul 10, 2009 4:04 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 5 guests