WARN/ActivityManager(78): Launch timeout has expired, giving up wake lock! -> what is this

前端 未结 4 1704
别那么骄傲
别那么骄傲 2020-12-11 13:41

As the title indicates i get this \"error\" when running my little app:

WARN/ActivityManager(78): Launch timeout has expired, giving up wake lock!

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 14:07

    This error means your Activity is taking to long to start. If you are doing a lot of processing on the UI thread, Android kills your application. You should use AsyncTask for any processing intensive stuff.

    If you could post your code and your SDK version, I can provide more help. There is also another thread on stackoverflow about this. Activity idle timeout for HistoryRecord?

提交回复
热议问题