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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:13:36+00:00 2026-06-10T14:13:36+00:00

Possible Duplicate: Change language programatically in Android I am creating Application which is a

  • 0

Possible Duplicate:
Change language programatically in Android

I am creating Application which is a form type application.
here user need to enter the details which on submitting gets inserted into database.

We need to give language option within the application. It will be radiobutton option where user on selecting the option layout gets refreshed with the new language.

I have used res/value for different language options.

On setOnCheckedChangeListener i have used configuration to update the locale with different Language but

  setContentView(R.layout.leave); 

is getting called only once after on changing the radiobutton values
setContentView(R.layout.leave);
is not getting called.

Kindly suggest how solve the above problem.

  • 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-10T14:13:38+00:00Added an answer on June 10, 2026 at 2:13 pm

    Check this post. Your answer is there. This post will help you how to handle languagle changes programatically.

    Code :

    android.content.res.Configuration conf = res.getConfiguration();
    conf.locale = new Locale(language_code.toLowerCase());
    res.updateConfiguration(conf, dm);
    

    When you call this update configuration and if you are not overriding configuration change, it will call the onCreate and setContentView again.

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

Sidebar

Related Questions

Possible Duplicate: Change language programatically in Android I would like to develop an Android
Possible Duplicate: Android Button: set onClick background image change with XML? I need that
Possible Duplicate: change layout and template in zend dynamically according to the device(android tab,iphone,ipad)
Possible Duplicate: ToggleButton state change programmatically rather than automatically in Android? I am trying
Possible Duplicate: Flip-Animation for Activity-Change I'm new to Android Animation . I wanted to
Possible Duplicate: How to change the Go to App button? I need to change
Possible Duplicate: how to change the font on the text view in android? I
Possible Duplicate: Change icons of checked and unchecked for Checkbox for Android customize check
Possible Duplicate: Change CSS Dynamically I need to change the height of a div
Possible Duplicate: jQuery change input type How to replace input[type=submit] to input[type=text] using jQuery?

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.