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. Unexpected auto-answer in ADP1

Hi,

I recently returned my ADP1 to Brighstar and got a replacement phone
back a few weeks later.

Problem:
The phone takes calls automatically after three rings. From what I
understood, this is not something supported by the Android OS. So far,
I tried a factory reset (as interfaced in SD card & phone storage) and
an upgrade to 1.6.

Did I miss something? Is there anything else I could try or should I
go back to Brightstar and ask for another replacement phone?

Thanks,

Nic

-- 

2. Seeking interested collaborator for creating android alife app

Hey folks, my name is Tony Borodovsky and this is my first post here.

I've been programming multi-agent alife simuations in the NetLogo
language for about 2 years now, and I think that one of my sims would
make a really nice android app - especially considering that there's
currently quite a dearth of alife apps on the android market.

However, I don't currently have the free time to learn the android SKD
myself (I have a 3 month old baby and I work full time). As such, I
was hoping to come to this form and put out the call to see if there
were any android app developers interested in collaborating on
creating an alife app - one for which I've already done most of the
groundwork to get it up and running, I just need help porting the code
over to the android platform.

Is this an appropriate use of this forum? Anybody out there interested
in helping develop an alife ecological sim?

In 30 words or less - the sim I've developed is an autopoetic, self-
stabilizing ecosystem with procedurally generated ecosystem niches.
You start out with 4 identical creatures that eat the freely-available
food, and breed mutant offspring. After a few generations, you get a
broad enough range of mutated creatures that the big fish start eating
the little fish. However, because there are various hunting algorithms
that make the creatures choosy about who they eat, this creates
dynamic ecosystem niches. The ecosystem is open-ended (i.e. it can
create bigger and bigger creatures at the top of the food chain
without destroying the base) and self-stabilizing (runaway population
growth is controlled by constantly evolving predators).

Please ping me on or off list if you're interested.

Alternately - if this is not an appropriate use of this forum, let me
know.
thanks!
ciao down
tonyb

-- 

3. set priorities on icons

4. Nexus One Wifi Name

5. Android sync

6. Unparsed aapt error(s)! Check the console for output - yet no errors displayed

7. Bind to system service