Page 1 of 1

Delete files external storage (java)

Posted: 23 Jun 2020 00:23
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)? Any video tutorials are available in youtube?

Thanks in advance from record4

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()")