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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:58:09+00:00 2026-06-09T11:58:09+00:00

In my android app, i can change the theme, but to see the change

  • 0

In my android app, i can change the theme, but to see the change I have to exit the app and open it again.

This is how I change the theme.

ThemeSetterActivity.setStyle(signup.this);

which happens on the create event.

But is there some code like this (below) that I can run, and will change the theme for all the activities.

foreach (activity act in app) {
    ThemeSetterActivity.setStyle(act.context);
}

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-06-09T11:58:11+00:00Added an answer on June 9, 2026 at 11:58 am

    As far as I know you can’t do it that way.

    What I do is have each activity keep track of what theme it is currently using.
    Then in each activities on resume just check if the current theme is still what it should be, if not restart the activity.

    An easy way to get that application wide is to just have your base activity class implement that behavior, and then have all activities extend that.

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

Sidebar

Related Questions

I want to change the app typeface and I can't: AndroidManifest.xml ... <application android:icon=@drawable/ic_launcher
I have an android app where in my Main activity I can play music
I am currently making an app (Android 1.6) that can change between two different
I want to create an Android app that can be used on 2.3.3 all
I'm writing an Android app where users can upload video to Youtube. I'd like
I've just started debugging my first three line long android app and I can't
I can register my android app with C2DM successfully using a <receiver> in my
How can i add radio buttons in android app with option as an image
How can I build an android app which basically get the inputs from user
im wondering if we can develop our android app in any computer we use

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.