开发者

Where to put a file when reading from SD Card (Android Development)

开发者 https://www.devze.com 2023-01-20 09:07 出处:网络
If I am going to be reading files from the SD Card, where do I put them during development? Also, when I install the app, will it include these files and put them to t开发者_JAVA百科he SD Card?What I\

If I am going to be reading files from the SD Card, where do I put them during development? Also, when I install the app, will it include these files and put them to t开发者_JAVA百科he SD Card?


What I've seen a lot of people do is release add-on apps in the Market. So, you'd release the main app (that would consume the files) and then have a separate app that does nothing but copy files onto the SD card and instruct the user to install and immediately delete the add-on.

I use a language translator app (ColorDict) that works this way. You download ColorDict, and then you download the language dictionaries separately and delete the dictionary app to save space. That way, your initial download isn't terribly bloated and doesn't take up unnecessary space after install.

0

精彩评论

暂无评论...
验证码 换一张
取 消