Android Question Application icon on B4XMainPage

Sabotto

Active Member
Licensed User
In "Main" Module
B4X:
#Region Project Attributes
   
    #PackagerProperty: IconFile = ..\Files\icona200.ico
   
#End Region
 
Upvote 0

Sabotto

Active Member
Licensed User
The way I have indicated serves to set the icon you will have for the .exe file
You will indicate the path with a relative link t the folder.
Assuming you have the icon in your project's "MyFiles" folder, you'll write "..\MyFiles\icon_name.ico"
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
#PackagerProperty: IconFile = ..\Files\icona200.ico

This is B4J not B4A.

In B4A and B4XPages nothing has changed.

1698917738270.png
 
Upvote 0

Sabotto

Active Member
Licensed User
I tried with your path and the same icon and it gives problems. Choose another path and icon (use the Files folder)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
#PackagerProperty: IconFile = ..\Files\icona200.ico

This is B4J not B4A.

In B4A and B4XPages nothing has changed.

View attachment 147475
this will not always choose the icon file. if you will in the future update the app and compile you may end with the default b4a icon and not your choosen icon.

the right way to do it is like this:

 
Upvote 0

ilan

Expert
Licensed User
Longtime User
For me it still works, but i have no projects on PlayStore.
in the past i always used this method but in the last 1-2 years i noticed that when i compile old project the choosen icon is not the app icon. if you dont forget to choose the icon before you compile it to the store you will not have any issues but for me it was not the case. using adaptive icons works for me.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I have no result either.
I have never used adaptive icons.
I do not know what happens.

Then I opened the ManifestEditor and erased everything in it and closed and saved it.
When launching the program the next time a new default Manifest file is created.
Then i added a new icon in the IDE, compiled, and it works as expected.

Maybe ilan knows what happens.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
everything works as expected.
the problem is that your forground image in mipmap-xxxhdpi is blank and that is what you see in the phone
change it and you will see that it works fine

(updated project included)
 

Attachments

  • ThreePagesExample v2.zip
    143.5 KB · Views: 41
Upvote 0

aeric

Expert
Licensed User
Longtime User
Go to Manifest Editor and edit as following:

B4X:
'CreateResourceFromFile(Macro, Themes.LightTheme)
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
 

Attachments

  • BackToHolo.zip
    13.8 KB · Views: 38
Upvote 0
Top