[mono-android] Launch timeout has expired, giving up wake lock!
Jonathan Pryor
jpryor at novell.com
Tue Mar 15 10:59:10 EDT 2011
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
More information about the Monodroid
mailing list