Read about the mainfest activity setting "android:configChanges" http://developer.android.com/guide/topics/manifest/activity-element.html http://developer.android.com/guide/topics/manifest/activity-element.html#config
On Aug 20, 2:17 pm, "[email protected]" <[email protected]> wrote: > While testing on Android 1.6 using a G1 I have noticed that when I > slide out the keyboard it kills the activity and recreates it even > though I have set my activity to only display in portrait mode. > > Same happens when I push the keyboard back in. > > I get onSaveInstance, onDestroy called, then onCreate, onResume, > OnrestoreInstance... > > I understand why this is done when the display is being switched to > landscape view but why does this happen when I specifically dont want > my activity to switch view, its essentially killing and restarting the > activity for no reason. > > Is it the same on 2.x devices? > > Is there something I'm missing to stop it happening? > > Can anyone explain if there is any point to it? -- 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

