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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:00:22+00:00 2026-06-08T01:00:22+00:00

I am developing an Android app in which the application can be used by

  • 0

I am developing an Android app in which the application can be used by any language but I want to set preferences for the language of the text showing in the app as labels or the text in the buttons.

So what I want to know how to do it is to include a ‘Settings’ in the menu in which the user can set a default language such as for now either English or Arabic then the entire application will only show text and labels and buttons with the language that has been specified. So when the user first download the application it will prompt for choosing a language then every time the application launch it will use the language specified at first or can change it from the setting in the menu.

I know how to add an item in the menu for an activity but what I don’t know how to do it is to save the setting as preference and change all text in the app.

  • 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-08T01:00:24+00:00Added an answer on June 8, 2026 at 1:00 am

    What you should do is just let the phone decide the localization and then have the appropriate localization files in your project. The Android docs on localization should help. Basically what you’re going to want to do is create several folders.

    Your default folder strings.xml will be res/values/strings.xml, and then for say… French you’re going to want to create res/values-fr/strings.xml. Then, if the phone is set to french it will load the strings from the values-fr folder, and if they are not found it will look in strings.xml in the res/values/ folder.

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

Sidebar

Related Questions

I am developing an android application in which i want to use accelerometer. But
I am currently developing an app which will be on Android Market. How can
I want to develop an Android application which can run on all ,screen type
I am developing one application in which comic font are used and that can
Hi I am developing an android app in which if user opens the application
I am developing an android application in which I want to embed database in
I am developing an android app which needs to activate the GPS. I read
I am developing an Android app which gets an image encoded in base 64
I'm developing an Android app which is a quiz. On the other hand, I'm
I am developing an android app in which I have included a library project,

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.