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 - Detecting if a BT headset is connected

Detecting if a BT headset is connected

All your problems with Audio, Video and Images.

Detecting if a BT headset is connected

Postby btdownloads7 » Wed Nov 10, 2010 5:39 pm

I made an app that plays back audio files, and has an option to switch the audio path between the headset, speaker, and a BT headset. However, I can't figure out a way to have the app detect if there is a BT headset connected. I can check if BT is enabled or disabled, and I can check if there are any devices paired, but not if any are connected. The only thing I can do for now is use a BroadcastReceiver to see when the "android.bluetooth.headset.action.STATE_CHANGED" broadcast is made and check if it's connected. However, this only work when the headset is connected or disconnected. I'd like a solution that would let my app check th BT headset state whenever it needs to. How can this be done?
btdownloads7
Freshman
Freshman
 
Posts: 2
Joined: Tue Oct 26, 2010 12:40 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot] and 7 guests