摘要: 更换环境之后 ,intellij idea 提示找不到默认的activity。 而查看源代码。 在代码中明显已经设置了默认activity了。 后来发现。程序中有个库工程中的AndroidMenifest文件中也设置了默认activity。 这样的话系统中就存在着两个 default activity。 而这个时候intellij idea就会提示错误了。 但是这个... 阅读全文
posted @ 2015-03-20 11:01 zooc 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 一个state的基本构造,processMessage 以及可选的enter exit 和getName。 processMessager是用于处理数据。 enter 和exit 则是类似于 面向编程的构造和析构方法。 * A state is a State object and must implement * processMessage and optionally enter/e... 阅读全文
posted @ 2015-02-10 12:54 zooc 阅读(464) 评论(0) 推荐(0) 编辑
摘要: static final int BASE =Protocol.BASE_WIFI; 131072 static final intCMD_START_SUPPLICANT = BASE +11; 131083 static final intCMD_STOP_SUPPLICANT = BASE +12; 131084 static final intCMD_START_DRIVE... 阅读全文
posted @ 2015-02-09 19:27 zooc 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: /** * Wi-Fi is currently being disabled. The state will change to {@link #WIFI_STATE_DISABLED} if * it finishes successfully. * * @see #WIFI_STATE_CHANGED_ACTION * @see #getWifiStat... 阅读全文
posted @ 2015-02-09 17:44 zooc 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: String ACTION_AIRPLANE_MODE_CHANGED Broadcast Action: The user has switched the phone into or out of Airplane Mode. String ACTION_ALL_APPS Activity Action: List all available applications ... 阅读全文
posted @ 2015-01-30 12:49 zooc 阅读(945) 评论(0) 推荐(0) 编辑
摘要: the first blog from windows live writer… 阅读全文
posted @ 2015-01-06 10:37 zooc 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 100Requestion action wasinitiated; expect another replybefore proceeding with a new command.200Requested action has been successfully completed400The ... 阅读全文
posted @ 2015-01-05 15:04 zooc 阅读(261) 评论(0) 推荐(0) 编辑
摘要: ctrl + R:替换(这一点和office 中的ctrl + H不一样)ctrl + alt + L:自动整理代码(不会整理注释文件)ctrl + alt:(自动导入包,不能批量导入,有人评论批量导入可能会导致导入错误的包,但是这个有更好的选择,在批量导入之后弹出清单进行确认,遇到同名包的话进行弹... 阅读全文
posted @ 2014-10-25 11:07 zooc 阅读(273) 评论(3) 推荐(0) 编辑
摘要: gvim的快捷键很多,很难记全,但是入门初期应该找过几种基本的命令下面结合自己常用到的介绍下光标跳转:0:行首$:行尾e:下一个单词的结尾w:下一个单词的开头b:上一个单词H:当前页面的开头M:当前页面的中间L:当前页面的结尾h:上一个字符j:下一行k:上一行l:下一个字符to be continu... 阅读全文
posted @ 2014-10-15 22:21 zooc 阅读(4385) 评论(0) 推荐(0) 编辑
摘要: 很多的时候需要使用locate去定位文件,找到了文件之后接下来就是使用相应的文本编辑工具如gvim进行打开。这个时候最烦心的就是去复制一大长串的地址了。如果能让定位和打开一体操作就最好了,这就需要使用管道进行操作。在使用管道时需要解决两个问题:1、locate定位过程中往往会找到若干个文件,如果仅向... 阅读全文
posted @ 2014-09-26 12:23 zooc 阅读(491) 评论(1) 推荐(0) 编辑