Round app icon on Android Oreo

The place to discuss anything and everything about running your LiveCode on Android

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
drkosta
Posts: 29
Joined: Wed May 22, 2013 8:40 pm
Location: Stuttgart / Germany
Contact:

Round app icon on Android Oreo

Post by drkosta » Mon Sep 10, 2018 1:21 pm

Hi There,

when deploying an app to android os, in LC standalone settings there is only an option to select one app icon. On Android Oreo usually icons are round now and in the Android design studio you have to create different sizes of icons for different designs (and os versions).

Is there any solution about that so that I can use different Icons when changing the design on Oreo or in decency of os version?

Thanks a lot

Kosta

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4559
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Round app icon on Android Oreo

Post by jacque » Mon Sep 10, 2018 10:53 pm

I haven't done this yet, but there is info on the web about how to create adaptive icons. You need two layers, one for background and one for the icon art. If you create an adaptive icon, you can add it to the Copy Files pane and it will be used. Also add icons for correctly-named legacy sizes, and the OS will choose the correct one for the user's device.

In standalone settings I usually choose a single larger size in legacy format (PNG) and the OS will either scale it or choose one of the named icons if they are available.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

drkosta
Posts: 29
Joined: Wed May 22, 2013 8:40 pm
Location: Stuttgart / Germany
Contact:

Re: Round app icon on Android Oreo

Post by drkosta » Tue Sep 11, 2018 1:30 pm

Hi Jacque,

thanks a lot for the fast reply and hints. I created with the android design studio the Icons which a named by default "ic-launcher.png, ic-launcher_round.png and ic-launcher_foreground.png. They are stored in different folders for the different resolutions (hdpi, xhdpi, xxhdpi, xxxhdpi). I copied the there files from xxxhdpi folder in the standalone application settings with "copy files" and used in Icon Settings the highest resolution png as icon.

But still the problem is not solved. Only the icon which I used in the Icon Settings is used, so when changing to squared or round icons it is not displayed in the desired way. Is there something specific I have to mention with the names of the icons in "copy files"?

Cheers

Kosta

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4559
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Round app icon on Android Oreo

Post by jacque » Tue Sep 11, 2018 6:34 pm

The names are correct. As I said, I haven't tried it yet but I think LC expects the icons to be loose in the Copy Files pane. If you put them in folders, try taking them out. You probably also need to include the legacy icons, which LC does recognize.

Finally you may need to make changes to the default manifest. You can create your own manifest and include it in the Copy Files pane and LC will use that one. I haven't explored the changes that might be required.

If you get it to work, let us know so I don't have to figure it out later. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Android Deployment”