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. Android Web Browser profiling

All,

I am looking at the % of time spent on different functions of Browser.
For e.g i am let us say cnn.com takes 12 secs to load on the android
browser.
I wish to understand how much of it is being spent in CSS/XML parsing,
HTML parsing, MIME type decoding, Java Script etc. How much of time is
spent in kernel and how much in user space.

I found a lot of instrumentation in the code. But i am unable to
enable some of them.

I did enable a few in BrowserActivity.java which provides me Pageload
times that uses SystemClock.uptimeMillis(). Also i see we have
traceview methods in BrowserActivity.java, which i enabled by changing
BrowserSetting.java 'tracing' value to true.

Any ideas of how to profile webkit core functionalities?

regards,
Ravi
Software Engineer,
Texas Instruments Inc.
Dallas,TX
--~--~---------~--~----~------------~-------~--~----~

2. Top and bottom TextView layout?

Hi everyone,

Noob question:

I was trying to create a layout with a text view aligned to the top
and another aligned to the bottom.
After reading the layout dev docs, I wrote the following:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg">
    <TextView
        android:id="@+id/text1"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:textSize="30px"
        android:textColor="#000000"
        android:gravity="center_horizontal|top"
        android:text="Top!"/>
    <TextView
        android:id="@+id/text2"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:textSize="30px"
        android:textColor="#000000"
        android:gravity="center_horizontal|bottom"
        android:text="Bottom!"/>
</LinearLayout>

... but it doesn't work...
Can someone give me a tip?

Thanks in advance.

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

3. Checking Internet Connection

4. Android kernel debugging

5. Help!? Updating our applicatoin on the market deletes the saved SharedPreferences.

6. how to display alert message when some one clicks on back button

7. What to do when other 'Home' app crashes? Reboot only?