Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

adaptive launcher icons

Open EsqualiburDEV opened this issue 2 years ago • 9 comments

Hello Would it be possible to implement support for adaptive launcher icons. Available from android 8.

https://developer.android.com/studio/write/image-asset-studio#create-adaptive

a practical tool: https://icon.kitchen/ which generates a "res" folder

How to implement it with air? If this is already done, how do we use them in the manifest?

Thank you :)

EsqualiburDEV avatar May 10 '22 15:05 EsqualiburDEV

We don't have native support for this in the AIR tools, but it can be done, see #1670 thanks

ajwfrost avatar May 11 '22 09:05 ajwfrost

That icon.kitchen looks like a good tool!

marchbold avatar May 16 '22 23:05 marchbold

Thanks for the directions. But the 'res' folder containing the adaptive icons, are not integrated in the apk. I compile with intellij. And the 'resdir' tag is not interpreter after intellij. Do you know how to do it?

EsqualiburDEV avatar May 31 '22 13:05 EsqualiburDEV

Not exactly sure what is happening for you. We can use the resdir option in our app xml and it does show an error/warning but still builds without issue

Screen Shot 2022-06-01 at 9 57 43 am

What exactly is the error you are seeing or where is intellij blocking you?

marchbold avatar May 31 '22 23:05 marchbold

Hello yes, that's what happens, but the icon taken into account remains the one indicated in the xml (the old way) on android 11 tablets. the 'res' folder in the apk file, contains the same number of files as without the 'resdir' option to integrate into the xml app.

EsqualiburDEV avatar Jun 01 '22 08:06 EsqualiburDEV

Okay, so there is no error in intellij blocking the build? It's likely that it's just not getting copied to the correct place for the packaging.

Are you passing a relative path as the resdir? We have found the simplest way to get it working is to add the res dir to the assets that are packaged with the app in the module settings. This results in the res dir being copied to the same location as the packaged swf and app xml and seems to work.

marchbold avatar Jun 01 '22 23:06 marchbold

Hello Sorry for the delay in response. Yes, I positioned the files as in the example given. I don't understand why it doesn't take them into account.

EsqualiburDEV avatar Jun 20 '22 15:06 EsqualiburDEV

Did you add them to the list of assets packaged with the android build though? This sometimes is a needed step as intellij copies all the assets from the src to another location to perform the actual build.

marchbold avatar Jun 20 '22 23:06 marchbold

Yes I added them. Apparently there is just the "mipmap-anydpi-v26" file which is added. But not the icons.

EsqualiburDEV avatar Jun 22 '22 17:06 EsqualiburDEV