I need to create files under myapp/files/subdir with global permission in my application. I do this because I use external applications to open some files Using this
If you are running it on a rooted device, change file permissions using:
Runtime.getRuntime().exec("chmod 777 " + PATH + fileName);
Or try File.setReadable(), File.setWritable while creating the file.
File.setReadable()
File.setWritable