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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:39:16+00:00 2026-05-26T03:39:16+00:00

stucked with one problem that in my application i have one button which is

  • 0

stucked with one problem that in my application i have one button which is having text SPANISH on it. On the click of this button i want to change the whole application to Spanish language.

Locale mLocale = new Locale("es");
    Locale.setDefault(mLocale); 
    Configuration config = getBaseContext().getResources().getConfiguration(); 
    if (!config.locale.equals(mLocale)) 
    { 
        config.locale = mLocale; 
        getBaseContext().getResources().updateConfiguration(config, null); 
    }

I also have created two separate Strings.xml file. but not got success.
I want to change the application language on button click.

Thanks

  • 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-26T03:39:17+00:00Added an answer on May 26, 2026 at 3:39 am

    you have to call setContentView() after you change the locale

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

Sidebar

Related Questions

I have two labels that are stacked. If I want a horizontal line between
I am stucked with an idea I want to implement into one of my
Post Update: I have tracked down the problem at the command ExecuteNonQuery. That's the
I have this requirement, A product can have multiple images and only one default
i want to do a website wich is having search functionality. in this i
I have a bunch of UIViews stacked one upon the other(not nested). I want
So, I am having a very difficult time explaining my problem, I hope this
I want to create 4 rectangles stacked to one row. |----|--|------|------------| The width of
I have a form that will multiple Panel controls stacked on top of each
newbie in ipad apps here n stucked on a very strange condition. I have

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.