I have many text files and want to put them in a for loop.
I get an Extra that have Resource name from last activity (s) and have an array that have Resource name of my text files in raw Resource is from {d0,d1,d2,d3, ...,d79} and I want to check name(s) and array name and put the find name to resource! I have error on (res=R.raw.(d[i])) my code :
int res = 0;
for (int i = 0; i <=79; i = i + 1) {
if (s.equals(d[i])){
res=R.raw.(d[i])
}
}
inputstream = getResources().openRawResource(res);