WARN / ActivityManager(78):启动超时已过期,放弃唤醒锁! - >这是什么 [英] WARN/ActivityManager(78): Launch timeout has expired, giving up wake lock! -> what is this

查看:347
本文介绍了WARN / ActivityManager(78):启动超时已过期,放弃唤醒锁! - >这是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所示运行我的小应用程序,当我得到这个错误:

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

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

这是继我加入这行到我的清单文件:

It came after I added this line to my manifest file:

<uses-permission android:name="android.permission.INTERNET" />

我补充该行是为了让我的应用程序的专项能力连接到一个ServerSocket的原因。阅读另一个论坛上,该线将解决我的问题(不能够连接)。而且也可能有,但不是我收到其他错误。

The reason I added that line was to get my app the abillity to connect to a serversocket. Read on another forum that the line would solve my problem (not being able to connect). And well it might have but instead I get that other error.

我是全新到Android所以不明白很多的机器人具体的东西怎么回事。有一些Java的经验,但。

I'm totally new to android so don't understand much of that android specific stuff going on. Have some Java experience though.

任何帮助AP preciated(:

Any help appreciated (:

BTW:不知道我是否应该已经发布了一些我的code

BTW: not sure if I should have posted some of my code?

推荐答案

此错误意味着你的活动正在长启动。如果你是做了很多处理的UI线程,杀死的Andr​​oid应用程序。您应该使用AsyncTask的任何处理密集型的东西。

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.

如果你可以发布您的code和你的SDK版本,我可以提供更多的帮助。还有计算器上关于这个另一个线程。 活动空闲超时时间为HistoryRecord?

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?

这篇关于WARN / ActivityManager(78):启动超时已过期,放弃唤醒锁! - &GT;这是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆