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. Datepicker / Timepicker Widgets

Are the widgets used in Datepicker standarized? Meaning, can I employ
them in my layout, or do I have to build them on my own? Are there
standard versions of them or even, can they be "created" through
settings or would I have to build them from scratch using EditText and
buttons?

I hope I'm clear enough on that :)

Thanks,
alkar
--~--~---------~--~----~------------~-------~--~----~

2. FileDescriptor from DatagramSocket

So how can you get a FileDescriptor from a DatagramSocket (or even a
Socket for that matter)?  I notice there is a DatagramSocketImpl
function which has a protected class for getFileDescriptor() but how
do I extend the standard one to expose that somehow?   Is there
another way?

Mark

--~--~---------~--~----~------------~-------~--~----~

3. saving data to text file using eclipse

4. ikutan Milis dgn PushMail

5. 鍥炲: How to DROP a Database in Android ?

6. Error messages while browsing!

7. AVD extremely slow...