Titanium Community Questions & Answer Archive

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

High-density Android icons?

Forgive me if this is a stupid question; I'm new to Titanium. How can I include .png Android app icons for both medium and high screen densities [48x48, 72x72] in my app?

— asked November 19th 2010 by Ishaan Gulrajani
  • android
  • mobile
  • osx

3 Answers

  • Hi Ishaan

    Firstly, there is no need to compile the source, as this functionality is in the 1.5.X Continuous Builds packages (which are directly from the 1.5 master branch of the repo).

    Maybe it's worth double checking that you checked out 1.5 master branch and not something else, which would explain why it's not working.

    I have to thank Don Thorp for his (always astounding) patience in explaining how Ti accommodates different densities. This info is from him:

    "Anything under platforms/android is effectively copied as is into the build.
    Items in the multi-density Titanium directories (low, medium, high) are then name-manged and copied into the appropriate mdpi, ldpi, hdpi folders with, still with the mangled names. At runtime, your app will most likely just be written to use "images/appicon.png", but the image at correct density should be applied"

    To be clear, the image that you want to set is the icon that users click to launch your app? You want to create different versions of it so that it looks good regardless of the density?


    — answered November 19th 2010 by Paul Dowsett
  • Ishaan, I believe this is coming for version 1.5, due for release at the end of the year. See this ticket for information.

    — answered November 19th 2010 by Paul Dowsett
    1 Comment
    • Thanks for the help. I'm running 1.5.0 (just downloaded and built the source), but the instructions on the ticket you mentioned don't seem to work. I'm putting a 48x48 icon in Resources/android/images/medium/appicon.png, but it doesn't show up.

      — commented November 19th 2010 by Ishaan Gulrajani
  • Hi,

    are there any updates? Still doesn't work. At least for me (any density is activated in manifest).

    — answered May 8th 2011 by Jicks Steen
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.