My Application is running for Android 2.3.3 to 4.2.2
I want to avoid the restart of the Activity by rotating the display. Also I added the attribute android:configChanges="orientation|screenSize"
in the manifest to these Activity
. Thanks LogCat I could see that onConfigurationChanged()
is called instead onCreate()
while rotating the device. But only in higher Versions of Android!
in 2.3.3 still onCreate()
is called after onConfigurationChanged()
I want to avoid my Application for restarting, because I download some data in an AsyncTask
. I think that's the simplest way to make sure, that the AsyncTask
isn't call for any times and to make sure, that it isn't canceled.
Do you think it's a good idea, to avoid the Activity
for restarts in my case when the configuration is changed? How could I handle this for Android 2.3.3?