tags:

views:

31

answers:

0

Hi All,

New to this and a bit confused as to why calling the following method creates a force close:

AudioManager myaudiomanager; public void toggleSilent() { myaudiomanager.setRingerMode(AudioManager.RINGER_MODE_SILENT); }

I don't see any blatant errors and I have added permissions to the manifest regarding the audio manager.

Anyone able to direct me further?