Force alarm sound

by kaloer » Sun, 10 May 2009 03:31:33 GMT

Sponsored Links

Is it possible to force the volume up? I have an alarm that should
wake the user even if the phone is on silent mode.. Is that possible?

Thank you,

Force alarm sound

by Raphael » Sun, 10 May 2009 05:36:10 GMT


AudioManager manager = (AudioManager)
int max = manager.getStreamMaxVolume(AudioManager.STREAM_RING);
manager.setStreamVolume(AudioManager.STREAM_RING, new_volume, 0 /*flags*/);

See the AudioManager API for more details, especially which stream to
use and of course  you might have to change the ringer mode, cf

Please be nice to the user: only do so if the user checks a pref to
allow your app to modify his/her settings and remember to revert the
volume to what it was before ;-)



Sponsored Links

Force alarm sound

by kaloer » Sun, 10 May 2009 15:14:10 GMT

 Thank you, it works.
Yes, I'll let the user choose this feature :)


Other Threads

1. Latest-prorams

hello to every one

this blog specialized in the latest programs for PC and laptop as it
offers everything that is new in the programs

please help me and write your opinion at chat box at top right of the

Thank you for your interest


2. Paging Bro AJ

Boleh minta no telp bro AJ ga? kalo ada yang punya..

terima kasih brader

"Indonesian Android Community [id-android]" 

3. nyoba2 upload ke android market

4. database corruption in web view on nexus one

5. Catch HTTP error code with WebView

6. Galaxy Spica SIM card problems

7. Mau Tanya Cara Upgrade Recovery : dari "recovery-RA-hero-v1.5.3.1.img" MENUJU "recovery-RA-hero-v1.6.2.img". Minta Bantuannya dong...