That is intentional.
http://developer.android.com/reference/android/app/Activity.html
Unless you specify otherwise, a configuration change (such as a
change in screen orientation, language, input devices, etc) will cause
your current activity to be destroyed, going through the normal
activity
thanks
On Jul 7, 2:49 pm, Charlie Collins charlie.coll...@gmail.com wrote:
That is intentional.
http://developer.android.com/reference/android/app/Activity.html
Unless you specify otherwise, a configuration change (such as a
change in screen orientation, language, input devices, etc) will
thanks I have made the changes your link suggests, and my app is
working as expected when I switch from portrait to landscape, but now
when I switch back to portrait it forcecloses. The logcat is spitting
out all kinds of errors when this happen, most notability one that
says
actually, i just hadn't noticed, but this happens with or without the
instanceState meathods being implemented.
On Jul 7, 4:08 pm, schwiz sch...@gmail.com wrote:
thanks I have made the changes your link suggests, and my app is
working as expected when I switch from portrait to landscape, but
Do you have static variables that reference (indirectly) an Activity
or a View?
If so, get rid of these static variables or make absolutely sure that
you clean them up (set them to null, clear cache, whatever) when the
activity's onDestroy is called.
On Jul 7, 5:50 pm, schwiz sch...@gmail.com
my main activity does have a static variable to the Resources. I
added the meathod onDestroy and added the line res = null; Then I
made sure that res = context.getResources(); is in the
onRestoreInstanceState and onCreate meathods. But I am still getting
the same log error and force close.
On
ok this is interesting, it doesn't crash on my device anymore but it
crashes in the emulator
On Jul 7, 6:32 pm, schwiz sch...@gmail.com wrote:
my main activity does have a static variable to the Resources. I
added the meathod onDestroy and added the line res = null; Then I
made sure that
7 matches
Mail list logo