Changing volume of voice calls

by TonyQ » Wed, 10 Jun 2009 03:35:40 GMT


Sponsored Links
 Hi,

I am trying to set the volume of voice conversations from my
application and have been unable to.

The code I am using is shown below:

AudioManager manager = (AudioManager) getSystemService
(Context.AUDIO_SERVICE);
manager.setStreamVolume(AudioManager.STREAM_VOICE_CALL,volume,0);

Whatever value of volume I pass in makes no difference to the actual
volume of the voice call, for instance if I set it to zero I would
expect to hear no voice.

Does anyone know what I'm doing wrong?

Cheers,

Tonmy

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to determine the amount of characters that will fit into a TextView

I am trying to place only the exact amount of data into a TextView but
I need to know how much it can hold.  Is there a way to do this based
on it's height, width and the textsize?
--~--~---------~--~----~------------~-------~--~----~

2. How to use AutoCompleteTextView with SimpleCursorAdapter

Hello,

I have an application that involves reading a text dictionary file with
about 7000 entries, and allowing the user to choose one of these. My first
approach was to allow the user to select one of these by using a
AutoCompleteTextView together with ArrayAdapter<String>. This works, but is
very slow (~10 seconds to update the word list each time the user enters a
character to narrow down the choice).

I was wondering how to rework it so that I could use a database using a
SimpleCursorAdapter instead. In other words, to hope that a SQL database
could provide a more efficient ordering and access for the elements.
Is this the best way to do it? I've also seen several references to
SQLiteDatabase, but don't know which one to use.

I found this code fragmant consisting of an extended SimpleAdapter.
http://sacoskun.blogspot.com/2008/08...leadapter.html<http://sacoskun.blogspot.com/2008/08/autocompletetextview-with-simpleadapter.html>

Unfortunately, this is not a complete worked out example. Could someone
forward me a more complete example? I've found lots of code fragments, but
no code that shows how to initialise the SimpleCursorAdapter contents, or
how it works together with the AutoCompleteTextView.

Many thanks,
Paul

--~--~---------~--~----~------------~-------~--~----~

3. Multicast problem

4. who put an icon in status bar to indicate the mobile network type?

5. Post subject: Store the data in raw folder of res directory

6. Email Configuration - Compose activity

7. About music recording