易截截图软件、单文件、免安装、纯绿色、仅160KB

Android: Requesting root access in your app

转帖:http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/
This snippet shows how root access can be requested inside an application in order to write a file into a place we do not have permission to access usually. Requesting root access will only work if your phone allows it, or it has been ‘rooted’ (hacked to allow superuser permissions).
view plaincopy to clipboardprint?
Process p;   
try {   
   // Preform su to get root privledges   
   p = Runtime.getRuntime().exec("su");    
  
   // Attempt to write a file to a root-only   
   DataOutputStream os = new DataOutputStream(p.getOutputStream());   
   os.writeBytes("echo \"Do I have root?\" >/system/sd/temporary.txt\n");   
  
   // Close the terminal   
   os.writeBytes("exit\n");   
   os.flush();   
   try {   
      p.waitFor();   
           if (p.exitValue() != 255) {   
              // TODO Code to run on success   
              toastMessage("root");   
           }   
           else {   
              &nb


相关文档:

Access数据库“自动编号”字段归零


原文:http://blog.sina.com.cn/s/blog_5fdcf5c90100fher.html
Access数据库“自动编号”字段归零
Access数据库“自动编号”数据类型是一个非常实用的类型,它可以很方便地帮助我们完成标识不同记录ID的工作。但是由于JET引擎的特性(SQL server使用T-SQL),当我们在Access数据库某张表中执行了删 ......

NTDLL.DLL): 0xC0000005: Access Violation 解决方法


在编写自己的dll程序的时候,先开始在调用dll的exe上出现(AVIDLL.DLL): 0xC0000005: Access Violation,不是很明白,为什么会出现这个问题。
在内部进行调试的时候发现,是调用了new操作符的缘故。
很不理解,在dll中调用new操作符会出现这么一个问题,网络上搜索,在微软msdn论坛(具体地址:http://forums.msdn.mic ......

Sql Server 和 Access 操作数据库结构Sql语句

新建表:
create table [表名]
(
[自动编号字段] int IDENTITY (1,1) PRIMARY KEY ,
[字段1] nVarChar(50) default '默认值' null ,
[字段2] ntext null ,
[字段3] datetime,
[字段4] money null ,
[字段5] int default 0,
[字段6] Decimal (12,4) default 0,
[字段7] image null ,
)
删除表:
Drop table [表 ......

Access 错了,还是我傻了

最近系统运行中发现Access 2003 版本中对待 Null 和 ‘’ (空字符)奇怪问题,重现步骤:
1、创建表tabTest ;
2、使用设计视图添加两个字段 ID ,col1
名称
类型
长度
说明
ID
Number
 
 
主键,自增
Col1
char
1

 
3、使用sql 添加如下数据
-- col1 字段设置为 null
INS ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号