LandScape App. freezes during launching

by scheme » Thu, 03 Sep 2009 01:46:48 GMT


Sponsored Links
 I had written landscape app. which use surface view and camera.
It works fine mostly.

However, The weird thing is that the app sometimes (once a 5~6 times)
freezes when I started it.
The DDMS spits out following log.

09-02 10:58:29.191: WARN/WindowManager(1132): App freeze timeout
expired.
09-02 10:58:29.201: WARN/WindowManager(1132): Force clearing freeze:
AppWindowToken{43b4ea00 token=HistoryRecord{4386bcc0 {com.home.camera/
com.home.camera.Camera}}}
09-02 10:58:29.251: WARN/SurfaceFlinger(1132): timeout expired
mFreezeDisplay=1, mFreezeCount=0

The following lines are added in the manifest.xml

android:configChanges="orientation|keyboardHidden"
android:screenOrientation="landscape"

I have struggled but have no progress.

Any Ideas?
Thnks in advance.

--~--~---------~--~----~------------~-------~--~----~



LandScape App. freezes during launching

by Dianne Hackborn » Thu, 03 Sep 2009 01:57:27 GMT


 What is your app doing in the debugger?  That message is saying that the
window manager gave up waiting for the app to draw all of its windows before
unfreezing the screen in the new orientation, so for some reason you aren't
getting your windows/surfaces drawn.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


LandScape App. freezes during launching

by scheme » Thu, 03 Sep 2009 22:56:34 GMT


 I had checked my app. again and I found that the onCreate function
sometimes take more than 5 sec. to complete.
After modify the onCreate function, the problem is gone.

Thanks.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Eclipse with ADT plugin error

Hi,

I installed Eclipse with ADT plugin (latest version). Doing so, I now
end up in a no longer working Eclipse. It states
"An error has occurred. See the logfile..."

The logfile reads like this:

!SESSION Tue Dec 08 13:40:49 CET 2009
------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2009-12-08 13:40:49.687
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException:
org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:315)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

2. Unable to figure out what WindowManagerservice and PhoneWindowManager difference

Possibly separate Policy from Mechanism

WindowManagerService extends IWindowManager.Stub: System private
interface to the window manager.

WindowManagerPolicy interface: supplies all UI-specific behavior of
the window manager.  An instance of it is created by the window
manager when it starts up, and allows customization of window
layering, special window types, key dispatching, and layout.





> Kunal

3. Enable / Disable android widgets runtime.

4. Geolocation in Browser works in 1.6 (Gears) but not 2.0 (HTML5/W3C) - Tested in emulator and real devices.

5. how to clear activity stack in task

6. Will native libs built with the NDK work with the Nexus One?

7. TimePicker widget