For some reason I can’t change the custom/ default icon of an app.

For some reason I can’t change the custom/ default icon of an app.

This is what I’m trying (i is the item)

i.setDefaultIcon(LL.createImage(100,100));

It works fine with .setImage, but it gives an [file==null] wrapped null pointer exception with .setDefaultIcon and with .setCustomIcon

However, it works with an image returned by getCustomIcon/getDefaultIcon … but it returns the android default icon :/

Perhaps I’m doing something wrong…could someone help me?

]]>

One Commentto For some reason I can’t change the custom/ default icon of an app.

  1. Anonymous says:

    < ![CDATA[

    Basically this is because the image created with LL.createImage is not linked with a file and calling i.setDefaultIcon with this image erases the file information. I need to rework this so that it works as expected.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *