Sorry, I don't believe there is a way to do this. (If there is, it would be this attribute on the application tag.) We strongly recommend that people stick with the standard behavior of allowing the system to restart an activity due to a configuration change, since:
(1) This takes care of a lot of things for you and you real. (2) It is very unlikely you will be able to actually correctly handle all of them yourself (such as a locale change), so you are going to need to behave well anyway. (3) This is really the same mechanism that is used to restore an application when brought to the foreground after its process is killed, so if you aren't correctly dealing with an activity restart then you are broken in this case as well. On Mon, Dec 7, 2009 at 7:27 AM, Syl <sylvain.guyoma...@altran.com> wrote: > In my application, I don't want the activity to restart when user > changes his mobile's orientation or when he opens his physical > keyboard. > > So, I have to assign the following XML attribute to all my activities > in the manifest file : > > android:configChanges="keyboard|keyboardHidden|orientation" > > > I have a dozen of activities. So, my question is : > > Is it possible to assign the same XML attribute value to all > activities ? > Or should I copy the attribute in all the <activity> tags of the > manifest ? > > Thanks ! > > PS : I try to set the attribute value in the <application> tag but it > doesn't work. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en