Setting the Android System Volume
问题 I am writing an application which handles the following: Silent - Makes the phone volume silent Low - Makes the phone volume 1 point above the silent Medium - Makes the phone volume medium High - Makes the phone volume maximum Phone volume includes Ringer, video, audio , games volume etc. I know how to achieve Silent mode through AudioManager . But for 2-4 , I could not find any helpful code snippets. What do I need to do? 回答1: Add this in onCreate() method of your code and then play around