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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:51:22+00:00 2026-06-17T12:51:22+00:00

Possible Duplicate: problem while changeing the orientation in android app I have a card

  • 0

Possible Duplicate:
problem while changeing the orientation in android app

I have a card game app I’m working on. When I flip the android device, switching from landscape to portrait (or vice verse), my card game starts from the beginning.

Every time the android device gets flipped, it calls the create method. I’m assuming it is creating a new intent? Is their anyway to stop this? Can it keeps the same intent if the device is flipped?

  • 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-17T12:51:23+00:00Added an answer on June 17, 2026 at 12:51 pm

    Yes, Android is re-creating your Activity to give you an opportunity to plug in a new layout or whatever orientation-specific handling you need. You can force your activity to stick in a particular orientation with the manifest entry below.

        <activity android:name=".MyActivity"  android:screenOrientation="portrait"       android:configChanges="orientation" ...>
    

    For more details on these attributes see: http://developer.android.com/guide/topics/manifest/activity-element.html

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

Sidebar

Related Questions

Possible Duplicate: Support for “border-radius” in IE I have a problem while creating a
Possible Duplicate: ios::nocreate error while compiling a C++ code i have been working on
Possible Duplicate: Runtime exception, recursion too deep I'm getting a problem while developing a
Possible Duplicate: Problem executing bash file I have created a bash file script and
Possible Duplicate: Java - Regex problem I have list of URLs of types: http://www.example.com/pk/etc
Possible Duplicate: Parse C# string to DateTime I am facing a problem while converting
Possible Duplicate: Codeigniter extending extended MY_Controller I have been fiddling with this problem for
Possible Duplicate: while( !feof( file ) ) is always wrong I have a strange
Possible Duplicate: php warning mysql_fetch_assoc I have a weird problem about my script. It
Possible Duplicate: rails many to many self join I have a problem that I

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.