Attempt to invoke virtual method 'void android.media.AudioManager.setRingerMode(int)' on a null object reference

Attempt to invoke virtual method ‘void android.media.AudioManager.setRingerMode(int)’ on a null object reference

Showing this error when using Sound_Silent

Hi @sadirul_islam786 please read this first:

And provide some more info like showing your blocks and a screenshot of the error :wink: