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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:53:24+00:00 2026-05-21T02:53:24+00:00

What are the rules for using strings.xml resource files versus an interface where String

  • 0

What are the rules for using strings.xml resource files versus an interface where String constants would be defined.

I’m assuming that the strings.xml resource file would be used to define non-functional strings to be used for display purposes such as text in various languages, date rendering formats, etc.

And Interface String constants would be used to define regular expression patterns, Intent extras variable name passing definitions, etc.

  • 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-21T02:53:25+00:00Added an answer on May 21, 2026 at 2:53 am

    Correct. The key is that you can translate the strings in strings.xml – anything written in English (or any other language) and will be exposed to the user should be in strings.xml so you can translate it.

    Patterns/regexes should be Strings for better performance, unless those regexes are language-specific.

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

Sidebar

Related Questions

I'm using GCC to generate a dependency file, but my build rules put the
I need to ensure that a input string follows these rules: It should contain
I am using Sarissa to convert a string of XML into a DOM document
Do you know any documentation about the rules of using update sites? I have
We are using CheckStyle to enforce our style standards. One of the style rules
What rules apply to the name that ends up in the exports section of
Is there a good resource for the rules around how the httpHandler path property
I am trying to load a xml document I created using PHP and DOM
I'm currently using jqGrid to display data. Part of jqGrid's interface will give you
I have an xml file like: <?xml version=1.0 encoding=UTF-8 standalone=yes?> <legends> <legend> <number>1</number> <legendString><ul><li>1.across:a

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.