Resource not found, which is declared in another XML files in Res > Values folder.
I’ve created an array of string called questions.xml in Res > questions.xml in which I’ve created arrays of question and answers.
Those array’s are populated while coding R.array.questions, but while running the code it throws an ResourceNotFound Exception, at that line.
Please give me solution.
Copying the android dev guide:
Make sure your xml contains the string array named correctly. Follow the example:
You can save it with any name, such as
res/values/whatevername.xmland you reference them in the code asR.array.questionsandR.array.answers.The official docs: http://developer.android.com/guide/topics/resources/string-resource.html