是否可以将 Socket/FileDescriptor 从一个 Activity 传递到其他应用程序中的其他 Activity ? 我尝试使用 Intent 但得到了
java.lang.IllegalArgumentException: File descriptors passed in Intent
请帮忙!
最佳答案
当然可以 - 使用内容提供商。你必须创建自己的内容提供者并重写它的方法 openFile。在这里阅读,例如:http://www.grokkingandroid.com/handling-binary-data-with-contentproviders/
关于android - 如何将套接字/文件描述符传递给Android中的其他应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8888342/