Activity Timeout for HistoryRecord

I am having problems starting the application. From time to time the screen stays black and I have to wait 10 minutes. I am not getting an error and logcat says the following:

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}

+4
source share
2 answers

I think I found out what the problem is. I use services and broadcasts. One service sends a broadcast to another service. BroadcastReceiver performs a long task that involves an http connection. Broadcasting has an idle timeout of 10 seconds and my task lasts longer than 10 seconds. Therefore, the BroadcastReceiver must start a new stream so that it can return immediately.

+4
source

in fact, your application does a lot of things in the main topic for up to 10 seconds, maybe your hava crash application in some steps, but you did not notice this in logcat.so, please review your code and try to remove some code to make sure that your application is normal.Finally you can add your code back to pose a problem.

0
source

All Articles