Android launcher3 开发环境搭建
刚好最近lollipop的Launcher源码也更新了。和之前的Launcher3会有一些区别,不过不大,倒入过程大同小异。
Do it yourself
- Use Git to pull down the latest Launcher 3 source:
git clone https://android.googlesource.com/platform/packages/apps/Launcher3
- Import existing code into Eclipse (Android Project from Existing Code)
- Change the project build target to API level 19
- Add Android support libraries
- Build protocol buffers JAR from AOSP source. You will actually need to build the protoc binary as well. You need to know how to use ‘make’ have gcc available for the protoc binary, and Maven for the JAR: https://android.googlesource.com/pla…l/protobuf.git
- Use protoc binary built from step above to generate the BackupProtos.java file:
protoc –javanano_out=src/ -I protos protos/backup.proto
- Rename the Android package (Android Tools->Rename Application Package) to one of your choice
- Add min SDK in a new ‘uses-sdk’ element in AndroidManifest.xml (works down to API level 17 without too many complaints in Lint, obviously stick to 19 to play it safe).
- Clean and run. BIND APP WIDGETS error can be ignored
Fabio Lo Brutto:
https://plus.google.com/+FabioLoBrutto/posts/KJeyKMBHVT7
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。