2013年10月29日

摘要: 1.错误1: android mk文件没有定义 $ ndk-buildAndroid NDK: Your APP_BUILD_SCRIPT points to an unknown file: /cygdrive/e/heima5/day2/code/ndkhelloworld/jni/Android.mk/cygdrive/d/TDDownload/android-ndk-r6-windows/android-ndk-r6/build/core/add-application.mk:116: *** Android NDK: Aborting... . Stop.错误2: c代码编译不通过$ 阅读全文
posted @ 2013-10-29 23:08 lvbuwei2010 阅读(528) 评论(0) 推荐(0)

2013年10月25日

摘要: Creative - producing or using original and unusual ideasComputer literate - familiarity with computers and how they work.Flexible - able to change or be changed easily according to the situationPressure - the act of trying to make someone else do something by arguing, persuading, etc. 阅读全文
posted @ 2013-10-25 23:10 lvbuwei2010 阅读(169) 评论(0) 推荐(0)

2013年10月24日

摘要: 1.进程的定义,进程的调度;2.线程的定义,多线程出错的描述;3.数组和链表的定义和区别;4.对链表的反序;5.tree高度的计算;6.设计一个存储系统,可以从客户端进行上传文件;7.从长度为n的数组中随机选出m个元素; 阅读全文
posted @ 2013-10-24 22:42 lvbuwei2010 阅读(102) 评论(0) 推荐(0)

2013年10月23日

摘要: 1.瀑布流https://github.com/maurycyw/StaggeredGridView2.绘制圆形http://blog.sina.com.cn/s/blog_783ede0301012im3.html 阅读全文
posted @ 2013-10-23 00:13 lvbuwei2010 阅读(97) 评论(0) 推荐(0)

2013年10月8日

摘要: 1.在cygwin中给ndk-build工具设置环境变量,使其在任何目录下可以被调用:在cygwin的安装目录:C:\cygwin下找到etc目录,再打开其中的profile文件,再其path行增加ndk工具所在目录(cygdrive/c/Eric/Android_Dev_Tools/android-ndk-r9,注意,linux中的环境变量分割符号不是分号而是冒号:)。 阅读全文
posted @ 2013-10-08 21:55 lvbuwei2010 阅读(114) 评论(0) 推荐(0)

2013年9月26日

摘要: 1.在manifest的配置:首先,manifest的下层级中配置:其次,在application的下一层级中配置:2.新建一个TestCase,记得要继承AndroidTestCase,才能有getContext()来获取当前的上下文变量,这在android测试中很重要的,因为很多的android api都需要context。 阅读全文
posted @ 2013-09-26 22:03 lvbuwei2010 阅读(219) 评论(0) 推荐(0)

2013年9月25日

摘要: 1.select 语句 selectnumber,namefromtable1;//从“table1”中选择“number”,“name”两行; select*fromtable1;//从“table1”中选择所有行; select*fromtable1wherename = "麦当劳麦乐送";//从“table1”中选择name 为“麦当劳麦乐送”的纪录; select*fromtable1wherenamelike"麦%";//模糊查询:从“table1”中选择name以“麦”开始的纪录(“%麦%”;”%麦“); select*fromtable1w 阅读全文
posted @ 2013-09-25 16:50 lvbuwei2010 阅读(172) 评论(0) 推荐(0)

2013年9月13日

摘要: 1.类变量初始化: class Price{ final static Price INSTANCE = new Price(2.8); static double initPrice = 20; double currentPrice ; public Price (double discount) { currentPrice = initPrice - discount; }}public class PriceTest{ public static void main(String[] args){ System.out.println(Price.INSTANCE.curre... 阅读全文
posted @ 2013-09-13 23:55 lvbuwei2010 阅读(146) 评论(0) 推荐(0)

2013年7月20日

摘要: 调用webservice总结:1.加入第三方的jar包 Ksoap2-android-XXX2.访问响应的webservice的网站,查看响应的信息,得到nameSpace,methodName,url,soapAction3.如果request信息还有带有SoapHander的。那么就要封装:依据参数封装: Element[] header = new Element[1]; header[0] = new Element().createElement(nameSpace, "SoapHeader"); Element userName = new... 阅读全文
posted @ 2013-07-20 13:12 lvbuwei2010 阅读(530) 评论(1) 推荐(0)

2013年7月13日

摘要: 1.IOS模拟器第一次打开需要进入“设置”中关掉"Auto-Capitalization"选项.2.NSInteger转化NSString类型:[NSStringstringWithFormat:@"%d", NSInteger];NSString转化NSInteger类型:NSInteger = [NSStringintValue]; 阅读全文
posted @ 2013-07-13 00:42 lvbuwei2010 阅读(144) 评论(0) 推荐(0)