2015年10月15日
摘要:
http://www.inthecheesefactory.com/blog/new-gradle-build-tools-with-gradle-2.5/en
阅读全文
posted @ 2015-10-15 17:27
燃烧的CO2
阅读(202)
推荐(0)
2013年11月5日
摘要:
最近做一个项目,中间有用到Android端使用Asp.Net写的Webservice。用了比较常用的Ksoap2类库。可以通过下面地址下载http://code.google.com/p/ksoap2-android/downloads/list?can=1&q=&colspec=Filename+Summary+Uploaded+Size+DownloadCount在Eclipse工程中引用这个jar包即可。 下面使用KSOAP2的步骤来编写调用WebService的客户端程序,代码如下: 1 //new 一个连接Webservice的类,这个类下面给出。webservice
阅读全文
posted @ 2013-11-05 22:00
燃烧的CO2
阅读(5230)
推荐(0)
2013年9月10日
摘要:
导入外部库时,运行时出现了java.lang.NoClassDefFoundError:错误。解决方法:把项目中外部库存放的位置(如libs)设置为Source Folder.来自为知笔记(Wiz)
阅读全文
posted @ 2013-09-10 01:07
燃烧的CO2
阅读(371)
推荐(0)
2013年4月23日
摘要:
异常:java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.原因:View是不能同时有两个parent的。builder.setView(linearLayout);其中linearLayout不要在Activity的onCreate()中赋值。改为在dialog中赋值就能解决此异常。LinearLayout linearLayout = (LinearLayout)findView
阅读全文
posted @ 2013-04-23 21:07
燃烧的CO2
阅读(882)
推荐(0)
2013年4月22日
摘要:
在onTouchEvent(MotionEventevent)中发现只有MotionEvent.ACTION_DOWN有效其它值无效,修改返回值为:return true;
阅读全文
posted @ 2013-04-22 22:36
燃烧的CO2
阅读(604)
推荐(0)
2012年12月27日
摘要:
在读取是总出现Image参数失效,八成是添加图片时出错在添加和读取Image图像时,最容易出错的是增加过程。在执行sql Insert语句时要注意,应该执行如下语句:string commandText = "Insert into ImageTable(......,Image)Values(......., @Image)";//其它表的列省了。sqlCommand.Parameters.Add("@Image", SqlDbType.Binary); // 图像文件数据,使用二进制格式。sqlCommand.Parameters["@Im
阅读全文
posted @ 2012-12-27 11:07
燃烧的CO2
阅读(266)
推荐(0)
2012年11月27日
摘要:
弄了一上午的android源码获取,总是不成功,在用repo init -u https://android.googlesource.com/platform/manifest这之后,repo sync总出现fatal: '../platform/abi/cpp.git' does not appear to be a git repositoryfatal: The remote end hung up unexpectedlyerror: Cannot fetch platform/abi/cppxds@xds-Ubuntu:~/bin/myandroid$ repo s
阅读全文
posted @ 2012-11-27 13:07
燃烧的CO2
阅读(6466)
推荐(0)
2012年9月21日
摘要:
要想正确计算sizeof(结构体)的大小,须理解数据对齐的概念。数据对齐分为自然对齐和强制对齐两种方式。自然对齐,即其内存地址必须是其类型本身的整数倍。结构体对齐到其中成员最大长度类型的整数倍。自然对齐应该遵循如下两条规则:1、数据成员对齐规则:在默认情况下,各成员变量存放的起始地址相对于结构的起始地址的偏移量:sizeof(类型)或其倍数。2、整体对齐规则。结构的总大小也有个约束条件,是最大sizeof(类型)的整数倍。除了自然对齐外,还有另外一种对齐方式——强制对齐#program pack(push)//保存对齐状态#program pack(n)// 定义结构对齐到n#program
阅读全文
posted @ 2012-09-21 21:35
燃烧的CO2
阅读(1703)
推荐(0)
2012年9月5日
摘要:
介绍一款桌面秀给大家——Rainmeter。个人觉得Rainmeter最大的优点就是能自己编写插件,当然,你也可以去一下网站搜索插件下载。国内:http://bbs.rainmeter.cn/国外:http://rainmeter.net/
阅读全文
posted @ 2012-09-05 19:13
燃烧的CO2
阅读(266)
推荐(0)
2012年9月4日
posted @ 2012-09-04 21:59
燃烧的CO2
阅读(174)
推荐(0)