摘要: 先要到设置里关联私钥 配置user.name等 然后在eclipse下配置config文件 其实.git文件夹下就有这个文件,内容如下 然后就可以比较自动的pull了。 注意在项目目录下创建.gitignore文件,内容为 就可以在eclipse的基础上忽略更多了. 如果push时候报错无法连接任何 阅读全文
posted @ 2017-08-10 11:24 BlogCommunicator 阅读(155) 评论(0) 推荐(0) 编辑
摘要: public class MainApplication extends Application{ /** * 全局的上下文 */ private static Context mContext; @Override public void onCreate() { super.onCreate(); Log.e... 阅读全文
posted @ 2017-08-10 10:06 BlogCommunicator 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.强行停止一个应用 首先需要权限 非源码环境使用反射来完成操作 读取系统中的一些属性: 阅读全文
posted @ 2017-07-22 11:59 BlogCommunicator 阅读(210) 评论(0) 推荐(0) 编辑
摘要: linux驱动相关的makefile知识: makefile文件可以这么写: obj-m := module.o modulee-objs := file1.o file2.o 执行此makefile的命令可以这么写: make -C ~/kernel-2.6 M='pwd' modules 其中- 阅读全文
posted @ 2017-07-08 11:48 BlogCommunicator 阅读(87) 评论(0) 推荐(0) 编辑
摘要: BaseAdapter在调用notifyDataSetChanged()方法后,GridView就刷新了,下面从源码角度对此原理进行剖析。 首先进到BaseAdapter中查看其notifyDataSetChanged()方法,发现它调用了DataSetObservable的notifyChange 阅读全文
posted @ 2017-05-17 17:32 BlogCommunicator 阅读(686) 评论(0) 推荐(1) 编辑
摘要: 转自:http://gundumw100.iteye.com/blog/2160467 阅读全文
posted @ 2017-04-20 15:42 BlogCommunicator 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://bbs.chinaunix.net/thread-2321462-3-1.html 其实 eval 在函数式语言里面很常见。LISP 系语言的解释器,最终执行的是一个 apply - eval 递归(有人也喜欢叫 apply - eval 循环,但是实际上是递归求值)。所以 阅读全文
posted @ 2017-04-07 14:51 BlogCommunicator 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 打开某应用: am start -n 包名/.主Activity 查看dpi等: getprop | grep ro 列出安装在这台机器上的应用包名 adb shell pm list packages 删除指定应用 adb uninstall 包名 查看activity信息 (shell下)dum 阅读全文
posted @ 2017-01-11 10:41 BlogCommunicator 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 判断网络情况: 判断手机是否安装了某个应用: 判断文字相似度: 判断外存是否可用: 得到屏幕长宽(单位pix): 得到外存或者sd存储的路径: 得到当前api的level: 阅读全文
posted @ 2017-01-06 11:41 BlogCommunicator 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 写字节到文件: 随机读取文件的字节: 读取文件的全部字节: 从文件中读取出字符串: 释放closable资源: 写字符串到文件: 有BOM的utf-8文件头: 释放closable资源的方法: 阅读全文
posted @ 2017-01-06 11:22 BlogCommunicator 阅读(253) 评论(0) 推荐(0) 编辑