8

Trouble in switching from silent mode

view full story
linux-howto

http://stackoverflow.com – I am Doing a program which detects the incoming call and if the app is in the silent mode it switch to general mode and rings. I had used a Broadcast receiver to listen the incoming calls and a service starts from it. The broadcast receiver I am using is public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub AudioManager am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); switch (am.getRingerMode()) { case AudioManager.RINGER_MODE_SILENT: Log.i("MyApp","Silent mode"); Intent IncomingNumberIn (HowTos)