based on https://github.com/ivanpeng/DevsmartLib-Android