Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
526 views
in Technique[技术] by (71.8m points)

android - Activity idle timeout for HistoryRecord?

W/ActivityManager(   81): Launch timeout has expired, giving up wake lock!
W/ActivityManager(   81): Activity idle timeout for HistoryRecord

Does anyone know what reason would cause this happens? Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It means that the Activity cannot be displayed because it is still trying to complete execution; meanwhile the ActivityManager has timed out.

I had the same problem, and managed to resolve it by tidying up dependencies between Activity objects.

I would recommend starting up the debugger. Look at any 'services' that your Activity depends on (e.g. http client, parsers etc.) and check that it is not blocking. If you have 'services' that are shared between Activity objects, it might also be worth checking that they still exist in memory as GC may have destroyed any statically referenced service objects or objects cached as WeakReference objects.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...