[mono-android] Launch timeout has expired, giving up wake lock!

Carlo Bolz cb at dm-edv.de
Tue Mar 15 12:23:21 EDT 2011


> Are you rotating the device, by any chance? ;-)

No. But it works now more than 70 minutes.

Regards,
Carlo


-----Ursprüngliche Nachricht-----
Von: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] Im Auftrag von Jonathan Pryor
Gesendet: Dienstag, 15. März 2011 15:59
An: monodroid at lists.ximian.com
Betreff: Re: [mono-android] Launch timeout has expired, giving up wake lock!

On Mar 15, 2011, at 10:52 AM, Carlo Bolz wrote:
> sometimes (randomly) my application restarts when I am starting a new
Activity.
> In the OnCreate() Method of the new activity lives a little LINQ
expression ;-)

Are you rotating the device, by any chance? ;-)

(By default, device rotations result in creating a new Activity and
destroying the old one...)

> The log displays:
>  
> W/ActivityManager(   92): Launch timeout has expired, giving up wake lock!
> W/ActivityManager(   92): Activity idle timeout for HistoryRecord

This message is generated when your app takes "too long" before returning to
the looper, e.g. your Activity.OnCreate() method is taking more than ~5s to
execute. This can occasionally be ignored (particularly on the emulator),
but if it's problematic you should move the processing off of the UI/main
thread and use a background thread + Activity.RunOnUiThread() to perform the
operation and update the UI.

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid





More information about the Monodroid mailing list