摘要: [Background]ANR:Application Not Responding系统向用户显示一个对话框,这个对话框称作应用程序无响应(ANR:Application Not Responding)对话框。用户可以选择“等待”而让程序继续运行,也可以选择“强制关闭”。默认情况下,在android中Activity的最长执行时间是5秒,BroadcastReceiver的最长执行时间则是10秒。[Solution]1、找到SDK下的adb工具,连接手机2、输入命令adb bugreport,查看log信息3、在log中查找last anr,就可以非常清楚的看到最后一次ANR的详细信息 阅读全文
posted @ 2013-06-18 12:56 CY. 阅读(249) 评论(0) 推荐(0) 编辑
摘要: [Question]使用startActivityForResult,并没有启动设置中的activity,而是直接调用了onActivityReslut()方法。[Solution]查看Androidmanifest.xml中关于要启动的activity的声明是否有 android:launchMode="singleTask",把这句话去掉就OK了[Analyse]1、Activity 的加载模式(launchMode)有关,该属性可以在 AndroidManifest.xml 中设置。2、将其设为 singleInstance,经测试,所有需要传递或接收的 Activi 阅读全文
posted @ 2013-06-18 12:55 CY. 阅读(205) 评论(0) 推荐(0) 编辑
摘要: ORMLite[offical site]http://ormlite.com/GreenDAO[offical site]http://greendao-orm.com/ActiveAndroid[offical site]http://www.activeandroid.com/ORMDroid[Github]https://github.com/roscopeco/ormdroidDroidParts[offical site]http://droidparts.org/Androrm[offical site]http://androrm.the-pixelpla.net/ 阅读全文
posted @ 2013-06-18 12:48 CY. 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Clustering: An IntroductionWhat is Clustering?Clustering can be considered the most importantunsupervised learningproblem; so, as every other problem of this kind, it deals with finding astructurein a collection of unlabeled data.A loose definition of clustering could be “the process of organizing o 阅读全文
posted @ 2013-05-24 10:39 CY. 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 最近在学习一些数据挖掘的算法,看到了这个算法,也许这个算法对你来说很简单,但对我来说,我是一个初学者,我在网上翻看了很多资料,发现中文社区没有把这个问题讲得很全面很清楚的文章,所以,把我的学习笔记记录下来,分享给大家。在数据挖掘中,k-Means 算法是一种cluster analysis的算法,其主要是来计算数据聚集的算法,主要通过不断地取离种子点最近均值的算法。问题K-Means算法主要解决的问题如下图所示。我们可以看到,在图的左边有一些点,我们用肉眼可以看出来有四个点群,但是我们怎么通过计算机程序找出这几个点群来呢?于是就出现了我们的K-Means算法(Wikipedia链接)K-Mea 阅读全文
posted @ 2013-05-24 10:30 CY. 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.Eclipse Json Editor Plugin[offical page] http://sourceforge.net/projects/eclipsejsonedit/2.Coffee Bytes Java Folding[eclipse install link] http://eclipse.realjenius.com/update-site[how to use]http://stackoverflow.com/questions/6940199/how-to-use-coffee-bytes-code-folding3.Regex Util[eclipse instal 阅读全文
posted @ 2013-05-20 20:49 CY. 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Issue:We are done with Automation test cases with Windows Tester pro.we have plan to run theautomationin VM ware client's using Remote Desktop Connection, so that we can continue with our normal work.but automation expecting the mouse point and all test cases getting failed,so we can;'t able 阅读全文
posted @ 2013-05-13 12:57 CY. 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 当前常用的电子邮件协议有SMTP、POP3、IMAP4,它们都隶属于TCP/IP协议簇,默认状态下,分别通过TCP端口25、110和143建立连接。下面分别对其进行简单介绍。1、SMTP协议SMTP的全称是“Simple Mail Transfer Protocol”,即简单邮件传输协议。它是一组用于从源地址到目的地址传输邮件的规范,通过它来控制邮件的中转方式。SMTP 协议属于TCP/IP协议簇,它帮助每台计算机在发送或中转信件时找到下一个目的地。SMTP 服务器就是遵循SMTP协议的发送邮件服务器。SMTP认证,简单地说就是要求必须在提供了账户名和密码之后才可以登录 SMTP 服务器,这就 阅读全文
posted @ 2013-05-11 21:40 CY. 阅读(1092) 评论(0) 推荐(1) 编辑
摘要: Search engineis playing an important role in today's life style. We use search engine to get almost everything we need. Sometimes we don't know what to do if there's sudden electricity off or network down because we can't get on web for shopping or any kind communication. Since the s 阅读全文
posted @ 2013-01-18 11:58 CY. 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 1 引言 线程(thread)技术早在60年代就被提出,但真正应用多线程到操作系统中去,是在80年代中期,solaris是这方面的佼佼者。传统的Unix也支持线程的概念,但是在一个进程(process)中只允许有一个线程,这样多线程就意味着多进程。现在,多线程技术已经被许多操作系统所支持,包括Windows/NT,当然,也包括Linux。 为什么有了进程的概念后,还要再引入线程呢?使用多线程到底有哪些好处?什么的系统应该选用多线程?我们首先必须回答这些问题。 使用多线程的理由之一是和进程相比,它是一种非常"节俭"的多任务操作方式。我们知道,在Linux系统下,启动一个新的进 阅读全文
posted @ 2013-01-15 17:01 CY. 阅读(160) 评论(0) 推荐(0) 编辑