[Android]read file examples
来源:互联网 发布:关于来电软件 编辑:程序博客网 时间:2024/06/05 19:32
private String getStringFromFile(){ String getStringFromFile= ""; String cmdline = ""; String cmdline_path = "/system/data"; String indexString = "index"; Process process; try{ process = new ProcessBuilder("cat", cmdline_path).start(); BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream())); while((cmdline = br.readLine())!=null) { if(cmdline.indexOf(indexString)>0) { String [] cmd = cmdline.split(" "); for(int i=0;i<=cmd.length;i++) { if(cmd[i].startsWith(indexString)) { getStringFromFile= cmd[i].split("=")[1]; break; } } } } br.close(); }catch(Exception e){ } return getStringFromFile; }
- [Android]read file examples
- ksh read file examples
- Read-only file system:android
- Android Read-only file system 错误
- Android adb push ... Read-only file system
- Android-Read-only file system问题
- Android Read-only file system 错误处理
- Android Read-only file system”的错误
- android transfer error: Read-only file system
- Android出现“Read-only file system”解决办法
- Android出现“Read-only file system”解决办法
- Android出现“Read-only file system”解决办法
- Android出现“Read-only file system”解决办法
- Android Read-only file system 异常
- Android出现“Read-only file system”解决办法
- Android DDMS Read-only file system
- Android Read Only File System IOException
- Android出现“Read-only file system”解决方法
- multiprocessing 下水测试
- multiprocessing 进程池 pool
- 2011-8-6 18:04:28
- 2011-8-6 18:05:30
- Webkit创建Smart TV应用的几个问题
- [Android]read file examples
- HTTP基础实用教程
- Jrebel的实现方法
- 编写第一个Android程序遇到异常退出
- java 插入排序
- 血战上海滩必看
- 控制台菜单
- 《程序员的思维修炼--开发认知潜能》读书笔记
- 资料-zlib-数据压缩和加压资料