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 the SD Card?
+1
A:
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.
Rich
2010-10-19 13:43:04
I don't know if who I'm making this for would like that. Maybe if I could automate it in the app, that might work. But anyways, when you were developing, where did you put the files so it could read them as if they were on the SD card?
TehGoose
2010-10-19 13:53:34
Well, you can put raw files in res/raw and read them into an InputStream with InputStream is = getApplicationContext().getResources().openRawResource(file_name); Or, you can pull them from the web and save them to SD.
Rich
2010-10-19 14:16:22
Ok cool. Thanks for your help :)
TehGoose
2010-10-19 19:42:22