What is your aim? I've written a simple service and config tool which
switches your device to silent when you put it upside down in your
pants:
http://code.google.com/p/snowservices/wiki/GravityRinger

To silence your device use:
[code]
AudioManager audioMgr =
(AudioManager)getSystemService(Context.AUDIO_SERVICE);
audioMgr.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
[/code]
actually this puts the phone in Vibrate, but there is a silent const
in AudioManager.

On 1 okt, 10:27, Baonq86 <[EMAIL PROTECTED]> wrote:
> Does anyone help me to built the application to turn off the Android
> mobile or switch to silent mode in mobile? I don't see it in the
> library android.os ! Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to