Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
[SOLVED] Icon is not displayed in the apk
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Accessing VRAM memory wit...
by
LemonParty
[
Today
at 04:45:30 pm]
KOL4 Beta available.
by
Thaddy
[
Today
at 04:45:13 pm]
Windows 2026_7 update and...
by
Martin_fr
[
Today
at 03:54:21 pm]
FPC Unleashed (async/awai...
by
Fibonacci
[
Today
at 03:44:50 pm]
Lazarus Main not building...
by
dsiders
[
Today
at 03:30:20 pm]
docking IDE
by
Martin_fr
[
Today
at 02:13:28 pm]
Putting a new file on a w...
by
J-G
[
Today
at 01:04:26 pm]
Engineering Software from...
by
jamie
[
Today
at 12:51:57 pm]
GTK3 is now the default w...
by
bonmario
[
Today
at 12:50:59 pm]
FastCGI vs. CGI
by
korba812
[
Today
at 12:48:06 pm]
Slow app start on M5 MacB...
by
Martin_fr
[
Today
at 10:57:37 am]
[SOLVED] BitBtn Oddity
by
Petrus Vorster
[
Today
at 09:05:55 am]
Difference between @ and ...
by
paule32
[
Today
at 08:18:43 am]
Lazarus Bugfix Release 4....
by
papillon33
[
Today
at 08:15:45 am]
Many recent books on Laza...
by
Khrys
[
Today
at 06:35:48 am]
Isn’t this funny?
by
n7800
[July 16, 2026, 11:57:09 pm]
Error when opening a proj...
by
Tomu
[July 16, 2026, 09:11:54 pm]
Is this safe, changing fr...
by
mas steindorff
[July 16, 2026, 08:46:31 pm]
TPeriodicTable
by
wp
[July 16, 2026, 08:00:38 pm]
try/except error
by
toby
[July 16, 2026, 06:55:42 pm]
How to connect to MariaDb...
by
Thaddy
[July 16, 2026, 05:51:17 pm]
Computers sure have come ...
by
Zvoni
[July 16, 2026, 03:36:38 pm]
KOL x64
by
Thaddy
[July 16, 2026, 02:06:48 pm]
Install new .deb over exi...
by
dbannon
[July 16, 2026, 01:45:27 pm]
Solpage
by
munair
[July 15, 2026, 01:47:30 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Icon is not displayed in the apk (Read 1104 times)
spacepascal
New member
Posts: 7
[SOLVED] Icon is not displayed in the apk
«
on:
September 25, 2024, 10:00:39 pm »
I'm using LAMW4 For Linux based on Lazarus 2.02 r64642 (Debian 12).The IDE works very well, but the only issue is with the icon loading. I select the icon file correctly, but the compiled .apk doesn't show an icon. I'm getting desperate, actually. Do you have some ways to manually fix this bug? I've also tried using an APK icon editor, but it seems that the icon is correctly there, yet when I install the APK, the default android icon is displayed. I've tried the APK on both Android 13 and Android 10.
I have also followed other topic like this
https://forum.lazarus.freepascal.org/index.php/topic,63427.0.html
, but it did not solve the problem
Here there is the project folder minus some unnecessary big files (i think). I also included the debug APK to provide more context.
https://drive.proton.me/urls/FB3W7GB2D0#OrhecF2cNYqm
«
Last Edit: September 26, 2024, 04:58:34 pm by spacepascal
»
Logged
dseligo
Hero Member
Posts: 1686
Re: Icon is not displayed in the apk
«
Reply #1 on:
September 25, 2024, 11:44:18 pm »
I created icons with this generator:
https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=1&foreground.space.pad=0.25&foreColor=rgba(233%2C%2030%2C%2099%2C%200)&backColor=rgb(237%2C%20237%2C%20237)&crop=0&backgroundShape=circle&effects=none&name=ic_launcher
Then I put icons in following directories:
- 192x192 into mipmap-xxxhdpi
- 144x144 into mipmap-xxhdpi
- 96x96 into mipmap-xhdpi
- 48x48 into mipmap-mdpi
- 72x72 into mipmap-hdpi
HTH.
Logged
spacepascal
New member
Posts: 7
Re: [SOLVED] Icon is not displayed in the apk
«
Reply #2 on:
September 26, 2024, 05:03:07 pm »
I tried to do the same thing by changing the icons in the folders, but it didn't work. With that generator, it worked, it writes something in the mipmap-anydpi-v26 folder. I'll try to figure out how it does it, thanks you're a hero!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
[SOLVED] Icon is not displayed in the apk
TinyPortal
© 2005-2018