DON'T disable this. Certainly not for this case, there is just absolutely no need -- look at the docs, onCreate() is called with the savedState null the first time, and non-null when the activity is being re-created from a previous instance (as happens after an orientation change).
On Oct 29, 1:01 pm, Michael <[EMAIL PROTECTED]> wrote: > > Right now I am using onCreate() to create a boolean variable which > > make the notification appear only when onCreate() sets the boolean > > flag. That is fine mostly, my only problem with it is that onCreate() > > is called when the orientation changes, which is kind of annoying. > > You *can* disable this in AndroidManifest, with the > android:configChanges attribute of your application. However... you > have to be aware of what this means. > > I'm with the other guys, you probably want to do that some other way. > Perhaps another thread or some kind of static class? > > - Michael --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

