12 2016 档案

摘要:1. Parcelable接口 Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must 阅读全文
posted @ 2016-12-07 11:12 wangchuan886 阅读(254) 评论(0) 推荐(0)
摘要:为什么方法数不能超过65535?搬上Dalvik工程师在SF上的回答,因为在Dalvik指令集里,调用方法的invoke-kind指令中,method reference index只给了16bits,最多能调用65535个方法,所以在生成dex文件的过程中,当方法数超过65535就会报错。细看指令 阅读全文
posted @ 2016-12-06 13:53 wangchuan886 阅读(449) 评论(0) 推荐(0)
摘要:组件化开发就是将一个app分成多个模块,每个模块都是一个组件(moudle),开发的过程中我们可以让这些组件相互以来或者单独调试部分组件以及其他的一些操作,但是最终发布的时候这些组件将组合并统一成一个apk,这就是组件化开发。 插件化开发和组件化开发略有不同,插件化开发时将整个app拆分成很多模块, 阅读全文
posted @ 2016-12-05 16:17 wangchuan886 阅读(312) 评论(0) 推荐(0)