代码改变世界

[Android Tips] 15. Enforcing spaces in string resources

2015-11-14 11:35 by shaobin0604, 197 阅读, 0 推荐, 收藏, 编辑
摘要:解决方案 使用双引号括起来 使用空格符的 unicode 编码 ref "Enforcing spaces in string resources" "How to put space character into a string name in XML?" "Strin... 阅读全文

Gradle Cheat Sheet

2015-11-05 17:22 by shaobin0604, 657 阅读, 0 推荐, 收藏, 编辑
摘要:加快编译速度 使用 gradle 2.4 及以上版本 加入如下配置 Add the following to the android section of your main app modules build.gradle to enable this: 解决 Gradle OutOfMemory 阅读全文

[Android Tips] 14. Using Proguard with Android without obfuscation

2015-10-27 09:50 by shaobin0604, 215 阅读, 0 推荐, 收藏, 编辑
摘要:Option REF "Using Proguard with Android without obfuscation" 阅读全文

Git Cheat Sheet

2015-07-28 10:44 by shaobin0604, 287 阅读, 0 推荐, 收藏, 编辑
摘要:Repository Add multiple remote repository $ git remote add Merge Undo git merge with conflicts $ git merge abort Archive $ git archive format zip outp 阅读全文

[Linux Tips] 1. 查看端口

2015-07-24 15:55 by shaobin0604, 208 阅读, 0 推荐, 收藏, 编辑
摘要:# 查看监听的端口 # netstat -lnp 阅读全文

在线工具收集

2015-07-17 10:40 by shaobin0604, 323 阅读, 0 推荐, 收藏, 编辑
摘要:Collections "在线开发工具集" Graph "Drawing.io" "ASCIIFlow Infinity" "Gliffy | Online Diagram and Flowchart Software" "ProcessOn" REPL "repl.it" "Free Online 阅读全文

[Sublime Text] How to Install Sublime Text on Ubuntu

2014-11-26 00:18 by shaobin0604, 375 阅读, 0 推荐, 收藏, 编辑
摘要:For Sublime-Text-2:sudo add-apt-repository ppa:webupd8team/sublime-text-2sudo apt-get updatesudo apt-get install sublime-textFor Sublime-Text-3:sudo a... 阅读全文

[Call Vibrator] How to Enable Outgoing Call Vibration without ROOT

2014-10-22 00:38 by shaobin0604, 1149 阅读, 0 推荐, 收藏, 编辑
摘要:Call Vibrator requires the radio log of phone to detect when outgoing call is answered. But since Android JellyBean(4.1), the permission for radio log... 阅读全文

[Android Tips] 13. How to Detect Tablet

2014-09-04 16:02 by shaobin0604, 173 阅读, 0 推荐, 收藏, 编辑
摘要:/** * 判断是否是平板 * @param context * @return */public static boolean isTablet(Context context) { return (context.getResources().getConfiguration().... 阅读全文

[Android Tips] 12. How to Create a Dash Line Shape

2014-09-02 10:51 by shaobin0604, 320 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文