[英]How open file stored in app specific storage in external app android?
I have stored files like pdf and ppt in app-specific storage.我已将 pdf 和 ppt 等文件存储在特定于应用程序的存储中。 And now I want to open these files on an external app.
现在我想在外部应用程序上打开这些文件。
When I tried to open the file using the Intent I am getting an exception: exposed beyond app through ClipData.Item.getUri()当我尝试使用 Intent 打开文件时出现异常:通过 ClipData.Item.getUri() 暴露在应用程序之外
How can I do that?我怎样才能做到这一点?
Thanks In advance:)提前致谢:)
Since I am not able to see the code through which you are trying to open the file from external app, all i can suggest is please save your app specific data in a shared storage of external directories as suggested by Android docs.由于我无法看到您尝试从外部应用程序打开文件的代码,因此我只能建议将您的应用程序特定数据保存在外部目录的共享存储中,如 Android 文档所建议的那样。
I would recommend this Save data to app specific location我会推荐这个Save data to app specific location
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.