Page 1 of 1

Delete files external storage (java)

Posted: 23 Jun 2020 00:22
by Rafi4
Hi anuraag and all
Below script is deleting files in internal storage only. How can I delete files in external storage(sd card)?

Code: Select all

file = callJavaConstructor("java.io.File", "File(java.lang.String)", "/storage/extSdCard/Wall papers/rMO--jHdH3Q.jpg");
callJavaMethod(file, "java.io.File", "delete()")