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 8847747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:15:53+00:00 2026-06-14T12:15:53+00:00

App version 2.3.3 Here is what i am looking for… I have few strings

  • 0

App version 2.3.3

Here is what i am looking for…

I have few strings in “values/strings.xml”. I wish to retrieve the values depending on the string’s “name” attribute and use it my application. The input to which string in the xml should be used comes dynamically. Here is an example…

My input from other file :: “A” => This value changes. It can be any value in A,B,C,D.

I have different strings in strings.xml, like…

    <string name="A">AforApple</string>
<string name="B">BforBall</string>
<string name="C">CforCat</string>
<string name="D">DforDog</string>

Now, how do i programmatically get the value(AforApple) of the String with name=”A”.

  • 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-06-14T12:15:54+00:00Added an answer on June 14, 2026 at 12:15 pm

    If your code gets a string like “A” and you are trying to dynamically find the string in your resources that matches that name, I don’t think you can do that.

    Instead of using the strings.xml, you might want to use arrays.xml and build a HashMap from that before you need to access those strings

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

Sidebar

Related Questions

I have a beta version of my app developed, and I'm looking to put
I have an app version 1.0 which is on Appstore, now I want to
I have a version of an app that is currently available in the mexico
I'm new here. I have been trying to create a video capture app using
Just looking for a super simple answer here. My app returns this : Error
Here is my manifest JSON: { name: Name of addon, version: 1.0.0, description: Description,
I'm building an iPhone app version of a website that sells tickets online. I'm
How does one approach building the mobile app version of one's Rails app, with
Possible Duplicate: Make iPhone app paid version replace free version on install from app
We developed an android app for version 2.1 but the customers requires it should

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.