Can not access android /data folder?

Posted by fonter on Stack Overflow See other posts from Stack Overflow or by fonter
Published on 2010-06-11T01:09:31Z Indexed on 2010/06/11 1:12 UTC
Read the original article Hit count: 278

Filed under:
  try {
     Runtime rt = Runtime.getRuntime();
     Process pcs = rt.exec("ls -l /data");
     BufferedReader br = new BufferedReader(new InputStreamReader(pcs
           .getInputStream()));
     String line = null;
     while ((line = br.readLine()) != null) {
        Log.e("line","line="+line);
     }
     br.close();
     pcs.waitFor();
     int ret = pcs.exitValue();
     Log.e("ret","ret="+ret);
  } catch (Exception e) {
     Log.e("Exception", "Exception", e);
  }

only print "ret=0",How to print the correct path?

© Stack Overflow or respective owner

Related posts about android