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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:49:01+00:00 2026-06-15T21:49:01+00:00

I am facing very strange problem in handling orientation of activity. Let me explain

  • 0

I am facing very strange problem in handling orientation of activity. Let me explain the scenario

I have Activity A and B.Currently A is in landscape mode and B(fixed) is in portrait mode. I am saving state of activity A if user change orientation of A. I went from A (landscape) to B(portrait) so in that case A is in background so it should call onSaveInstance(bundle) method. But it calls and when i come back then A’s on Resume() called and i got exception onResume() can not called after onSaveInstance() for A.

This is something , make me annoying.

Update Edit

If both activity can have any orientation. Then activity A onSaveInstance(bundle) does not call while going to B and It works well

  • 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-15T21:49:02+00:00Added an answer on June 15, 2026 at 9:49 pm

    Even though i still waiting for some logical description. But i solved my problem. When you are going from Activity A to B onsaveInstance() of a calls in every case. So when coming back activity restarted but onsaveInstance() does not call again. So i was getting

    onResume() can not be called after onSaveInstance(Bundle)
    

    Reason – I think as activity state is already save so it can not called onResume(). And main issue is onSaveInstance(Bundle) is not a part of activity life cycle so its very painful situation.

    Solution – I remove super.onSavaInstance(Bundle) from onSaveInstance(Bundle). And problem solved. Its still working for orientation changes

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

Sidebar

Related Questions

I am facing a very strange problem. I have a grid and when i
I am facing very strange problem in which I have byte[] and when I
I am facing very strange problem. After debugging from my side, I thought to
I am facing a very strange problem where the same loop keeps giving me
I'm facing a apparently very strange problem (I must be doing something wrong, just
I am facing a very strange issue. I have a SharePoint webpart that displays
I am facing a very strange problem with editingStyleForRowAtIndexPath method. I am planing to
I am facing very confusing problem. In my website all user have there own
I am currently facing a very disturbing problem: interface IStateSpace<Position, Value> where Position :
I'm facing a very strange problem. AS far as I know, Magento changes the

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.