Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Android App - 3MB - ?

I created a new Project, compiled/built it for Android, and saw that it's 3MB (with just 2 tabs and not much else).
I thought Titanium compiled the code into native binary, so a runtime wouldn't be needed; are all Titanium libraries being included in the build, even when they are not needed?
3MB is kinda huge for an app that does nothing but show 2 tabs…. is there any way this can be optimized to be much (much) smaller and "realistic"?
Thanks.

— asked September 25th 2010 by Takahito Torimoto
  • build
  • compile
  • huge
  • large
  • size
0 Comments

2 Answers

  • I've also found the binary size for a Titanium mobile app to be bloated. A simple app on iPhone is around 3MB as well. My guess is that the entire Ti library is being built in, whether needed or not for an app. I don't know of any way to reduce the footprint. :( In comparison, a 'hello world' mobile app on the Ansca Corona framework is ~300K.

    — answered September 25th 2010 by Christopher Rumpf
    permalink
    0 Comments
  • Yeah I saw that they are working on this for 1.5:

    http://developer.appcelerator.com/question/45861/reducing-apkapplication-filesize

    I'm going back and forth between Corona and Titanium. I like them both for different reasons: Corona better for gaming; Titanium's support for the open source scrolling DatePicker for Android is a huge plus for productivity apps)

    — answered September 25th 2010 by Takahito Torimoto
    permalink
    3 Comments
    • I agree that both are good for different reasons. I think it's a good market differentiation that Ansca started leaning towards game development with their Corona Game Edition. Titanium has much more native UI integration than Corona, and thus makes a better fit for productivity and enterprise apps.

      — commented September 25th 2010 by Christopher Rumpf
    • Errr.. I just recompiled with 1.5RC2 - and it's still 3MB. Are we still shooting to improve this in 1.5 Release?

      — commented December 11th 2010 by Takahito Torimoto
    • Ouch - ok it looks like they are moving the target to 1.5.1… seems to get moved back every time :-)

      https://appcelerator.lighthouseapp.com/projects/32238/tickets/685-android-minimize-apk

      — commented December 11th 2010 by Takahito Torimoto
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.