懒码农。。。。。。

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2011年11月16日

摘要: 转自:http://blog.sina.com.cn/s/blog_78e3ae430100pxba.htmlandroid提供了一种新的类型:Parcel。本类被用作封装数据的容器,封装后的数据可以通过Intent或IPC传递。 除了基本类型以外,只有实现了Parcelable接口的类才能被放入Parcel中。Parcelable实现要点:需要实现三个东西1)writeToParcel 方法。该方法将类的数据写入外部提供的Parcel中.声明如下:writeToParcel (Parcel dest, int flags) 具体参数含义见javadoc2)describeContents方法 阅读全文
posted @ 2011-11-16 11:15 阿彬 阅读(42971) 评论(1) 推荐(3)

摘要: 转自:http://blog.csdn.net/blue_fire2008/article/details/6902825软件环境:JDK1.6Eclipse IDE for Java Developers Version: Indigo Service Release 1 相应压缩包为:eclipse-java-indigo-SR1-win32.zipAndroid SDK 相应压缩包为:android-sdk_r14-windows.zipAndroid开发插件压缩包为ADT-14.0.0.zip创建AVD,新建Android Project,运行应用程序居然出现如下所示错误: emula 阅读全文
posted @ 2011-11-16 10:52 阿彬 阅读(3570) 评论(1) 推荐(0)

摘要: ref:http://xusaomaiss.iteye.com/blog/378524 阅读全文
posted @ 2011-11-16 10:41 阿彬 阅读(176) 评论(0) 推荐(0)