Misplaced Layout after "home"-button and/or powersave screen

Posted by TiGer on Stack Overflow See other posts from Stack Overflow or by TiGer
Published on 2010-06-16T11:03:25Z Indexed on 2010/06/17 9:33 UTC
Read the original article Hit count: 244

Filed under:
|

Hi, I have an app which also includes a service with a Notification. Right now I am experiencing the foillowing problem :

  • I start my app which will work fine
  • after couple of minutes the powersave kicks in and I get a black screen
  • I (or hte user) click the Menu-button to dismiss the black screen and to unlock the screenlock
  • Now my (fullscreen) app will have "moved" like 30-40 pixels downwards, creating an ugly black border or hole. When I move the scrollwheel it will move up and down, and when I press the Menu button (showing my ap''s menu) it will "fix" the view...

or

  • I start my app which will work fine
  • I press the Home button exiting the app, my service though will (correctly) keep running
  • when selecting my service from the notification-bar I will get once again : -Now my (fullscreen) app will have "moved" like 30-40 pixels downwards, creating an ugly black border or hole. When I move the scrollwheel it will move up and down, and when I press the Menu button (showing my ap''s menu) it will "fix" the view...

Any idea what the problem is ? The app is running on a ADP2 with Android 1.6 Thanks in advance !

Ok, after some testing I noticed that if I don't run the Activity on Fullscreen, but just leave the TtileBar away this won't happen... Still this is no solution to me, I want it to be fullscreen...

Noticed siomething else, when I have the View with the black bar, and I press the home button it will "refresh" the View correctly just before actually going to the Home Screen :(

© Stack Overflow or respective owner

Related posts about android

Related posts about layout