Android - How do I save a file that is readable by an other app?
问题 I want to save a file and then fire an intent to an other application to open that file. How do I accomplish this? If tried : openFileOutput("file.pdf", Context.MODE_WORLD_READABLE) but doesn't seem to work. Should I save the file outside the applications folder? If so how do I pass it the correct permissions? 回答1: You can use something like this: String extPath = Environment.getExternalStorageDirectory().getAbsolutePath(); String pathPrefix = extPath + "/Android/data/" + APP_PACKAGE_ID + "