I am trying to create a file, but something is wrong with the pathname. The writing permissions are declared in the manifest. I specify the pathname below:
String path =  ":/storage/sdcard0/";
and then try to access that later:
try {
        File file = new File(path + "ratings.csv");
        // if file doesnt exists, then create it
        if (!file.exists()) {
            file.createNewFile();
        }
And this throws IOException: "No such file or directory". Is the pathname wrong?
 
    