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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:17:31+00:00 2026-05-28T05:17:31+00:00

I am writing a phone dialer app for android. I created a layout for

  • 0

I am writing a phone dialer app for android. I created a layout for keypad, which contains a TextView and 10 buttons. Buttons are as keys for 10 digits(0 to 9) and TextView is for displaying the number according to keys pressed.

In my app, i am appending the text (“0” or “1”, etc.) to the TextView for each button pressed. If i pressed the buttons 1, 2, 3 then the text on TextView is 123.
The problem is, let’s take the screen is in landscape mode and TextView contains 123, if i turn it, in portrait mode no text on TextView.

Please Help Me Regarding this.

  • 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-05-28T05:17:32+00:00Added an answer on May 28, 2026 at 5:17 am

    Please check on orientation change, on create method is called, which requires all the views to be created again, so you need to use one of the following methods:

    1. use onSavedInstance method and save the states of components/views to bundle.
    2. Just use following flag true in your manifest file in activity tag android:configChanges=”keyboardHidden|orientation”. like below:

      <activity android:name=".SampleActivity" android:label="@string/app_name"
          android:configChanges="keyboardHidden|orientation">
          ...
      </activity>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an Android app that contains a contact list. The design required me
I'm writing a Windows Phone Mango app. I have a hyperlink that contains email
I'm writing an Android app for work that shows the status of our phone
I'm writing an app that sends images and video from an Android phone to
Hi I am writing an android in which user enters phone number in an
I am writing an android app and testing in on my own phone. It's
Possible Duplicate: Check orientation on Android phone I am writing an app that requires
I am thinking to try writing an app that can use android phone to
I am writing a slide-show like application for android phone which I am going
Iam writing a Phone App where the end user should be able to access

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.