Did you specify in your activity that it should never change orientation by forcing its default orientation ? http://developer.android.com/guide/topics/manifest/activity-element.html#screen
On 18 août, 07:22, SChaser <[email protected]> wrote: > On Aug 3, 11:29 am, Mark Murphy <[email protected]> wrote: > > > > >http://wiki.andmob.org/samplecode > > > Look in there for the links to the Rotational Forces series of blog > > posts. This one covers what you need: > > >http://androidguys.com/?p=2723 > > > In your case, you would detect the rotation and change how you draw on > > your canvas to match. > > Thanks. I tried that and it still doesn't do the trick. > > I have a simple layout - a couple of buttons in a listview, a couple > of text fields in a listview, and a custom SurfaceView. > > The problem is that when I rotate the device (changing orientation), > even with the hacks ( and logging to verify that the > onConfigurationChange method of my activity is being called), there is > still half a second where the screen goes grayish and my SurfaceView > is inaccessible to draw on. > > Oddly, popping the keyboard in and out also results in an orientation > change, but nothing goes gray. > > In both cases, based on the log, my methods get called in the same > order.and the time from surface destroyed to surface created is > virtually identical at about 450 msec. > > Help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

