08 2011 档案

摘要:NSString *file = [[NSBundle mainBundle] pathForResource:@”7,0″ ofType:@”png”]; NSString *url = [NSString stringWithFormat:@"<html> <head><script type=\"text/javascript\">document.ontouchmove = function(e){ e.preventDefault();} </script></head><style> 阅读全文
posted @ 2011-08-31 15:42 老码农豆豆 阅读(668) 评论(0) 推荐(0)
摘要:NSString*homeDirectoryPath =NSHomeDirectory(); NSString*imagePath = [homeDirectoryPathstringByAppendingString:@"/graph.png"]; NSLog(@"Image: %@", imagePath); if(![[NSFileManagerdefaultManager]fileExistsAtPath:imagePathisDirectory:NULL]) { UIImageView* myImageView = [[UIImagealloc 阅读全文
posted @ 2011-08-31 15:27 老码农豆豆 阅读(549) 评论(0) 推荐(0)
摘要:Process process = null; try{ process = Runtime.getRuntime().exec("su"); //这里是主要程序代码ATAAW.COM process.waitFor(); }catch(Exception e){ e.printStackTrace(); }finally { process.destroy(); }转自:http://disanji.net/2011/01/06/android-root-permission/ 阅读全文
posted @ 2011-08-26 17:32 老码农豆豆 阅读(681) 评论(0) 推荐(0)
摘要:这两天闲着没有事,写了一下GPS测速的小工具,就当自己练习玩了!现在将APK包放上下,大家可以下载下看一看!有什么建议,可以直接给我发邮件,一块交流!/Files/fly_binbin/TSGPS.rar(源码)/Files/fly_binbin/GPSSpeed.rar(安装包,请解压后安装) 阅读全文
posted @ 2011-08-13 22:41 老码农豆豆
摘要:此要加入到setContentview(R.layout.xx)前面。this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON, WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 阅读全文
posted @ 2011-08-09 22:22 老码农豆豆 阅读(987) 评论(0) 推荐(0)