File created by application on sdcard can always be accessed by other
applications, is that the fact ? For example, use camera capture
pictures which will be saved to sdcard, and my application can access
it.

Tried more, I found File.createNewFile(new File(file_path)) create a
file and set its access permission accroding to different file_path,

e.g. if file_path is "/sdcard/DCIM/Camera/photo.jpg", photo.jpg is
created on sdcard, and is set read&write by all applications.
----rw-rw- system   system      16692 2009-08-21 16:25 photo.jpg

 if file_path is "/data/data/com.philip.camera/files/photo.jpg",
photo.jpg will be the private file of the application
com.philip.camera.
-rw------- app_41   app_41          0 2009-08-21 17:03 photo.jpg

it's interested that where android put the control of checking the
path, I think it couldn't be in File.createNewFile, it's better for
the standard library class to be unchanged, so could someone tell me
where to satisfy my curiosity :)

if above description has some errors , please let me know, thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to