How to change vibrate mode to ringer prgrammatically through audio manager

后端 未结 4 991
一生所求
一生所求 2021-01-05 06:27

I am making application where phone mode will changes from silent mode to ringer mode if the user sends an sms with some specific keyword. The application mainly works when

4条回答
  •  迷失自我
    2021-01-05 07:26

    AudioManager manager = (AudioManager) getContext().getSystemService(AUDIO_SERVICE);
    manager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
    

提交回复
热议问题