Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6009449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:58:20+00:00 2026-05-23T01:58:20+00:00

Resource not found, which is declared in another XML files in Res > Values

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:58:21+00:00Added an answer on May 23, 2026 at 1:58 am

    Copying the android dev guide:

    res/values/filename.xml
    The filename is arbitrary. The element’s name will be used as the resource ID.

    Make sure your xml contains the string array named correctly. Follow the example:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string-array name="questions">
            <item>How do I create a string array?</item>
            <item>Will this work?</item>
            <item>Why didn't I paste the whole xml in the question?</item>
        </string-array>
        <string-array name="answers">
            <item>Like this</item>
            <item>Yep</item>
            <item>No idea</item>
        </string-array>
    </resources>
    

    You can save it with any name, such as res/values/whatevername.xml and you reference them in the code as R.array.questions and R.array.answers.

    The official docs: http://developer.android.com/guide/topics/resources/string-resource.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ListView which is populated from a string-array resource. I'm trying to
I want to know that I have the string.xml Resource file which contains status
I've not seen a useful, authoritative web resource which says how to reliably enable
I am creating one application in which I am using resource files to keep
My spring MVC is not working and i am getting error resource not found.
I am using redlaser api in my app. I am getting Resource not found
If I have a text stored in db, file, resource does not matter: <code><%=
The @Resource annotation for a service is not injecting a subclass unless I explicitly
changing a static resource during runtine is something that sounds not possible. I have
I want to suppress the The resource name 'X.Y' is not a valid identifier

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.