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

The Archive Base Latest Questions

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

Learning android programming, I posted a question recently, which helped me move along with

  • 0

Learning android programming, I posted a question recently, which helped me move along with the issue, however I still can’t quite fix the problem.

The problem is that each time I turn my android, my app pretty much dies.

Here’s what happens:
I got onTouchEvent, which prints anytime a screen is touched (this is before I turn the tablet):

03-13 22:26:04.544: D/DEBUG(4084): onTouchEvent(MotionEvent{5a481bc0 action=1 x=314.0 y=506.0 pressure=0.0 size=0.0})
And this happens right after I turn the tablet:
03-13 22:26:07.059: D/sensors(1873): input_event iev->type:1 iev->code:101 iev->value:5 
03-13 22:26:07.059: E/WindowOrientationListener(1873): georgezhou++++++++=- onSensorChanged, rotation = 0
03-13 22:26:07.064: D/sensors(1873): hardware/libhardware/modules/sensors/sensors.cpp::data_poll 
03-13 22:26:07.089: E/WindowManager(1873): computeNewConfigurationLocked
03-13 22:26:07.089: I/ActivityManager(1873): Config changed: { scale=1.0 imsi=0/0 loc=md_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=19}
03-13 22:26:07.159: D/DEBUG(4084): Called onStop()
03-13 22:26:07.159: D/DEBUG(4084): Called onDestroy

I printed the ‘onStop() message when I got it, and same for OnDestroy, my methods first call super., than print the message.

The onCreate() actually has code that creates a thread, and keeps redrawing the screen. – I currently do not pause or kill this thread.

How come there’s no call to onRestart or onResume?
And I don’t see onPause, which I expected from http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle

This might be important, I have this setting: minSdkVersion=”4″
That’s because I’m using Pandigital, and that seems to be the highest I can go.

  • 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-17T16:41:52+00:00Added an answer on June 17, 2026 at 4:41 pm

    (In order to remove this question from the “Unanswered” filter…)

    The solution is outlined here:

    How to handle screen orientation change when progress dialog and background thread active?

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

Sidebar

Related Questions

Newb question. How can you know what the main launch Activity is? Learning Android.
I'm still fresh to Android programming and I don;t quite get how does Camera
I'm learning Android programming for a class, and I have a quick question about
I'm still learning Android Development so sorry if this question seems stupid but I'm
I'm learning Android programming, and I want to make an application which has to
I am learning Android and java so this is probably an easy question. I
I'm currently learning OpenGL ES programming on Android (2.1). I started with the obligatory
I just started learning android.Hope this isn't silly question.Here it is My FragmentAdapter has
I'm currently learning Android programming and the way I used to create command buttons
Am new to android programming, just started learning it the past 6 weeks and

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.