Good day, I have a small app, it has one button. Whenever I press the button it makes sound using the MediaPlayer. The issue is that I can't find how to make same mediaplayer to play other sounds,
For example: I have list of 10 sounds, whenever I click on my button it randomly picks number from 1 to 10, afterwards it takes corresponding sound where randomly generated number is the position in the list and plays it.
The problem is what should I feed my MediaPlayer with in the bold area? MediaPlayer mpfn = MediaPlayer.create(getActivity(),R.raw.number1);
I'm new to android, and sorry in advance in case my question hurt your feelings. Thanks in advance.