Android audio manager method causing a force close

Posted by AnSan on Stack Overflow See other posts from Stack Overflow or by AnSan
Published on 2010-06-13T04:36:23Z Indexed on 2010/06/13 4:42 UTC
Read the original article Hit count: 261

Filed under:

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?

© Stack Overflow or respective owner

Related posts about android