2016年3月15日

Android 防内存泄露handler

摘要: Android 防内存泄露handler1.使用弱引用 WeakRefHander /** * 作者: allen on 15/11/24.感谢开源作者https://coding.net/u/coding/p/Coding-Android/git */ ... 阅读全文

posted @ 2016-03-15 23:16 AllenCoder 阅读(281) 评论(0) 推荐(0) 编辑

2016年3月11日

android canvas 绘图笔记

摘要: android canvas 绘图笔记1.PathEffect类画虚线 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setStyle(Paint.Style.STROKE); p.setColor(Colo... 阅读全文

posted @ 2016-03-11 10:21 AllenCoder 阅读(317) 评论(0) 推荐(0) 编辑

2016年2月23日

Android Studio compile error : enum constant INSTANT_RUN_REPLACEMENT does not exist in class

摘要: Error:Could not read entry ‘:app:processJylcDebugManifest’ from cache taskArtifacts.bin (/Users/allen/AndroidStudioProjects/juyoulicai_andr... 阅读全文

posted @ 2016-02-23 20:55 AllenCoder 阅读(380) 评论(0) 推荐(0) 编辑

2015年12月26日

android Studio 配置LUA 开发环境

摘要: android Studio 配置 LUA 开发环境关于Android LUA资料 android如何调用lua? Android lua 教程 Lua官网 lua语言解释 Lua 5.1 参考手册 Android Lu... 阅读全文

posted @ 2015-12-26 17:12 AllenCoder 阅读(2679) 评论(0) 推荐(0) 编辑

2015年12月16日

Android 性能优化之(1)-MAT使用教程

摘要: Android 性能优化之——MAT使用教程官方地址参考地址 1.Eclipse安装Allocation tracker插件 MAT是一个Eclipse插件,同时也有单独的RCP客户端。 如果安装Eclipse插件(更方便使用,本文介绍的是使用E... 阅读全文

posted @ 2015-12-16 23:11 AllenCoder 阅读(357) 评论(0) 推荐(0) 编辑

2015年12月11日

shareSdk打包报错解决办法

摘要: android sharesdk Expected resource of type id [ResourceType]最近更新完As之后,重新编译了项目,发现项目中引入的sharesdk报错,解决办法如下1. 新建res/values/ids.xml 2 1 1... 阅读全文

posted @ 2015-12-11 15:31 AllenCoder 阅读(287) 评论(0) 推荐(0) 编辑

2015年11月27日

Android 事件分发机制

摘要: Android 事件分发机制 当前activity 先截获ontouch 事件 dispatchTouchEvent 再将事件传递给最外层的View 顶层View截获到时间 dispatchTouchEvent 然后调用onInterceptTouchEvent... 阅读全文

posted @ 2015-11-27 16:54 AllenCoder 阅读(146) 评论(0) 推荐(0) 编辑

2015年10月22日

Android studio gradle 生成字段属性值

摘要: gradle 生成字段属性值 在工程目录下配置gradle.properties文件: # Project-wide Gradle settings.# IDE (e.g. Android Studio) users:# Gradle settings configured... 阅读全文

posted @ 2015-10-22 18:46 AllenCoder 阅读(802) 评论(0) 推荐(0) 编辑

android 字符串加解密算法

摘要: android 字符串加解密算法/***加密**/ private String encryptPassword(String clearText) { try { DESKeySpec keySpec = new DESKeySpec( ... 阅读全文

posted @ 2015-10-22 15:11 AllenCoder 阅读(1384) 评论(0) 推荐(0) 编辑

2015年9月23日

Android shrinkResources true 引发的血案

摘要: Android shrinkResources true 引发的血案今天在众测我的App,发现我在代码里面动态调去取之前的图片资源时 一直报 Resources$NotFoundException: Resource ID #0x4 异常 。 但是我在正常debug情况下却没有这... 阅读全文

posted @ 2015-09-23 23:50 AllenCoder 阅读(1891) 评论(0) 推荐(0) 编辑

导航