Vysor是一个Chrome应用,它可以将Android设备的屏幕1:1投射到桌面,并且支持操作,非常流畅。简单来说,Vysor实现了基于真实设备的“Android模拟器”。
所以好处也显而易见了,流畅的操作体验和真实的设备,足以替代Android模拟器进行Android开发了。
它长这个样子:
Vysor是一个Chrome应用,它可以将Android设备的屏幕1:1投射到桌面,并且支持操作,非常流畅。简单来说,Vysor实现了基于真实设备的“Android模拟器”。
所以好处也显而易见了,流畅的操作体验和真实的设备,足以替代Android模拟器进行Android开发了。
它长这个样子:

Rainbow above Beijing

TAI KOO LI
I met an error today and I think I should record this. When run debug, gradle throw an error:
1 | Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: |
When google the error log, I found a command in StackOverflow.
1 | ./gradlew assembleDebug --info |
Run this command to see complete information and I notice this line:
1 | <generated>:0: error: invalid symbol: 'switch' |
So I think there was a typo and search switch in workspace. Finally I found a attribute definition where using switch for an enum name. I changed that key and problem solved.
The important thing I want to say is that command, if there is a time that I can not location the error in gradle message, I’ll remember that. And, does keyword like switch can not be used for key of attributes?

Just for mark.
KDViewPager是基于UIPageViewController实现的类似Android ViewPager的控件,用于展示可以滑动的一系列UIViewController,和其他类似控件不同的是,KDViewPager并没有封装其他的类似Tab之类的Control控件,同时支持已任意方式添加到任意View中,所以更加灵活。
先看一下Demo:
CocoaPods算是iOS开发者的必须课了,是非常常用的服务,这篇文章简单总结一下Pods的安装和基本使用。
Pods使用Ruby开发,用Gems管理。工作的基本原理是基于Github仓库搭建开源项目的repo源,使用时通过git将repo源clone到本地,repo中包含开源项目的Git仓库地址,使用Pods导入时就是使用地址将开源项目clone到项目目录。
Pods使用Gems安装,不过在国内受到GFW的限制,所以需要将Gems的源改成国内的。
因为Android App经常要做成iOS的样子,FragmentTabHost也算是比较常用的控件了(不考虑Google打脸的新TabHost控件)。在使用FragmentTabHost时,我们可能会遇到这种需求,就是将某个Tab进行替换,比如“我”这个Tab,如果是未登录状态就需要切换成未登录状态的页面。
本文就讲一下如何实现FragmentTabHost中对Fragment进行替换。先看下效果:
]
看到这个标题你可能会笑,Android手势密码的文章打印出来都可以绕地球好几圈了,还有什么好说的?当然有。绝大部分的文章都是写怎么实现9点手势密码,有个重要的地方,都没涉及到,那就是怎样触发手势密码。
You will think this post as a joke, as there are so many posts can be found by Google. What makes this post special? Exactly. Most of the other posts show you how to create 9-point gesture view, but miss a very important point about how to trigger it.
我们要实现的需求如下:(前提是已经设置并保持了手势密码)
We are going to implement these requirements: (Gesture password has be set for premise)
应用启动状态,用户按Home键使App进入后台,或者切换到其他应用使本应用进入后台,或者锁屏。这几种情况用户都不会再操作这个App,超过一段时间之后再打开App,弹出验证手势密码的页面,输入正确进入之前的页面。(如果时间过长导致应用被杀死,应该属于第一点需求)