随笔分类 -  Android

摘要:At the moment I believe that there is no any Android Developer who doesn't know aboutMaterial Designanymore since it officially becomes a design philo... 阅读全文
posted @ 2015-08-20 17:12 justin.wang 阅读(401) 评论(0) 推荐(0)
摘要:In Android Studio, if you wish to include any library to your application. You could just simply add a following line of dependency in module'sbuild.g... 阅读全文
posted @ 2015-08-20 17:07 justin.wang 阅读(376) 评论(0) 推荐(0)
摘要:In the passed Google Developer Summit Thailand, Google introduced us an Image Loader Library for Android developed by bumptech namedGlideas a library ... 阅读全文
posted @ 2015-08-20 17:06 justin.wang 阅读(428) 评论(0) 推荐(0)
摘要:One of the common problem we always meet in the world of Fragment is: although we couldcallstartActivityForResultdirectly from Nested Fragment but it ... 阅读全文
posted @ 2015-08-20 17:03 justin.wang 阅读(272) 评论(0) 推荐(0)
摘要:在现在安卓应用原生开发中,为了追求开发的效率以及移植的便利性,使用WebView作为业务内容展示与交互的主要载体是个不错的折中方案。那么在这种Hybrid(混合式) App中,难免就会遇到页面JS需要与Java相互调用,调用Java方法去做那部分网页JS不能完成的功能。网上的方法可以告诉我们这个时候... 阅读全文
posted @ 2015-02-06 14:56 justin.wang 阅读(324) 评论(0) 推荐(0)
摘要:我们在native与网页相结合开发的过程中,难免会遇到关于WebView一些共通的问题。就我目前开发过程中遇到的问题以及最后得到的优化方案都将在这里列举出来。有些是老生常谈,有些则是个人摸索得出解决方法。下面就是整理得到的些干货。1.加快HTML网页装载完成的速度默认情况html代码下载到WebVi... 阅读全文
posted @ 2015-02-06 14:18 justin.wang 阅读(531) 评论(0) 推荐(0)
摘要:The following tables show the release dates and key features of all Android operating system updates to date, listed chronologically by their official... 阅读全文
posted @ 2015-02-04 10:38 justin.wang 阅读(1558) 评论(0) 推荐(0)
摘要:Do's and Don'ts for Android development, by Futurice developersUse Gradle and its recommended project structurePut passwords and sensitive data in gra... 阅读全文
posted @ 2015-01-22 11:54 justin.wang 阅读(165) 评论(0) 推荐(0)
摘要:线程也是造成内存泄露的一个重要的源头。线程产生内存泄露的主要原因在于线程生命周期的不可控。1.看一下下面是否存在问题public class ThreadActivity extends Activity { public void onCreate(Bundle savedInstanc... 阅读全文
posted @ 2015-01-21 15:04 justin.wang 阅读(243) 评论(0) 推荐(0)
摘要:launchMode在多个Activity跳转的过程中扮演着重要的角色,它可以决定是否生成新的Activity实例,是否重用已存在的Activity实例,是否和其他Activity实例公用一个task里。这里简单介绍一下task的概念,task是一个具有栈结构的对象,一个task可以管理多个Acti... 阅读全文
posted @ 2015-01-21 15:03 justin.wang 阅读(157) 评论(0) 推荐(0)