77
Views
6
Comments
Android adaptive icons
Question
Application Type
Mobile

I'm trying to implement the android adaptive icons for our mobile app using these guidelines (https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive)

When I try to add the xml file to this folder "res/mipmap-anydpi-v26/ic_launcher.xml" I get the following Message

Invalid Resource


Resource 'ic_launcher.xml' cannot be deployed to a parent folder. Change the 'Target Directory' property of this resource to fix this.


Does anyone have an idea how I can add the resources to the correct folder.


Kind regards


Joris


2022-05-19 09-39-13
David Sousa

Hi Joris,

Please check this documentation link about mobile app icons.
https://success.outsystems.com/Documentation/11/Delivering_Mobile_Apps/Customize_Your_Mobile_App/Modify_the_App_Icon

If you still need help let us know!

Cheers

David

UserImage.jpg
Joris Deckers

Hi David,

We already implemented the icons following the documentation. But we need to use the Android Adaptive icons because on some devices our icon isn't correct formated. 

Did you take a look at the Adaptive icon documentation? Do you have an idea how i can implement them?


Kind regards


Joris

2022-05-19 09-39-13
David Sousa

Hey Joris, 

Ok now I understand your initial problem. I could be wrong but I believe it's not yet possible to define Android Adaptive Icons using only OutSystems.

I would develop a cordova plugin that copies the icons in a Resources folder to the correct Android build path and that changes the manifest accordingly.

2021-03-24 17-29-38
Frederico Sousa
Champion

Any update on this?

2023-09-26 11-47-11
Sergio Bessa

Anyone found a solution for this?

2025-07-30 06-23-01
Hari Krishnan Ramamoorthy

Currently, adaptive icons are not supported by default in OutSystems for Android applications. This limitation can lead to issues during the build process, especially when referencing resources like ic_launcher_background or ic_launcher_foreground.

To address this, we can create a custom Cordova plugin that modifies the Android Manifest and injects the required adaptive icon configuration. This plugin can then be integrated into the OutSystems application as a dependency.

Your plugin.xml should include entries similar to the attached to ensure proper resource linking


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