I am developing an app which requires the phone to ring or make some sound when user click on some button or a particular event occur.
What will be the code for that.
I tried to find it and found some code to ring the phone with notifications.
But I dont want that.
I just need to ring the phone when user clicks a button.
Do i need to store some sound file in resource folder as well.
I am developing an app which requires the phone to ring or make some
Share
I’d use
SoundPoolfor which there is a great tutorial. and yes, you’ll store the sound file as a resource.