views:

31

answers:

1

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
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
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
Ok cool. Thanks for your help :)
TehGoose