Receive voice bluetooth SCO

by Ginobili » Fri, 20 May 2011 09:37:39 GMT


Sponsored Links
 Hi,

To begin, I'm French so exuse for my bad English. I want to receive
voice, sended by a Bluetooth module (free2move). The Bluetooth module
had SCO connections so I think that it's possible to route audio
between the module and an Android phone.

I try this code :

amanager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
amanager.setBluetoothScoOn(true);
amanager.setMode(AudioManager.MODE_IN_CALL);
amanager.startBluetoothSco();

mPlayer.setDataSource(new FileInputStream("/sdcard/Music/
1.mp3").getFD());
mPlayer.setAudioStreamType(AudioManager.STREAM_VOICE_CALL);
mPlayer.prepare();
mPlayer.start();

But it didn't worked. Do I have forgot something ? This project is
possible ?

Thanks for your help.

-- 



Other Threads

1. Tab Index

Hi,

How to set Tab Index for elements in android ?..


In my layout i'm having more than 5 textview.

I need to set focus first on 2nd textview then 4th then 3th...
Like that i need to focus.

How to set tab index for that?...

Any suggestion or example program ?..

-- 
Thanks & Regards
Sasikumar.S

-- 

2. video resolution..

Hi,

What is maximum video resolution supported by android (over regular display
and HDMI o/p)? Is it scalable?

Thanks,
Deva

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Sudah root tp tdk bs drocap

4. Akhirnya n1 ku app2sd juga

5. Media Player not working on HTTPS as Data source

6. port forwarding

7. Smaller tabs, such as the Facebook official app