Hi!
I'm having problems with applications not switching back to portrait-
mode.
Switching from portrait-mode to landscape-mode works fine, the first
time - but after that it won't change back.
This goes for all applications except the Home-Screen.
I use Ctrl-F11 and/or Ctrl-F12 to change the screen orientation in the
emulator.
And I just updated to SDK version 1.5
Here is some output from LogCat which caught my attention:
// Starting the Android-Settings
06-20 20:23:35.251: INFO/ActivityManager(581): Starting activity:
Intent { action=android.settings.SETTINGS flags=0x10200000 comp=
{com.android.settings/com.android.settings.Settings} }
06-20 20:23:35.421: WARN/InputManagerService(581): Window already
focused, ignoring focus gain of:
com.android.internal.view.iinputmethodclient$stub$pr...@43674ee0
06-20 20:23:41.011: DEBUG/dalvikvm(621): GC freed 1095 objects / 49048
bytes in 118ms
// Changing screen orientation to landscape-mode
06-20 20:23:43.815: INFO/WindowManager(581): Setting rotation to 1,
animFlags=1
06-20 20:23:43.821: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/1 nav=3 orien=2 }
06-20 20:23:44.231: DEBUG/StatusBar(581): updateResources
06-20 20:23:46.802: DEBUG/dalvikvm(581): GC freed 2249 objects / 98192
bytes in 131ms
// Changing screen orientation back to portrait-mode
06-20 20:23:52.640: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=2 }
06-20 20:23:52.921: DEBUG/StatusBar(581): updateResources
06-20 20:23:55.502: DEBUG/dalvikvm(581): GC freed 1707 objects / 74904
bytes in 133ms
// Pressing the Home-Button
06-20 20:24:01.401: INFO/ActivityManager(581): Starting activity:
Intent { action=android.intent.action.MAIN categories=
{android.intent.category.HOME} flags=0x10200000 comp=
{com.android.launcher/com.android.launcher.Launcher} }
06-20 20:24:01.421: WARN/UsageStats(581): Something wrong here, Didn't
expect com.android.settings to be paused
06-20 20:24:01.440: INFO/WindowManager(581): Setting rotation to 0,
animFlags=0
06-20 20:24:01.450: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.481: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.800: INFO/WindowManager(581): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
06-20 20:24:01.841: DEBUG/StatusBar(581): updateResources
06-20 20:24:02.450: DEBUG/dalvikvm(713): GC freed 4066 objects /
215288 bytes in 763ms
The WindowManager reports, that the Config changes, but orien is
always set to 2 - no matter how often i change orientation. It is not
untill i return to the home-screen, that orien is set to 1...
Any help would be greatly appreciated :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---