Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Programmatically turning on/off speaker mode

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.013 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.010 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 2 guests