It would be nice if the Manifest could specify the ratio (default would be 4).
On Oct 14, 12:17 pm, Lucas <roll...@gmail.com> wrote: > Hello, > > Well finally i found what is happening. And it explains the issues i > was having and also what you said. > > I decided to take a look at the OS installer process, and i found the > code that explains it all. > > packageinstaller/PackageInstallerActiviity.java (line 293): > > //compute the size of the application. just an estimate > long size; > String apkPath = mPackageURI.getPath(); > File apkFile = new File(apkPath); > //TODO? DEVISE BETTER HEAURISTIC > size = 4*apkFile.length(); > checkOutOfSpace(size); > > As you can see the installer checks to have at least **4** times the > size of the apk we want to install in order to let it go. > > I think is a bit to much, and Google engineers must look on improving > this restriction to at least not more than 2,5 times apk size. > > regards, > > Lucas > > On Oct 9, 4:56 pm, Dan Sherman <impact...@gmail.com> wrote: > > > > > I've had issues with the market installs as well (at least on 1.5), where a > > 6mb apk required 24mb of free space to install... > > > - Dan > > > On Fri, Oct 9, 2009 at 3:50 PM, RichardC > > <richard.crit...@googlemail.com>wrote: > > > > I am running an application (CoPilot) on my HTC Magic that has > > > installed 197Mb on my SD card. However its download size from the > > > Market is only 6.92Mb. The rest of the data was post installed (maps) > > > that I downloaded via WiFi using the phone. There is also an option > > > to download the maps to your PC and copy them to the SD card. > > > > The point I am trying to make here is, I probably would not download a > > > large (10s of Mb) applcation from the Market because the apk file has > > > to go into the internal memory and this is a precious resource to me. > > > However putting large amounts of data on the SD card later is no > > > problem. > > > > With your example of installing from an SD card, can you not leave > > > most of the data on the SD card and just install the application code > > > on the phone? > > > > -- > > > RichardC > > > > On Oct 9, 8:11 pm, rollbak <roll...@gmail.com> wrote: > > > > Hello, > > > > > Which is the max application size that can be installed in Android? > > > > > I have made several tests in different Android handsets (Hero, G1, > > > > Motorola Motus, Samsung Behold 2), and using adb i was able of > > > > installing up to 100mb application in Hero and Motus, but trying to > > > > install by SD card or OTA i was limited to a maximum of 50mb (even if > > > > the devices have 200mb of free space). > > > > > Does anyone know which are the restrictions here? > > > > > Thanks, > > > > > Lucas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---