I’m using this code below in BroadCast Receiver to get Audio Manager
AudioManager audio = (AudioManager) getSystemService(AUDIO_SERVICE);
But it’s showing error & eclips says AUDIO_SERVICE cannot be resolved to a variable
Whats wrong here? How can it be solved?
Try: