i’m having sometimes problems when launching my app. From time to time the screen stays black and i have to wait 10 minutes. I don’t get an error message and the logcat says this:
08-10 11:45:39.659: WARN/ActivityManager(104): Launch timeout has expired, giving up wake lock!
08-10 11:45:39.736: WARN/ActivityManager(104): Activity idle timeout for HistoryRecord{467060f0 org.ccast.contextproviders.androiddatacollector/.gui.UserInterfaceNew}
I think i found out what the problem is. I use services and broadcasts. One service sends a broadcast to another service. The BroadcastReceiver does a long task which includes a http connection. The Broadcast has an idle timeout of 10 secs and my task runs longer than 10 secs somtimes. So the BroadcastReceiver should start a new thread so that it can return immediately.