2015年9月29日

Android Studio导入github下载的工程

摘要: 现在从github上面现在的项目大部分都是Android Studio工程,那么问题来了,从github上面down一个工程下来,怎么导入android studio呢?对刚从eclipse转Android Studio的童鞋来说,可能会遇到各种问题。下面方法可以简单快速的将github上的项目导入... 阅读全文

posted @ 2015-09-29 14:49 Sun‘刺眼的博客 阅读(5285) 评论(2) 推荐(0)

Android清除本地数据缓存代码

摘要: 文章出处:http://www.cnblogs.com/rayray/p/3413673.html/* * 文 件 名: DataCleanManager.java * 描 述: 主要功能有清除内/外缓存,清除数据库,清除sharedPreference,清除files和清除自定义目录... 阅读全文

posted @ 2015-09-29 14:41 Sun‘刺眼的博客 阅读(397) 评论(0) 推荐(0)

内存缓存LruCache实现原理

摘要: 自己项目中一直都是用的开源的xUtils框架,包括BitmapUtils、 DbUtils、ViewUtils和HttpUtils四大模块,这四大模块都是项目中比较常用的。最近决定研究一下xUtils的源码,用了这么久总 得知道它的实现原理吧。我是先从先从BitmapUtils模块开始的。Bitma... 阅读全文

posted @ 2015-09-29 14:09 Sun‘刺眼的博客 阅读(652) 评论(0) 推荐(0)

Android -- Properties使用

摘要: import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Properties; public Properties loadConfig(Context context, Strin... 阅读全文

posted @ 2015-09-29 13:58 Sun‘刺眼的博客 阅读(357) 评论(0) 推荐(0)

四种更新UI的方法

摘要: 笔记:// 使用handler.post(Runnable)更新UI public void updateUI_Fun1() { new Thread() { public void run() { Handler handle... 阅读全文

posted @ 2015-09-29 13:43 Sun‘刺眼的博客 阅读(600) 评论(0) 推荐(0)

导航