I have one android application so
- my application is running foreground
- and I click power button
- Beep sound comes
- my phone goes into sleep
- When i again click power button
- my phone wake up
- I unlock my phone
- again Beep sound comes
- screen goes to my application screen
Here i do not want that beep in case 3 and case 8 so how can i do that from my application code?
Edit: I know this can be done by from setting->sound->screen lock sound checkbox but i need to do this just for my app only no matter whats general setting for screen lock sound is selected.