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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:25:17+00:00 2026-06-10T20:25:17+00:00

Hi i am developing android application in tablet version. Here i am facing problem

  • 0

Hi i am developing android application in tablet version. Here i am facing problem with orientation so i want to make my application in portrait mode only. For that i Used attribute like below snippet for each and every activity in my application.

android:configChanges="keyboard|orientation|keyboardHidden"
            android:screenOrientation="portrait"

Application is running perfectly while testing in portrait mode. But it is not good while testing application with tablet physical position with landscape. It is first going to landscape then immediately going to portrait.

I used programmatically making the activity in portrait but no effect. Please provide me any help.
Here is my programmatic orientation fix

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

I tested in Motorolo device

Please suggest me to avoid my application going to landscape.

  • 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-10T20:25:19+00:00Added an answer on June 10, 2026 at 8:25 pm

    Finally i find the reason why orientation changes are occurring in android tablet. In ICS (version 4.0+) the tablet have the option like “Don’t keep activities” in settings>> Developer tools>>

    If the user checked that option the paused activity will killed and created when it is call again. what i mean the activity won’t go for onPause() state it will go for onDestroy() and it will created again when press on back key. So the orientation behavior is different.
    I did not get the idea how to handle it from our android code

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

Sidebar

Related Questions

I'm developing android application with phonegap . Currently I'm facing one problem with inputbox
I am developing an Android application using SQLite as backend. I want to make
I am developing a application for android platform. The problem i am facing is
I am developing application for honeycomb android tablet. I want to know how we
I'm developing an application for Android tablet 3.0 that has one activity that should
I'm developing an Android 3.1 Tablet application that runs a service with this thread:
I am developing an application in Android Tablet. Now in my application, I want
I am developing a application for Android for mobile and tablet. I want to
I an developing an application in android and I want to connect tablet to
In school (high school), my partner and I are developing an Android tablet application.

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.