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. How to rebuild library in Android repository

Hi all,

I modify the libjpeg inside android repo Froyo/external/jpeg/

How do i rebuild the library in a faster way, rather than go to the Froyo
folder and run make to rebuild the whole system.

I try go into the jpeg folder and run "make" but it doesnot rebuild.

Regards,
Tung

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

2. Best way to store restaurant data

I want to have a list of restaurants with information such as
addresses and phone numbers in my app. I also want to be able to edit
this information after the app is published. What is the standard way
for doing this? Would I need to use a SQLite database?

Any ideas are appreciated. Thanks.

-- 

3. label on the left for RadioButton

4. android manifest file from an unzipped apk cannot be read

5. change string resource folder

6. Adding Feature to Android (that I've made)

7. Help! Strange exception on HTC Hero