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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:36:07+00:00 2026-06-18T05:36:07+00:00

(I see a similar question on stackoverflow, but the answer there is not a

  • 0

(I see a similar question on stackoverflow, but the answer there is not a true answer, and the context of the problem is a bit different too.)

“java.lang.RuntimeException: Performing pause of activity that is not resumed”

I develop a game application (which uses both normal Views and GLSurfaceView). If I turn on and off my phone display very fast, I can cause this exception sometimes (thrown by ActivityThread ), but my application is running normally after the exception. My app is a landscape one, and this is correctly set in the manifest as well (including orientation and configchanges as well).

Is this OK?

It’s a RuntimeException thrown by ActivityThread under the application name of my application, but it doesn’t terminate my 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-18T05:36:08+00:00Added an answer on June 18, 2026 at 5:36 am

    I’ve just had this problem because I was calling activity.recreate() (or .finish() and .startActivity() – depending on android version).
    Of course, you would only call those functions because you want to reload language, reset orientation and similar stuff that you can only do with activity recreation.

    You can’t call those functions (.finish() or .recreate()) from onResume() though.
    If you do, you will receive the mentioned non-fatal exception.

    I “solved” the issue by delaying the .recreate() call for one millisecond so that the activity gets properly resumed and is only then killed.

      Handler handler = new Handler();
      handler.postDelayed(new Runnable()
      {
        @Override
        public void run()
        {
          log.i("TX.refresh", "Switching to %s from %s", lang, lang);
          if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)
          {
            ctx.finish();
            ctx.startActivity(ctx.getIntent());
          } else ctx.recreate();
        }
      }, 1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see another question on stackoverflow.com whose title seems similar but that doesnot fulfil
I've found a similar question, but the accepted answer is not what I want:
I asked a similar question last week but did not get an answer that
I've searched a bit and didn't see any similar question, so here goes. How
I see similar questions, but the answers vary and are not unified. Consider a
I see a bunch of similar questions, but didn't find the answer I need
I ran into some similar questions on StackOverflow, tried the solutions, but did not
I've seen several similar questions on stackoverflow, but they didn't solved my problem. This
For this problem, I did comb through Stackoverflow similar questions for an answer. Although
This is similar to a previous question , but the answers there don't satisfy

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.