Android Studio Mute/Unmute Phone
问题 So this link helps a lot: Android mute/unmute phone But I am a not the best at interpreting other people's code and everytime I try to put in there code my program crashes. Could someone help me with how to I can fix it? Spent about an hour trying to figure it out. 回答1: All you have to do is in your AndroidManifest.xml add the permission for vibration. <uses-permission android:name="android.permission.VIBRATE" /> After that in your activity whenever you want to change it to vibrate use this