Gabriel Muñumel
Gabriel Muñumel

Reputation: 1876

Questions about the use of internal app files in android

I have some doubts about deployment an app in Google Play. I'm using Eclipse to work and my application needs some XML files store in data/data/my_app/files/.

  1. When I use the AVD I can storage the files directly on data/data/... directory, but when I use my cellphone the directory is not open, why?
  2. Suppose I use the AVD and storage the files on data/data/... directory, when I deploy my app to Google Play, those files will be accessible by my app. Will those files be accessible by anyone who download my app?

Thanks in advance.

Upvotes: 0

Views: 31

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007624

When I use the AVD I can storage the files directly on data/data/... directory, but when I use my cellphone the directory is not open, why?

Security. The piece on Android that adb talks to has elevated privileges on an emulator.

Will those files be accessible by anyone who download my app?

Generally no, for the same reason why they are not accessible to you per question #1. Users who root their devices will be able to get to files on internal storage. Otherwise, they cannot.

I wrote a blog post series a while back on the various storage options in Android and their characteristics, including one on internal storage, that might be of interest to you.

Upvotes: 1

Related Questions