[android-developers] Adjust ringer volume for incoming calls

2011-04-28 Thread Josh
I'm currently using a BroadcastReceiver on android.intent.action.PHONE_STATE to detect when an incoming call is arriving. Then, after checking a few user values, I attempt to alter the ringer volume using the following code. aMan = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);

[android-developers] Adjust ringer volume for incoming calls

2011-04-28 Thread Josh
I'm currently using a BroadcastReceiver on android.intent.action.PHONE_STATE to detect when an incoming call is arriving. Then, after checking a few user values, I attempt to alter the ringer volume using the following code. aMan = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);