下载到Android应用程序的资产目录 [英] download to Android app's assets directory
问题描述
是否可以将文件下载到Android应用程序资产的目录中?
Is it possible to download files to an Android app's asset's directory?
我在应用程序的资产目录下有一些文件,以后可能会更新这些文件,我想通过应用程序通过网络下载来更新这些文件.
I have some files under the app's assets directory that could potentially be updated at a later date, I want to update these files with network download via the app.
谢谢
推荐答案
您无法更新资产.句号
相反,您可以做的是将资产解压缩到内部存储器或SD卡中,然后在其中进行更新..我或多或少在android-menu-navigator中进行了此操作:
What you can do instead is unpack assets to internal memory or SD card and update them there.. I do that more or less in my android-menu-navigator: http://code.google.com/p/android-menu-navigator where I have menu of the simple menu-navigation based application. I can use the menu either from assets:
(测试菜单在此处:http://code.google.com/p/android-menu-navigator/source/browse/#hg%2Fassets%2Ftestmenu )
或从下载的菜单中
两个人实际上都在打开菜单的包装并将其存储在SD卡上.
Both are actually unpacking the menu and storing it on SD card.
这篇关于下载到Android应用程序的资产目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!