I'm creating an application in Android which requires me to programmatically enable or disable, audio selection option That we look at sound and display settings. I can not find the API for this. Please
allow Android: name = "android.permission.WRITE_SETTINGS" /> Audio Manager am = (AudioManager) getSystemService (Event. AUUDIO_SERVICE); Am.loadSoundEffects (); Settings. Systems.IPIIT (getContentResolver (), Settings. Systems. SOUND_EFFECTS_ENABLED, 1);
Comments
Post a Comment