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. What does the "Application modularity" mean in android offical document?



It means an APK, AFAICT.


SDK applications cannot "install & update an apk...without user operation".

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 22-26 February 2010: http://onlc.com

-- 

2. What does the "Application modularity" mean in android offical document?

hi,all
        there is an article in android document(Dev Guide/Publishing/Signing
Your Applications/Signing Strategies)

        "Application modularity The Android system allows applications that
are signed by the same certificate to run in the same process, if the
applications so requests, so that the system treats them as a single
application. In this way you can deploy your application in modules,
and users can update each of the modules independently if needed."

        in this article, what does "module" mean? is it an apk or something
else?
        and if module is apk, how to install & update an apk by main apk
without user operation?

-- 

3. Gps sorting question

4. 2.1 Issue "application is not installed on your phone"

5. 2.1 Issue "application is not installed on your phone"

6. Problem in playing video

7. Textview Editable Error