代码改变世界

随笔档案-2010年11月

SingleTask Activity可能会收不到Intent

2010-11-26 17:02 by cppguy, 534 阅读, 收藏,
摘要: 当一个Activity lauchmode声明为SingleTask的时候,如果有其他的Ativity坐落在它的上面,这个Activity会收不到Intent。 t is not in position to handle the intent, and the intent is dropped. (Even though the intent is dropped, its arrival ... 阅读全文

获取android手机Root权限

2010-11-19 10:33 by cppguy, 1172 阅读, 收藏,
摘要: Tidy up step by step rooting 1) Getting rageagainstthecage-arm5.bin http://stealth.openwall.net/xSports/...nstTheCage.tgz 2) Getting Superuser.apk, busybox,su http://forum.xda-developers.com/showthrea... 阅读全文

Convert Resid to Drawable

2010-11-18 20:18 by cppguy, 465 阅读, 收藏,
摘要: this.getResources().getDrawabel(R.drawable.x) 阅读全文

GoogleDoc打不开

2010-11-08 15:29 by cppguy, 3208 阅读, 收藏,
摘要: 在hosts里添加Google Docs的解析IP直接绕过DNS查询,就能正常使用https的Google Docs了。hosts文件的位置:1、windows:C:\Windows\System32\drivers\etc\hosts2、Linux:/etc/hosts用记事本打开hosts文件,下面这些内容添加到hosts文件的顶部:Java代码209.85.225.101docs.googl... 阅读全文

在ubuntu10.04安装java5和java6

2010-11-08 12:40 by cppguy, 560 阅读, 收藏,
摘要: Java5:早在ubuntu 9.10中,ubuntu就已经去除了对sun-java5-jdk的支持,但是为了进行android的开发,又必须安装sun-java5-jdk。那么在享受ubuntu 10.04好处的同时,如何来进行sun-java5-jdk的安装那。经过多次的摸索,下面是一个方案: 1.编辑/etc/apt/sources.list文件,将安装源更改为ubuntu 9.04的安装源为:deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiversedeb http://archive 阅读全文

VMware虚拟机文件损坏修复方法

2010-11-08 12:36 by cppguy, 8729 阅读, 收藏,
摘要: Cannot open the disk 'E:\VMWARE_XP\Windows XP Professional.vmdk' or one of the snapshot disks it depends on.Reason: The specified virtual disk need repair.尝试各种网上已有方法无效。解决方法:即然已有方法无效,那就自己探索了,先看一下原虚拟机文件... 阅读全文
点击右上角即可分享
微信分享提示