android search array and retrieving audio files

2019-08-19 05:59发布

问题:

I'm new to android development and I need help on retrieving data.

I'm working on audio files. In database I have 2 columns one is text the other is destination of the audio file.

1-) User enters text: 'welcome to Android'
2-) And I get that text and put in an array like this:

my_array[0] = welcome;
my_array[1] = to;
my_array[2] = Android;

3-) Then with loop it must bring destination of these texts audio files (which is in the raw folder) (welcome.mp3, to.mp3 , android.mp3 ...)
4-) Then play these audios.

How can I do that? thanks

回答1:

Download the Zip file from this link and Take a look at Notepad Application