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

  • Home
  • SEARCH
  • 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 7700321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:40:53+00:00 2026-05-31T22:40:53+00:00

I just found a nice tutorial that will help me implement an easy user

  • 0

I just found a nice tutorial that will help me implement an easy user guide system in my application, as I will be able to draw it with any plain old HTML editor.

My question is simple: since all resources are localizable, I can easily translate my application into new languages. What about assets? Is there an automatic localization mechanism? I don’t think so.

How do I retrieve system locale in order to construct a localized URL when loading the help page’s HTML file? Is there some call to retrieve display size/density the same as coded in the resources world (ie. public String getDensity() returns “xhdpi”, “ldpi”…)?

Danke 😉

  • 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-31T22:40:54+00:00Added an answer on May 31, 2026 at 10:40 pm

    If you really need to check current system locale, one simple way to do it is to add an identifier string in your strings.xml files.

    For example, in values/strings.xml, add:

    <string name="lang">en</string>
    

    in values-es/strings.xml, add:

    <string name="lang">es</string>
    

    in values-fr/strings.xml, add:

    <string name="lang">fr</string>
    

    and so on. Then you’ll be able to check current language programmatically with something like this (to be improved of course, just as an example):

    if( "es".equals( getString(R.string.lang) ) ) {
    

    I hope this helps you.

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

Sidebar

Related Questions

Just found out that the video output of the iPad is not a system
I just found out that by converting PNG32 to PNG8 via Photoshop will fix
I have just found a nice look that I would like to use for
I just found out this nice SVN option that would be very useful on
I just found out about yield return , I seems really nice. I use
I just found myself creating a class called InstructionBuilderFactoryMapFactory. That's 4 pattern suffixes on
I just found out that my program is losing 5% execution speed when it
I just found myself a new challenge: Make a Word Processor that is in
I have MacPorts and CPAN installed and I've only just found out that it's
I just found out that jQuery 1.7 introduced a new method, on() . With

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.