I want to call this list of raw file from strings.xml
int[] sound = {
R.raw.sound1,
R.raw.sound2,
R.raw.sound3,
R.raw.sound4,
R.raw.sound5,
};
How to type in a strings.xml
and call from code ?
I want to call this list of raw file from strings.xml
int[] sound = {
R.raw.sound1,
R.raw.sound2,
R.raw.sound3,
R.raw.sound4,
R.raw.sound5,
};
How to type in a strings.xml
and call from code ?
raw folder sound in add to
strings.xml
file array
strings.xml
<string-array name="select_sounds">
<item>@raw/sound1</item>
<item>@raw/sound2</item>
<item>@raw/sound3</item>
<item>@raw/sound4</item>
<item>@raw/sound5</item>
</string-array>