Search code examples
titaniumappcelerator

Titanium Studio - app icon not working


I tried everything and my android app icon doesn't work, can anybody help me?
y tried create a new project and paste just the app folder and it still the same. I'm using the 3.5.1 Titanium SDK.

thanks for the help!


Solution

  • Agree with @Ashish. You need to put the icons in the

    platform / android / res
    

    folder. Under this folder I have a number of folders with an image named "appicon.png" in each of them:

    drawable-hdpi
    drawable-ldpi
    drawable-mdpi
    drawable-xhdpi
    drawable-xxhdpi
    drawable-xxxhdpi
    

    I use ticons by Fokke Zandbergen to generate the icons. Works like a charm :-)

    On that page you can also find a link to a description about Androids 9-patch images (that you will need for different background images to scale correctly). One quick note on the splash and background images. I have put them in

    app / assets / android / images / res-long-port-hdpi (and other resolutions)
    

    And that also works well.

    /John