Can some one please let me know how to create a file of specific size on sd card programatically. I did tried shell command like this which is of no use,
try {
Process p = Runtime.getRuntime().exec("dd of=/mnt/extSdCard/output.dat bs=1 seek=1M count=0");
} catch (IOException e1) {
}
I did even try the same command in shell script and was not able to create the file. I guess since my device is not rooted, this command did not work.
Any help regarding this highly appreciated.
-regards, Manju