简体   繁体   中英

How to use the profiles from the device in android application?

The profiles from the device(General, Silent or any personalized profile) are needed to be used in the application. How to use them?

Android AudioManager - http://developer.android.com/reference/android/media/AudioManager.html可让您访问铃声,通知,音量和振动设置等。

audioManager = (AudioManager) this.getSystemService(Context.AUDIO_SERVICE);  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM