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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
What is a status of fpGUI...
by
Fred vS
[
Today
at 02:46:09 am]
Artificial intelligence
by
zeljko
[
Today
at 01:46:06 am]
Spaces are allowed here ?
by
440bx
[
Today
at 12:59:39 am]
SDL2 image rotation Probl...
by
TRon
[
Today
at 12:39:30 am]
A Tip for beginners
by
dbannon
[January 18, 2025, 11:30:59 pm]
Width of Project-Close D...
by
Wilko500
[January 18, 2025, 11:08:12 pm]
Looking For Lazarus Tutor...
by
cdbc
[January 18, 2025, 10:32:29 pm]
Fatal: Cannot find Contro...
by
Soner
[January 18, 2025, 09:58:44 pm]
Restoring minimized scree...
by
Soner
[January 18, 2025, 09:41:16 pm]
[SOLVED] SetPart ?
by
BubikolRamios
[January 18, 2025, 08:51:31 pm]
[SOLVED] Operators overri...
by
ackarwow
[January 18, 2025, 07:55:54 pm]
Programs writing programs...
by
MarkMLl
[January 18, 2025, 07:50:40 pm]
How to add new methods to...
by
jmpessoa
[January 18, 2025, 07:27:22 pm]
FPC 3.2.4, naming suggest...
by
ALLIGATOR
[January 18, 2025, 07:16:55 pm]
Preparing FPC 3.2.4, poin...
by
Fred vS
[January 18, 2025, 06:09:48 pm]
TSelectDirectoryDialog do...
by
krzynio
[January 18, 2025, 05:57:40 pm]
Iterator on non-existing ...
by
PascalDragon
[January 18, 2025, 05:08:52 pm]
const declaration
by
PascalDragon
[January 18, 2025, 05:05:55 pm]
How to avoid copying
by
PascalDragon
[January 18, 2025, 05:02:08 pm]
Nested declarations insid...
by
PascalDragon
[January 18, 2025, 04:57:51 pm]
TImage colors incorrect
by
Jonny
[January 18, 2025, 04:17:53 pm]
An interprocess network?
by
cdbc
[January 18, 2025, 03:10:31 pm]
INET TLUDPcomponent for i...
by
cdbc
[January 18, 2025, 03:08:38 pm]
Bug in the formula MATCH,...
by
veb86
[January 18, 2025, 02:40:23 pm]
Bug in the formula MATCH
by
veb86
[January 18, 2025, 02:21:09 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Icon is not displayed in the apk (Read 562 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: 1443
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