56
Views
13
Comments
Solved
The image icon for the android app is very large

I have set my app images in the following formats for android but on android devices but i see the image in the icon very disproportionate, I have also followed the measures outsystems recommends in the documentation. 

2022-07-12 16-41-57
Pedro Costa
Solution

Thank you for waiting. I installed it, see the result

[Image deleted by moderator]

see my extensibility configuration:

{

    "resource": "icons.zip",

    "icons": {

        "android": [{

            "resource": "/icons/android/mipmap-ldpi/ic_launcher2.png",

            "density": "ldpi"

        },

        {

            "resource": "/icons/android/mipmap-mdpi/ic_launcher.png",

            "density": "mdpi"

        },

        {

            "resource": "/icons/android/mipmap-hdpi/ic_launcher.png",

            "density": "hdpi"

        },

        {

            "resource": "/icons/android/mipmap-xhdpi/ic_launcher.png",

            "density": "xhdpi"

        },

        {

            "resource": "/icons/android/mipmap-xxhdpi/ic_launcher.png",

            "density": "xxhdpi"

        },

        {

            "resource": "/icons/android/mipmap-xxxhdpi/ic_launcher.png",

            "density": "xxxhdpi"

        }]

    }


}

You can test by downloading the app from the link below:

https://pedrocosta-sys.outsystemscloud.com/NativeAppBuilder/App?AppKey=da49ab16-32c6-48e0-bfbd-89728ef29a3d


2022-07-12 16-41-57
Pedro Costa

Hi Gaetano,

What did you use to generate your icons?

I remember using some generators and the result was not what I expected, so I used Ionic Resources and it worked fine.

https://ionicframework.com/docs/cli/commands/cordova-resources

Regards,

Pedro Costa

2023-03-21 16-59-35
Gaetano Cerciello

Hi Pedro Costa, i have generated the icon app with Ionis,but i have always this problem: 

2022-07-12 16-41-57
Pedro Costa

Hi Gaetano, 

One question before continuing, did you regenerate your app, delete the version installed on the device and install the new version?

2023-03-21 16-59-35
Gaetano Cerciello

yes but does not change anything.

2022-07-12 16-41-57
Pedro Costa

Have you tried installing on another device, with different resolution to see if it's an isolated problem?


Does your icon follow the specifications recommended by Google?

https://developer.android.com/distribute/google-play/resources/icon-design-specifications


2023-03-21 16-59-35
Gaetano Cerciello

I generated them with android studio, but you always see the icon badly even if I put in multiple formats for single density

2022-07-12 16-41-57
Pedro Costa

Hi Gaetano,

You can share the entire contents of the extensibity configuration and an image showing the folder structure of your imported zip file to the resources

Example:

2022-07-12 16-41-57
Pedro Costa

If possible, could you send the zip file so I can try to reproduce it?

2023-03-21 16-59-35
Gaetano Cerciello

 @Pedro Costa thanks for your help, this is the file:

icons.zip
2022-07-12 16-41-57
Pedro Costa
Solution

Thank you for waiting. I installed it, see the result

[Image deleted by moderator]

see my extensibility configuration:

{

    "resource": "icons.zip",

    "icons": {

        "android": [{

            "resource": "/icons/android/mipmap-ldpi/ic_launcher2.png",

            "density": "ldpi"

        },

        {

            "resource": "/icons/android/mipmap-mdpi/ic_launcher.png",

            "density": "mdpi"

        },

        {

            "resource": "/icons/android/mipmap-hdpi/ic_launcher.png",

            "density": "hdpi"

        },

        {

            "resource": "/icons/android/mipmap-xhdpi/ic_launcher.png",

            "density": "xhdpi"

        },

        {

            "resource": "/icons/android/mipmap-xxhdpi/ic_launcher.png",

            "density": "xxhdpi"

        },

        {

            "resource": "/icons/android/mipmap-xxxhdpi/ic_launcher.png",

            "density": "xxxhdpi"

        }]

    }


}

You can test by downloading the app from the link below:

https://pedrocosta-sys.outsystemscloud.com/NativeAppBuilder/App?AppKey=da49ab16-32c6-48e0-bfbd-89728ef29a3d


2023-03-21 16-59-35
Gaetano Cerciello

@Pedro Costa  i have implemented your version in this way, but it still gives me the same bug on android.

It seems as if it always generates the app with the old icons. 

2022-07-12 16-41-57
Pedro Costa

Hi Gaetano, how are you?

What is the name of the zip that you attached to service studio?

is it "resource.zip" or "icons.zip" ?

Did you install the sample app I made? Is the icon correct?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.