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
09-02 10:58:29.201: WARN/WindowManager(1132): Force clearing freeze:
AppWindowToken{43b4ea00 token=HistoryRecord{4386bcc0 {}}}
09-02 10:58:29.251: WARN/SurfaceFlinger(1132): timeout expired
mFreezeDisplay=1, mFreezeCount=0

The following lines are added in the manifest.xml


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

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.