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 create a WifiConfiguration support WPA-Enterprise, PEAPv0/MSCHAPv2, UserName and Password ?

Hi everybody,

I have to create a Wifi Configuration. The details is below:

Secutiry: WPA-Enterprise
EAP Type: PEAP
Sub type: PEAPv0/MSCHAPv2
Username:
Password:

I can't use class WifiConfiguration to create one.

And I found some threads in forum that, saying we can modify the
wpa_supplicant.conf to add it. But this is a read-only file and only
able to be edited ( according to the thread ) by Root user. The
problem is I don't have the Root right in the Android phone I am using
HTC Hero 1.5 now. And somebody complain the Wifi is not working after
the file is modified. More funny thing is .. I even no ideas the file
is located in '/data/misc/wifi/wpa_supplicant.conf' or '/system/etc/
wifi/wpa_supplicant.conf' ?

I really need help on this issue. Thanks.

Thanks a lot.

-- 

2. changing images in .apk without rebuilding it

Hi,

1.  Suppose there is a .akp file which displays images when installed
and Images can either be under resources or
     Assets folder
2.  Now I want to change images in .apk file without rebuilding
the .apk file, so that different set of images can be
    displayed by installing the same .apk
3.  Is step 2 possible or Is it possible to changes the resources \
assets without rebuilding the APK file?
4.  If yes, then should I store the images under assets  or resources?

Thanks
Karan

-- 

3. How to eliminate the "java.lang.OutOfMemoryError: bitmap size exceeds VM budget" issue while scrolling in bluetooth screen.

4. Keyboard keys

5. gPad - new universal remote controller app

6. web service

7. How to use Logger