Recent

Author Topic: app icon  (Read 3220 times)

pfms

  • New Member
  • *
  • Posts: 12
app icon
« on: January 28, 2019, 11:15:12 am »
Hi every one,
I cannot change the app icon.
I tried to do that modifying the icon in Option Project menu without success.
Any suggestion?

Thanks in advance
Pier

mischi

  • Full Member
  • ***
  • Posts: 170
Re: app icon
« Reply #1 on: January 28, 2019, 12:29:56 pm »
version of OS? version of lazarus? How did you try to change the icon?

Handoko

  • Hero Member
  • *****
  • Posts: 5158
  • My goal: build my own game engine using Lazarus
Re: app icon
« Reply #2 on: January 28, 2019, 12:35:33 pm »
@pfms

Did you use LAMW? Have you tried this below?
Lazarus main menu > Project > Project Options > [LAMW] Android Project Options > Application > Launcher icon

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: app icon
« Reply #3 on: January 28, 2019, 12:41:00 pm »
Mischi beat me ...

But as well as the things he mentions, you could also, perhaps, tell us what you are expecting to happen when you do change the icon. Depending on the platform, you may need to do a range of different things.

(The Mac wants a ICNS file, different ones for app itself, the dmg file and so on. Linux likes a set of app icons in the appropriate place and a desktop file to refer to them, windows, hmm, its easier....   And are you wanting the icon to show up in your file manager associated with the binary, in the menus or on the dock or plank while its running.)

General advice, too short an question is, perhaps, worse than too long a question ?
 :)
Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Handoko

  • Hero Member
  • *****
  • Posts: 5158
  • My goal: build my own game engine using Lazarus
Re: app icon
« Reply #4 on: January 28, 2019, 12:44:48 pm »
The thread is in Android sub forum. So I think the OP meant in LAMW. ::)

pfms

  • New Member
  • *
  • Posts: 12
Re: app icon
« Reply #5 on: January 28, 2019, 08:21:27 pm »
@pfms

Did you use LAMW? Have you tried this below?
Lazarus main menu > Project > Project Options > [LAMW] Android Project Options > Application > Launcher icon


Yes, I  have done this sequence, unsuccessful
« Last Edit: January 28, 2019, 08:31:57 pm by pfms »

pfms

  • New Member
  • *
  • Posts: 12
Re: app icon
« Reply #6 on: January 28, 2019, 08:31:26 pm »
The thread is in Android sub forum. So I think the OP meant in LAMW. ::)

That's correct.....and OBVIOUS (also for you, davo) :)
« Last Edit: January 28, 2019, 08:35:00 pm by pfms »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2302
Re: app icon
« Reply #7 on: January 30, 2019, 09:53:02 pm »
Quote
Did you use LAMW? Have you tried this below?
Lazarus main menu > Project > Project Options > [LAMW] Android Project Options > Application > Launcher icon

Quote
Yes, I  have done this sequence, unsuccessful

Sorry... I will fix this bug..


Until there,  you can go to project foders  "...res\drawables*"  and replace the
content of the file  "ic_launcher.png" ... 
[that is,  keep the new icon as "ic_launcher.png" on all folder  "drawables"!!!]

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

pfms

  • New Member
  • *
  • Posts: 12
Re: app icon
« Reply #8 on: January 31, 2019, 11:52:55 am »
Quote
Did you use LAMW? Have you tried this below?
Lazarus main menu > Project > Project Options > [LAMW] Android Project Options > Application > Launcher icon

Quote
Yes, I  have done this sequence, unsuccessful

Sorry... I will fix this bug..


Until there,  you can go to project foders  "...res\drawables*"  and replace the
content of the file  "ic_launcher.png" ... 
[that is,  keep the new icon as "ic_launcher.png" on all folder  "drawables"!!!]

José, it doesn't run for me.
Is it mandatory to change the icon resolution for any folder?
I guess the compile and apk creation override the new icon with the old one (default icon)
« Last Edit: January 31, 2019, 12:15:09 pm by pfms »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2302
Re: app icon
« Reply #9 on: January 31, 2019, 06:37:25 pm »

Quote
Is it mandatory to change the icon resolution for any folder?

Yes. This is a recommendation from google...

But, you can put the same "ic_launcher.png" into all "drawable*" folders....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018