2010年11月5日
摘要: forceStopPackage并不能被第三方程序调用,只能随系统build。使用条件:1)权限:<uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/>2)只能运行在系统进程:android:sharedUserId="android.uid.system"3)android.uid.system... 阅读全文
posted @ 2010-11-05 20:26 hhhaiya 阅读(1526) 评论(0) 推荐(0) 编辑
摘要: 快忙完了,陆续做一些工作上的回顾,一为分享,二为自己理清思路。有缘看到这博文的朋友,如果在这上面有好的理解,我非常渴望可以得到你的指点^ ^2.2不能使用restartPackage,这让任务管理器的开发者着实郁闷,一个用得这么普遍的功能说关就关了~有啥用意吗?google android framework team的工程师对这个的说明:Actually it does exactly what... 阅读全文
posted @ 2010-11-05 19:45 hhhaiya 阅读(2841) 评论(3) 推荐(1) 编辑
  2010年11月3日
摘要: 在http://sourcenav.sourceforge.net/download.html下载最新版本6.0,安装sudo ./configuresudo make install安装完成后运行 snavigator 提示[root@MagicLinux sourcenav-6.0]# snavigatorCan't find a usable tk.tcl in the following ... 阅读全文
posted @ 2010-11-03 20:54 hhhaiya 阅读(1403) 评论(0) 推荐(0) 编辑
  2010年9月30日
摘要: Ubuntu上Eclipse打开模拟器时,提示错误:could not create temp file for system NAND disk。原因是没有权限读写android临时文件: /tmp/android,这个folder位于根目录下。随后试图用chmod来改变权限,又提示:chmod:changing permissions of '' :operatin not permitted... 阅读全文
posted @ 2010-09-30 17:50 hhhaiya 阅读(958) 评论(0) 推荐(0) 编辑
  2010年9月29日
摘要: 在1.6的calendar里,当系统语言改变时,calendar widget上的语言并没有随着改变。其实这个bug在android的很多系统程序里都会出现。只要不是把string提取出来的,就都要响应“android.intent.action.CONFIGURATION_CHANGED”,为UI做一次update。这个bug在HTC的magic上同样会出现。在1.6的S... 阅读全文
posted @ 2010-09-29 20:21 hhhaiya 阅读(4522) 评论(0) 推荐(0) 编辑