Thanks a lot Ben.

On Wed, Mar 31, 2010 at 5:17 AM, Ben <benjaminbrow...@gmail.com> wrote:

> If you are not overriding the default configuration change routine,
> every time you rotate the phone it will destroy your activity and then
> recreate it from scratch.  By lock the phone I assume that you mean
> you are sending the current activity to the background, which means at
> the very least it will have to go through onPause(), onResume().  Are
> you rotating the phone as soon as you unlock it.  It's possible that
> the half-screen glitch is while the phone is still resuming from the
> screen lock and when it finishes that it recreates itself to deal with
> the orientation change.
>
> I like to use the debugger for things like this, just drop a few
> breakpoints in each of the default activity lifecycle routines and see
> which ones are getting called when the phone locks, when it unlocks
> and then when the orientation changes.
>
> But my guess is that what you are seeing is just a little lag
> generated when the phone has too many instructions in the queue to
> keep up with.  I've seen similar things in my application.
>
> On Mar 29, 6:28 am, Aviral <aviral...@gmail.com> wrote:
> > Hi. I am new to android and facing a problem while writing an
> > application.
> >
> > When I rotate the phone to change the layout from portrait to
> > landscape, the view does not fill the entire screen. Instead, it fills
> > only half of it for a fraction of second (the rest half is black) and
> > then it fills the complete screen. This happens in the following
> > manner
> > 1. Open a view in portrait mode.
> > 2. Lock the phone.
> > 3. Unlock
> > 4. Rotate the phone to  change the orientation from portrait to
> > landscape
> > If we don't lock it, the problem does not occur. Can anybody please
> > help me in identifying the problem??
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to