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. Is this possible with Android

I am thinking about this scenario

1.In  a mobile with Android will be running my script.

2. Someone will dial the number( say number A)  of that mobile where
the script is running.

3.The script will answer and ask the caller( the caller has say number
B) to dial the number where  he wants to be connected to( say number
C)

4.The caller ( with his number   B )will  enter the number C

5.The script will dial that number C and makes  the connection
between  number B and C so that they can talk together.

Is this possible to do that with Android?

Thanks
L.

-- 

2. is there anyway to force locale system numeric to English ?

Hi

This Problem Appeared in my SmartPhone and SDK Emulator 2.3

after changing the language to arabic

i can't add new contact it force close
but when i change language back to english the problem disappeared

i think this problem because the system read the number in arabic
locale

look at this

Caused by: android.database.sqlite.SQLiteException: no such column:
: , while compiling: SELECT
raw_contacts._id,display_name,display_name_source,account_type,account_name,sourceid,custom_ringtone,send_to_voicemail,last_time_contacted,times_contacted,starred,is_restricted,name_verified,data._id,data.mimetype_id,is_super_primary
FROM raw_contacts LEFT OUTER JOIN data ON
(data.raw_contact_id=raw_contacts._id AND ((mimetype_id= AND data15
NOT NULL) OR (mimetype_id= AND data1 NOT NULL))) WHERE
raw_contacts._id=?

inside this query there is arabic number and it should not be arabic

i think Force Localize Contacts App to english After decompile it with
apktool and baksmali will fix this problem

http://www.tutorialforandroid.com/2009/01/force-localize-application-on-android.html
this is tutorial but i don't know how to apply it without problem

-- 

3. how can i make non-sqlite cursor?

4. GridView onItemClickListener

5. How to convert a image into Base64 string?

6. Emulator GPS Elevation Problem/Bug?

7. problem while executing sql query