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
New Splash Screen For Laz...
by
carl_caulkett
[
Today
at 10:57:14 pm]
Possible to do this? (aca...
by
marcov
[
Today
at 10:43:21 pm]
Common File Dialogs Have ...
by
marcov
[
Today
at 10:40:29 pm]
Open Another Form LAMW An...
by
c4p
[
Today
at 10:22:20 pm]
Camera OCR / Sorting / AI...
by
marcov
[
Today
at 10:15:03 pm]
Binary String to Integer ...
by
MathMan
[
Today
at 08:27:00 pm]
CalcEdit I think this is ...
by
wp
[
Today
at 08:10:35 pm]
Lazarus have if_variant. ...
by
d2010
[
Today
at 06:45:17 pm]
How to draw some rectangl...
by
Hartmut
[
Today
at 06:44:33 pm]
Lazarus Release Candidate...
by
LBox
[
Today
at 06:35:54 pm]
Fields Editor hangs
by
Roald
[
Today
at 06:13:16 pm]
Access violation whenever...
by
carl_caulkett
[
Today
at 05:04:59 pm]
How to really prevent a c...
by
rvk
[
Today
at 05:03:52 pm]
Confusion with signed typ...
by
marcov
[
Today
at 05:03:15 pm]
[SOLVED] Synapse: How to ...
by
rvk
[
Today
at 04:26:12 pm]
Required packages dependi...
by
korba812
[
Today
at 03:17:49 pm]
/lib/arm-linux-gnueabihf/...
by
dieselnutjob
[
Today
at 02:17:00 pm]
How to load dylib for fpw...
by
Cascade
[
Today
at 01:56:00 pm]
Migrating GameWork first ...
by
dng8888g
[
Today
at 01:32:12 pm]
Sending a signal/message ...
by
Thaddy
[
Today
at 11:42:51 am]
Cross compiling
by
Thaddy
[
Today
at 11:41:26 am]
Building a packet from sc...
by
Remy Lebeau
[
Today
at 11:09:46 am]
Name of calling procedure...
by
Khrys
[
Today
at 10:39:24 am]
Zooming and Panning in a ...
by
cdbc
[
Today
at 07:27:43 am]
AVRPascal – free code edi...
by
ackarwow
[
Today
at 07:24:16 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Icon is not displayed in the apk (Read 313 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: 1393
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