- 博客(14)
- 资源 (8)
- 收藏
- 关注
原创 Ubuntu Gnome 14.04 tracker-extract占用内存太高
国庆换了一台Dell 灵悦15R,4G内存+core i5 4210de
2014-10-13 10:35:09
9134
原创 分析java.lang.NullPointerException thrown in RelativeLayout measure()
不难看出,在RelativeLayout被add/attach到父View之前mLayoutParams成员为空,调用measure方法将导致上图标注处代码抛出空指针异常。解决方案有两种a) 在measure之前显式设置LayoutParams(代表着对父View的Layout请求,必须是父View的内部LayoutParams类型)b) 自动设置LayoutParams的inflate方式
2014-05-16 18:16:51
11984
1
原创 Android命令行获取WiFi列表以及参数
Android如何通过命令行获取WiFi列表以及参数:一个工具加一个参数:wpa_cli => The command line interface of wpa_supplicantwifi interface socket目录一般Android习题WiFi所对应着的interface名为wlan0,若不一样请参看init.{xxx}.rc中启动wpa_supplic
2014-05-05 11:39:58
20386
原创 Android开发debug时防止后台进程因超时被杀掉
本人之前一直在做Android/Linux OS的底层开发工作。近来转行至互联网行业,写Android Servi
2014-04-23 11:35:40
7315
原创 关于Android WIFI扫猫周期
Wifi scan period:1) if not active connection present, the "wifi.supplicant_scan_interval" property from build.prop is used.2) if the phone establishes a WI-FI connection already, then the scanni
2014-04-23 11:10:16
7907
原创 Git让gitignore生效
git rm -r --cached .git add .git commit -m "fixed untracked files"
2014-04-14 09:38:38
18997
原创 ubuntu 13.10安装后认证企业wifi网络出错的解决方法
症状:在网络管理面板中A workaround based on keith (alclsdkrak1) workaround in #1168293 :Enter network details as normal using the network manager but select a random certificate so the dialog is not disp
2014-04-11 10:10:43
3436
原创 详解Android SurfaceFinger服务
概述SurfaceFlinger是android平台的显示服务,为移动互联网时代的内容呈现和交互提供了平台级的基础。本文以Android4.2的源代码和架构为例,详细介绍SurfaceFlinger服务。相关类图启动SurfaceFlinger服务的二进制程序位于frameworks/native/cmds/surfaceflinger下:“
2013-10-16 21:06:53
10759
2
转载 Some jar(v4 support, ActionBarSherlock and etc.) import error in Android Studio
How to configure ActionBarSherlock with Intellij IDEA[Original URL:http://android-wtf.com/2012/09/how-to-configure-actionbarsherlock-with-intellij-idea/]11 RepliesIntroductionThis tu
2013-05-19 15:29:59
2004
原创 Synergy can't work on Fedora 18
unexpected behavior:Set fedora 18 as synergy server(share its own keyboard & mouse), use a windows PC to connect it, can't connect succesfullyReason:the tcp port 24800 default is not ope
2013-05-15 22:51:42
870
转载 [转]关于程序语言
多学几种语言我今天想说其实就是,没有任何一种语言值得你用毕生的精力去“精通”它。“精通”其实代表着“脑残”。你必须对每种语言都带有一定的怀疑态度,而不是完全的拥抱它。每个人都应该学习多种语言,这样才不至于让自己的思想受到单一语言的约束,而没法接受新的,更加先进的思想。这就像每个人都应该学会至少一门外语一样,否则你就深陷于自己民族的思维方式。有时候这种民族传统的思想会让你深陷无须有的痛苦,却无法
2013-04-18 10:16:43
816
原创 [Git]setting an existed local branch to track a remote branch
In Git version 1.7.x:git br --set-upstream {local_branch} {remote}/{remote_branch}In Git Version 1.8.x:git branch -u {remote}/{remote_branch} {local_branch}
2013-04-17 09:26:08
1118
原创 Vim终极配置
致广大的程序猿:下载https://github.com/spf13/spf13-vim之后,运行库根目录下的:bootstrap.sh该配置相当之强大和全面。
2013-04-12 23:51:55
871
原创 Ubuntu 12.10 Android Build System[aapt can't be executed]
最近迁移编译环境到Ubuntu Linux下,发现aapt无法执行。最后发现该静态链接程序是基于32bit lib的。apt-get --no-install-recommends install ia32-libs-multiarch后,该问题解决,
2013-04-10 21:03:40
784
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人