[android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread steff
Hi everyone, I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this: public class Main extends Activity implements SensorEventListener { ... } in the onCreate(...) I set the layout to

[android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread steff
Hi everyone, I got my hands on Android which is really fun. But at some point I don't seem to understand the concept. I've got a Main class which reads like this: public class Main extends Activity implements SensorEventListener { ... } in the onCreate(...) I set the layout to

Re: [android-developers] Why are onCreate() onStart() etc. called when handset orientation is changed?

2009-12-15 Thread Mark Murphy
steff wrote: But my problem is this (at this point my misunderstanding kicks in): whenever I rotate the device the onCreate(), onStart() etc. methods are called, causing my app to act as if it just started. Correct. By default, on an orientation change, Android destroys and recreates your