My application (A.apk) use openFileOutput to create a file:
FileOutputStream os = this.openFileOutput(file, Context.MODE_WORLD_READABLE);
And how can I read this file by another application (B.apk)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can read it only if the file is either in the Phone Memory or in the SD-Card it self.
Unlike SharedPreference or Sqlite Database File System is free from application dependency. Meaning File is totally independent from the Android Application. You can create file from one application(.apk) and read it from another android application(.apk). You don’t require any special kind of mechanism for this.