I have an app that handles onSaveInstanceState and
onRestoreInstanceState appropriately in Android 2.2.  When I change
the orientation of the device, my UI shows the same state as shown
during the previous device orientation as expected.  However, if I
flip the orientation enough times in random fashion, it will
eventually show the home screen instead of my reoriented app.  When I
start my activity again from the home screen, it will show no state.
I don't have any insight into why this is happening and a search of
the bug database, Stack Overflow, and the discussions didn't turn up
anything.  Any clue why this is happening?

>From logcat during USB debugging, I see a series of similar
orientation change statements and then suddenly activity start (last
group of statements).

04-03 17:13:47.153: INFO/WindowManager(1082): Setting rotation to 3,
animFlags=0
04-03 17:13:47.177: INFO/ActivityManager(1082): Config changed:
{ scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/2 nav=2/2 orien=2
layout=34 uiMode=17 seq=373}
04-03 17:13:47.231: INFO/UsageStats(1082): Unexpected resume of
org.vermasque.songalarm while already resumed in
org.vermasque.songalarm
04-03 17:13:47.536: INFO/WindowManager(1082): Setting rotation to 1,
animFlags=0
04-03 17:13:47.559: DEBUG/dalvikvm(8079): GC_FOR_MALLOC freed 9218
objects / 493160 bytes in 132ms
04-03 17:13:49.036: DEBUG/dalvikvm(1082): GC_EXPLICIT freed 643
objects / 29688 bytes in 171ms

04-03 17:13:49.036: INFO/WindowManager(1082): Setting rotation to 3,
animFlags=0
04-03 17:13:49.270: INFO/WindowManager(1082): Setting rotation to 0,
animFlags=0
04-03 17:13:49.294: INFO/ActivityManager(1082): Config changed:
{ scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/2 nav=2/2 orien=1
layout=34 uiMode=17 seq=374}
04-03 17:13:49.356: INFO/UsageStats(1082): Unexpected resume of
org.vermasque.songalarm while already resumed in
org.vermasque.songalarm
04-03 17:13:49.981: DEBUG/dalvikvm(1082): GC_EXPLICIT freed 505
objects / 21816 bytes in 100ms

04-03 17:13:49.981: INFO/WindowManager(1082): Setting rotation to 1,
animFlags=0
04-03 17:13:49.997: INFO/ActivityManager(1082): Config changed:
{ scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/2 nav=2/2 orien=2
layout=34 uiMode=17 seq=375}
04-03 17:13:50.044: INFO/UsageStats(1082): Unexpected resume of
org.vermasque.songalarm while already resumed in
org.vermasque.songalarm
04-03 17:13:51.208: DEBUG/dalvikvm(1082): GC_EXPLICIT freed 498
objects / 21616 bytes in 111ms

04-03 17:13:51.208: INFO/WindowManager(1082): Setting rotation to 0,
animFlags=0
04-03 17:13:51.231: INFO/ActivityManager(1082): Config changed:
{ scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/2 nav=2/2 orien=1
layout=34 uiMode=17 seq=376}
04-03 17:13:51.278: INFO/UsageStats(1082): Unexpected resume of
org.vermasque.songalarm while already resumed in
org.vermasque.songalarm
04-03 17:13:53.911: DEBUG/dalvikvm(1082): GC_EXPLICIT freed 1008
objects / 53840 bytes in 126ms

04-03 17:13:54.903: WARN/KeyCharacterMap(8079): Can't open keycharmap
file
04-03 17:13:54.903: WARN/KeyCharacterMap(8079): Error loading
keycharmap file '/system/usr/keychars/qtouch-touchscreen.kcm.bin'.
hw.keyboards.65538.devname='qtouch-touchscreen'
04-03 17:13:54.903: WARN/KeyCharacterMap(8079): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
04-03 17:14:06.356: INFO/ActivityManager(1082): Starting activity:
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=org.vermasque.songalarm/.SongAlarmActivity bnds=[245,640]
[355,758] }

-- 
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

Reply via email to