Setting for "Use incoming call volume for notifications"

by Open » Sun, 13 Dec 2009 03:25:58 GMT


Sponsored Links
 Hi All-

Does anyone know where the value for "Use incoming call volume for
notifications" is stored?

This is a checkbox found in the Ringer Volume settings that allows you
to set a separate notification volume and incoming call volume.  I
would like to programatically toggle the value, but I can't figure out
where it's stored.  I looked at Context.AudioManager, I see methods
for controlling the notification volume, but I can't find a setting
for separating notification volume from incoming call volume.

Thanks!

--



Setting for "Use incoming call volume for notifications"

by Beth » Tue, 22 Dec 2009 00:58:56 GMT


 I need to bump this thread I face the same problem.  My guess is that
there is nothing public and anything we might find through source and
code into a program could change without notice.  Truth is that the
shift from SDK 1.1 to SDK 1.5 introduced this tie in and broke my UI!

My solution was to pop an alert dialog that will open the settings
application.  To further complicate the matter, I found that the
public action -> the intent that is supposed to open the sound
preferences page, was broken (on the Hero?).  Thus, I cannot navigate
to the specific page that holds this setting.

I guess maybe an issue needs to be filed.  So far I have not taken
that step.  If anybody has a better solution, please speak up!

Thanks and regards,
Beth




--


Sponsored Links


Other Threads

1. Screen flip-out on G1

What event in an Activity is called when the screen is flipped out to
expose the keyboard on a G1? I need to save some instance variables,
but it seems like onCreate is being called without onPause, onStop, or
saveInstanceState being called first.

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~

2. Get File Path With URI

I am launching an image picker (from the gallery) and my code crashes
every single time.  I tried to get some help in another post, but
people quit responding to the post.  Please help.  When I do a debug,
it tells me this (there are TONS of errors, but these looked the most
important - also, I changed the "com.app.name/com.app.name.activity"
for privacy reasons):

04-01 14:09:30.254: WARN/dalvikvm(719): threadid=3: thread exiting
with uncaught exception (group=0x4000fe68)
04-01 14:09:30.254: ERROR/AndroidRuntime(719): Uncaught handler:
thread main exiting due to uncaught exception
04-01 14:09:30.274: ERROR/AndroidRuntime(719):
java.lang.RuntimeException: Failure delivering result ResultInfo
{who=null, request=1, result=-1, data=Intent { data=content://media/
external/images/media/7 }} to activity {com.app.name/
com.app.name.activity}:
android.database.CursorIndexOutOfBoundsException: Index -1 requested,
with a size of 1
04-01 14:09:30.274: ERROR/AndroidRuntime(719): Caused by:
android.database.CursorIndexOutOfBoundsException: Index -1 requested,
with a size of 1

Here is the code that invokes the activity, follwed by the code that
is invoked after the activity has finished:

public void takePic() {
                Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
                photoPickerIntent.setType("image/*");
                startActivityForResult(photoPickerIntent, 1);
}

@Override
protected void onActivityResult(int i, int j, Intent intent)
{
    super.onActivityResult(i, j, intent);

    Uri photoUri = intent.getData();

    ContentResolver cr = getContentResolver();
    Cursor cursor = cr.query(photoUri, new String[] {
            MediaStore.Images.ImageColumns.LATITUDE,
            MediaStore.Images.ImageColumns.LONGITUDE
     }, null, null, null);

    long fname = cursor.getLong(cursor.getColumnIndexOrThrow
(MediaStore.Images.ImageColumns.LATITUDE));

    chatscreen.append("File Name: "+fname);
}

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

3. Pending intent not detecting onCreate

4. Spry onload command

5. Build OpenCORE outside of Android

6. upgraded to 1.5 and apps wont run

7. Regarding AbsoluteView being deprecated in 1.5