I'm having trouble with the size of my application when trying to run on the emulator. I'm using images that take, for now, 11MB of space. First, when starting the emulator, it takes almost a minute to upload the file, then this error is shown:
[2011-10-24 11:29:50 - MyApp] Failed to install MyApp.apk on device 'emulator-5554': No space left on device
[2011-10-24 11:29:50 - MyApp] com.android.ddmlib.SyncException: No space left on device
[2011-10-24 11:29:50 - MyApp] Launch canceled!
When I'm looking into my folder, the whole folder of the app takes 37MB. The biggest one is the /bin-folder. There are the two files MyApp.apk (12MB) and resources.ap_(12 MB) and, one step down in the bin/packagename/-folder, there are 85 files, named like my StartActivity, numerated from Start$1.class up to Start$85.class. In my Start.java is the HomeScreen, where some images are shown, but many many onClickListeners with Intents.
Is that normal or could this be the reason?
Before, I've got some other errors, like the INSTALL_FAILED_MEDIA_UNAVAILABLE error and INSTALL_FAILED_INSUFFICIENT_STORAGE. Since then, I've found some threads on stackoverflow.com and I've done some changes in the emulator-settings, like adding in the commandline:
emulator.exe -avd 2TabGalaxy3.2GoogleAPI -partition-size 16384 -no-snapshot-load
(16384 is ok? cause 1024mb wouldn't be enough size)
I've also checked "Wipe User Data" and edited the AVD:
SD Card Size: 256MB
SD Card support : yes
Max VM application heap size: 192
Device Ram Size: 192
But I'm always getting the same types of errors, which say that there isn't enough space. Anyone knows a solution?
I've read that the maximum size of the apk-file is 50MB. That's right?