How to transfer files between Android applications running on the same device?

前端 未结 3 2014
遇见更好的自我
遇见更好的自我 2021-01-31 17:50

I am writing an Android application that interfaces with a RESTful service. This web service essentially fronts a file system, and provides metadata as well CRUD access to the

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 18:42

    http://developer.android.com/reference/android/os/ParcelFileDescriptor.html can be sent between processes. I believe that there is a subtly where these are explicitly blacklisted from being allowed to be put in intents. They can be sent through AIDL though. Also, do NOT use the sdcard for this. This is just asking for trouble. One sdcard is world readable, so anyone can see it. Also, you do not always have access to write to the sdcard (it is removed or put in UMS).

提交回复
热议问题