Hello Everybody.
I was developing a simple android application in which on a button's click event I wrote
----------------------------------
Runtime r = Runtime.getRuntime();
Process p = r.exec("mount /sdcard");
p = r.exec("cd /mnt/sdcard");
and displayed the standard input stream on the log.
------------------------------------
my problem is I am unable to navigate to the sdcard directory and I am getting an exception saying java.io Exception error running exec command [cd /mnt/sdcard]
Working Directory: null
Environment: null
I was browsing some pages and I came to know that cd doesn't work
then how should I navigate to the sdcard directory?
Thanks in advance
I was developing a simple android application in which on a button's click event I wrote
----------------------------------
Runtime r = Runtime.getRuntime();
Process p = r.exec("mount /sdcard");
p = r.exec("cd /mnt/sdcard");
and displayed the standard input stream on the log.
------------------------------------
my problem is I am unable to navigate to the sdcard directory and I am getting an exception saying java.io Exception error running exec command [cd /mnt/sdcard]
Working Directory: null
Environment: null
I was browsing some pages and I came to know that cd doesn't work
then how should I navigate to the sdcard directory?
Thanks in advance