上一页 1 2 3 4 5 6 ··· 19 下一页

2016年2月22日

build配置

摘要: buildTypes { debug { // 显示Log buildConfigField "boolean", "LOG_DEBUG", "true" versionNameSuffix "-debug" minifyEnabled false zipAlignEnabled false shr 阅读全文

posted @ 2016-02-22 09:49 clarenceV1 阅读(307) 评论(0) 推荐(0) 编辑

利用 Android Gradle 瘦身 apk

摘要: http://devyang.me/blog/2014/11/11/li-yong-android-gradleshou-shen-apk/ apk瘦身一般有两条线, 去除无用的代码,例如引用一个比较大的lib,只使用了其中很少的功能。其他无用的代码可以想办法去掉 去除无用的资源文件,可能是第三方l 阅读全文

posted @ 2016-02-22 09:28 clarenceV1 阅读(181) 评论(0) 推荐(0) 编辑

Android Studio debug使用release的签名

摘要: 当我们在做微信微博sdk分享的时候调试非常麻烦,因为要使用对应的签名版本才能调用sdk成功。 当我们使用AndroidStudio的Gradle之后会很简单的解决这个问题。 1.我们把签名文件放到工程根目录下(这样做是为了保持路径的统一) 2.在Gradle中引入如下代码: //配置keystore 阅读全文

posted @ 2016-02-22 09:27 clarenceV1 阅读(274) 评论(0) 推荐(0) 编辑

2015年12月22日

Android Hotpatch系列之-给release包打Patch

摘要: 在默认debug包里面,是不对class做混淆的,所以Patch编写相对简单,但是应用在发布的时候都是release包,会对代码做混淆,此时class name ,field name,method name都会被混淆,这个时候改如何编写Patch? 在打release包时,在build/outp... 阅读全文

posted @ 2015-12-22 14:50 clarenceV1 阅读(597) 评论(0) 推荐(0) 编辑

Android Hotpatch系列之-项目介绍

摘要: 给现实Android apk打补丁,不用强迫客户升级客户端,悄悄的就把bug修复了,程序猿再也不用被老大骂娘了。 客户端例子实现:https://github.com/fengcunhan/Hotpatch-Sample 服务器简易实现:https://github.com/fengcunhan/H... 阅读全文

posted @ 2015-12-22 14:39 clarenceV1 阅读(846) 评论(0) 推荐(0) 编辑

MQTT协议的简单介绍和服务器的安装

摘要: 最近公司做的项目中有用到消息推送,经过多方面的筛选之后确定了使用MQTT协议,相对于XMPP,MQTT更加轻量级,并且占用用户很少的带宽。MQTT是IBM推出的一种针对移动终端设备的基于TCP/IP的发布/预订协议,可以连接大量的远程传感器和控制设备。MQTT的官网见:http://mqtt.org... 阅读全文

posted @ 2015-12-22 11:44 clarenceV1 阅读(272) 评论(0) 推荐(0) 编辑

2015年11月16日

Scrollview 嵌套 RecyclerView 及在Android 5.1版本滑动时 惯性消失问题

摘要: 标签:scrollviewandroid滑动嵌套scrollview 嵌套recyclerview 时,recyclerview不显示,这就需要我们自己计算recyclerview的高度,比如: ViewGroup.LayoutParams mParams = recyclerView.getLay... 阅读全文

posted @ 2015-11-16 17:13 clarenceV1 阅读(336) 评论(0) 推荐(0) 编辑

2015年11月10日

gradle 命令

摘要: gradle -v gradle clean gralde build gradle assembleDebug gradle assembleRelease gradle clean --refresh-dependencies 阅读全文

posted @ 2015-11-10 15:44 clarenceV1 阅读(220) 评论(0) 推荐(0) 编辑

2015年10月16日

git 命令学习

摘要: 初始化配置 C代码 #配置使用git仓库的人员姓名 git config --global user.name "Your Name Comes Here" #配置使用git仓库的人员email git config --global user.email you@yourdomain.exampl 阅读全文

posted @ 2015-10-16 15:42 clarenceV1 阅读(141) 评论(0) 推荐(0) 编辑

2015年6月11日

PHP、JAVA、C#、Object-C 通用的DES加密

摘要: PHP、JAVA、C#、Object-C 通用的DES加密PHP:123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263... 阅读全文

posted @ 2015-06-11 17:50 clarenceV1 阅读(182) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 19 下一页

导航