<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
I am trying to copy .jpg file to and from in Storage folders.
try {
Process c = Runtime.getRuntime().exec("dd if="+path+
"of="+Environment.getExternalStorageDirectory()+"/1.jpg");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
path contains the exact image location in storage ! But it doesn't work. It can't copy the image to another folder of storage. Please kindly help me to solve this in every possible way! Thank you.