上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 45 下一页
  2013年6月22日
摘要: 转自一个外文不错的博客,非常值得一看。http://www.vogella.com/articles/AndroidServices/article.htmlAndroid Service TutorialLarsVogelVersion 2.6Copyright © 2011, 2012, 2013 Lars Vogel22.05.2013Revision HistoryRevision 0.107.03.2011LarsVogelcreatedRevision 0.2 - 2.608.03.2011 - 22.05.2013LarsVogelbug fixed and enhan 阅读全文
posted @ 2013-06-22 11:59 lee0oo0 阅读(1128) 评论(0) 推荐(0) 编辑
  2013年6月16日
摘要: 1. 把androidannotations-X.X.X-api.jar 放在libs文件夹2. 把androidannotations-X.X.X.jar 放在文件夹compile-libs,1与2不能在同一目录3. 右键项目,选择Properties4. 确保java编译器是1.6或以上5. 前往java compiler 》Annotation Processing 选择 "enable annotation processing"6. 前往java compiler > Annotation Processing > Factory Path 添加JAR 阅读全文
posted @ 2013-06-16 20:17 lee0oo0 阅读(1162) 评论(0) 推荐(0) 编辑
  2013年6月13日
摘要: 通过更新项目,让项目自动生成build.xml文件。查看当前的已安装的sdk版本: android list target更新本项目,自动增加build.xml文件: android update project -n HttpTestDowns -t 11 -p /Users/Ari/Desktop/LEE/HttpTestDown-n对应的是项目名称-t就是我们之前查询的SDK版本对应的ID,大家根据自己的项目版本做出选择即可,我这个是android-8 所以用ID 1 .-p就是生成的路径以下深蓝色需要改动。。。命令后生成文件build.xml,自己创建一个名为custom_rule.. 阅读全文
posted @ 2013-06-13 12:31 lee0oo0 阅读(6677) 评论(1) 推荐(0) 编辑
  2013年6月12日
摘要: 1. ctrl + shift +r 搜索当前项目的文件2. ctrl + o 搜索当前文件的变量与方法名3. ctrl + e 获得当前在打开栏打开的文件4. ctrl + 2 双击需要重构的变量或者其他,按下ctrl + 2 , 选择"r" , 这是直接在键盘敲新的名称,将会替换掉 java文件中所有的旧名称5. alt + shift + r 搜索Eclipse所有的项目文件6. alt + shift + l 打开Eclipse的快捷键列表7. ctrl + shift + enter 光标仍在当前行,后面的回车8. al... 阅读全文
posted @ 2013-06-12 19:12 lee0oo0 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 把img.part1复制到test.jsp: cp img.part1 test.jpg打开文件:open test.jpg把地址的内容写到文件testapi-1.txtcurl "http://192.168.1.171:2018/api/get_list?si=1&row_count=2" -o testapi-1.txt命令行打开文件:more testapi-1.txt移除文件: rm (-i)是否移除询问移动文件: mv(-i)是否移动覆盖询问复制文件: cp列出当前路径文件信息: ls列出当前路径文件详细信息: ll查询命令行使用过的命令: histor 阅读全文
posted @ 2013-06-12 14:38 lee0oo0 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 1)读取网页$ curl linuxidc.com2)保存网页$ curl http://www.linuxidc.com > page.html 或者 curl -o page.html http://www.linuxidc.com3)使用的proxy服务器及其端口:-x$ curl -x 123.45.67.89:1080 -o page.html http://www.linuxidc.com4)由于zzh/nick下的文件名都是001,002...,201,下载下来的文件重名,后面的把前面的文件都给覆盖掉了~~~没关系,我们还有更狠的!curl -o #2_#1.jpg htt 阅读全文
posted @ 2013-06-12 14:35 lee0oo0 阅读(9212) 评论(0) 推荐(0) 编辑
摘要: cat主要有三大功能:1.一次显示整个文件。$ catfilename2.从键盘创建一个文件。$ cat>filename只能创建新文件,不能编辑已有文件.3.将几个文件合并为一个文件: $catfile1file2 > file参数:-n 或 --number 由 1 开始对所有输出的行数编号cat -n a.txt > b.txt-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号cat -b a.txt b.txt >> c.txt-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行-v 阅读全文
posted @ 2013-06-12 14:28 lee0oo0 阅读(10811) 评论(0) 推荐(1) 编辑
  2013年6月10日
摘要: 下面我将一下mac环境下的配置步骤:1.启动Terminal终端工具2.输入cd ~/ 进入当前用户的home目录3. 创建:touch .bash_profile4.打开并编辑:open .bash_profile5、在文件中写入以下内容:export PATH=${PATH}:/Users/sxpmg/Application/android-sdk-mac_x86/tools:/Users/sxpmg/Application/android-sdk-mac_x86/platform-tools其中:/Users/sxpmg/Application/android-sdk-mac_x86/t 阅读全文
posted @ 2013-06-10 22:45 lee0oo0 阅读(23276) 评论(1) 推荐(0) 编辑
  2013年6月6日
摘要: 转自:http://www.cnblogs.com/elleniou/archive/2012/05/17/2505630.htmlopenFileOutput()首先给大家介绍使用文件如何对数据进行存储,Activity提供了openFileOutput()方法可以用于把数据输出到文件中,具体的实现过程与在J2SE环境中保存数据到文件中是一样的。public void save() { try { FileOutputStream outStream=this.openFileOutput(“a.txt”,Context.MODE_WORLD_READABLE); outStream.wri 阅读全文
posted @ 2013-06-06 17:25 lee0oo0 阅读(3550) 评论(0) 推荐(0) 编辑
  2013年6月4日
摘要: 官方文档:http://www.open-open.com/jsoup/parsing-a-document.htm例子:OSchinatest.zip 阅读全文
posted @ 2013-06-04 13:59 lee0oo0 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 45 下一页