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
Lazarus Blowfish
by
rvk
[
Today
at 05:17:17 pm]
AArch64. Slow program sta...
by
LemonParty
[
Today
at 04:46:31 pm]
Help with search and repa...
by
avk
[
Today
at 04:35:29 pm]
An Idea for a helpful uti...
by
Curt Carpenter
[
Today
at 04:33:20 pm]
[SOLVED] Heaptrc reports ...
by
BrunoK
[
Today
at 04:32:53 pm]
Info for PTCGraph users.....
by
Handoko
[
Today
at 04:01:45 pm]
Initialize list in functi...
by
PeterHu
[
Today
at 10:33:27 am]
Tips for cross-compiling ...
by
Seenkao
[
Today
at 09:25:29 am]
Drawing a picture on the ...
by
DMH
[
Today
at 05:01:07 am]
Anyone interested in help...
by
ad1mt
[November 09, 2025, 07:57:13 pm]
How detect a keypress in ...
by
Remy Lebeau
[November 09, 2025, 07:49:50 pm]
Paradox date filter
by
tawfiq-lz
[November 09, 2025, 07:46:20 pm]
Why is there no Chinese s...
by
Ten_Mile_Hike
[November 09, 2025, 06:55:11 pm]
Convert table to JSON arr...
by
paweld
[November 09, 2025, 05:56:56 pm]
Unexpected lack of error ...
by
n7800
[November 09, 2025, 05:39:10 pm]
FPC 3.2.4-rc1 available
by
pleumann
[November 09, 2025, 05:12:32 pm]
application crashes on st...
by
Thaddy
[November 09, 2025, 04:17:28 pm]
Blog area?
by
Martin_fr
[November 09, 2025, 02:00:17 pm]
SimpleXML
by
ednaldomoreira
[November 09, 2025, 01:45:18 pm]
What happens if you use "...
by
Thaddy
[November 09, 2025, 01:39:12 pm]
CustomDraw package compil...
by
lainz
[November 09, 2025, 01:21:58 pm]
Register global hotkey
by
Thaddy
[November 09, 2025, 12:46:46 pm]
How to port TArray.Sort?
by
Thaddy
[November 09, 2025, 12:20:36 pm]
Dynamic libraries in Linu...
by
Fred vS
[November 08, 2025, 10:28:42 pm]
FPC v3.2.2 internal error
by
440bx
[November 08, 2025, 09:15:48 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Icon is not displayed in the apk (Read 946 times)
spacepascal
Newbie
Posts: 5
[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: 1601
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
Newbie
Posts: 5
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