Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Application Requiring Large Data Files

I am working on an android app that needs to act on a few data files totaling around 30MB. I put together a test and the emulator failed with OutOfDiskSpace. Debugging on a device failed with even a smaller data size. After reading through the google groups, it appears that the application size limit isn't stated anywhere and nobody from google has been forthcoming with specifics about this. Given that there are iPhone apps that are over 100MB in size, putting such a small limit on Android apps seems weird, except just for the fact that you have a relatively small amount of total available app storage space (< 100MB).

Now for my question:

What techniques do you use to deal with this limit? If you have an app that needs more than 10MB, do you put it on a web server and deal with downloading it the first time? If so, how do you handle access control so that only your app can get the data?

like image 385
AdamC Avatar asked Jun 10 '09 00:06

AdamC


1 Answers

The common technique is the download the data when the application is first ran and save the data to the SD card. this is because internal memory is a scarce commodity with the current state of Android. Installing apps to the sd card is not officially supported and internal memory on the HTC Dream and Sapphire is lacking.

Here is a link to a thread on the official android-developers group where a Google Android Engineer (Dianne Hackborn) responds to this very question with

The best solution right now is I think to download your large data after installing.

like image 89
snctln Avatar answered Oct 07 '22 01:10

snctln