活动启动超时过期,放弃唤醒锁!和超时HistoryRecord [英] Activity Launch timeout has expired, giving up wake lock! and timeout for HistoryRecord

查看:3722
本文介绍了活动启动超时过期,放弃唤醒锁!和超时HistoryRecord的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序的一些警告,我使用JSoup的概念,我的应用程序工作在另一个系统,我不能这样做,为什么?

我收到以下错误

  1.03-26 15:11:14.296:WARN / ActivityManager(70):启动超时已过期,放弃唤醒锁!
2.03-26 15:11:14.893:WARN / ActivityManager(70):为HistoryRecord活动空闲超时{450e4348 com.list / .ListActivity}3.03-26 15:11:25.831:WARN / System.err的(407):的java.net.UnknownHostException:主机是没有得到解决:www.dzone.com:80
和我在SDK使用API​​ 2.2级8emulator ...


解决方案

为了安全起见:网络在模拟器启用? <大骨节病> F8 切换它,你可以在启动配置中禁用它。

如果您retrive连接连接连接= Jsoup.connect(...); ,而不是使用快捷键文档DOC = Jsoup.connect (...)获得(); 您可以设置超时时间获取文档之前的连接。请注意,Jsoup API不使用的getter / setter ...

不要忘了使用中的URL协议部分( HTTP HTTPS )。

I have some warning in my application and i use JSoup concept,my app is working in another system,i can't do that why ?

I am getting following errors

1.03-26 15:11:14.296: WARN/ActivityManager(70): Launch timeout has expired, giving up wake lock!
2.03-26 15:11:14.893: WARN/ActivityManager(70): Activity idle timeout for HistoryRecord{450e4348 com.list/.ListActivity}

3.03-26 15:11:25.831: WARN/System.err(407): java.net.UnknownHostException: Host is unresolved: www.dzone.com:80
and am using api 2.2 level 8emulator in sdk...

解决方案

Just to be safe: Network is enabled in the emulator? F8 toggles it, and you can disable it in the launch configuration.

If you retrive the connection Connection connection = Jsoup.connect(...); instead of using the shortcut Document doc = Jsoup.connect(...).get(); you can set the timeout for the connection before getting the document. Note that the Jsoup API doesn't use getter/setter...

And don't forget to use the protocol part (http or https) in the URL.

这篇关于活动启动超时过期,放弃唤醒锁!和超时HistoryRecord的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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