使用fileprovider共享资产 [英] Share Assets Using fileprovider
本文介绍了使用fileprovider共享资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
跟随 https://developer.android.com/training/secure-file-sharing/index.html ,并能够使用fileprovider将应用程序内部目录(/data/data/package/files/xxx/)中的文件共享给客户端应用程序.
Followed https://developer.android.com/training/secure-file-sharing/index.html and able to share files in the internal directory(/data/data/package/files/xxx/) of app to client app using fileprovider.
如何将资产文件夹(而不是内部目录)中的文件共享到客户端应用程序.
How to share the files in assets folder(instead of internal directory) to the client app.
谢谢
推荐答案
请参见 CWAC提供程序来自CommonsWare,该库可以精确地执行您想要的操作.
See CWAC-Provider from CommonsWare which is a library to do precisely what you want.
这篇关于使用fileprovider共享资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文