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. AVI playback not supported in 2.1?

I've searched in more places than I can count and all I'm finding is
just more questions and no answers. I have a Samsung Moment with the
official 2.1 update and since then I can no longer play MPEG-4 videos
with the .avi extension. I had no problems playing them in 1.5 and
never had to convert the videos that I downloaded to get them to play.
Please tell me someone knows what is going on and that there will be a
fix for this. I've had 3 different Moments since March and countless
problems with them. This is just another problem to add to the list of
things keeping me from even liking this phone. Anyone?

-- 

2. Listening to Clipboard... How to detect a "copy"

I'm interested in writing an application that extends the
functionality of the Android clipboard. Basically, when the user tries
to perform a "copy" (as in copy->paste) I want my application or
Service to perform a function on the copied text.

Is this possible?

-- 

3. Emma Instrumentation Code and How it works

4. filter html and alert baised on criteria entered

5. Created files in external storage on Archos 5 invisible on Windows Explorer

6. Distinct query in managedQuery

7. Gallery not Recycling Views