Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #1 How to install it like it was in B4A? Only B4XMainPage needs this.
Sabotto Well-Known Member Licensed User Nov 2, 2023 #2 In "Main" Module B4X: #Region Project Attributes #PackagerProperty: IconFile = ..\Files\icona200.ico #End Region Upvote 0
In "Main" Module B4X: #Region Project Attributes #PackagerProperty: IconFile = ..\Files\icona200.ico #End Region
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #3 Sabotto said: In "Main" Module Click to expand... Thank you! But I don’t understand how to specify the path to the icona200.ico file. Upvote 0
Sabotto said: In "Main" Module Click to expand... Thank you! But I don’t understand how to specify the path to the icona200.ico file.
Sabotto Well-Known Member Licensed User Nov 2, 2023 #4 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
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"
klaus Expert Licensed User Longtime User Nov 2, 2023 #5 #PackagerProperty: IconFile = ..\Files\icona200.ico This is B4J not B4A. In B4A and B4XPages nothing has changed. Upvote 0
#PackagerProperty: IconFile = ..\Files\icona200.ico This is B4J not B4A. In B4A and B4XPages nothing has changed.
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #6 Sabotto said: .exe file Click to expand... Can not understand anything. What other .exe file? Upvote 0
Sabotto Well-Known Member Licensed User Nov 2, 2023 #7 Sergey_New said: Can not understand anything. What other .exe file? Click to expand... Sorry. I don't know why, but I thought you were talking about B4J. See Klaus' answer Upvote 0
Sergey_New said: Can not understand anything. What other .exe file? Click to expand... Sorry. I don't know why, but I thought you were talking about B4J. See Klaus' answer
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #8 klaus said: In B4A and B4XPages nothing has changed. Click to expand... I select the file: Spoiler An "Access Denied" message appears. The file at the selected address is deleted. Upvote 0
klaus said: In B4A and B4XPages nothing has changed. Click to expand... I select the file: Spoiler An "Access Denied" message appears. The file at the selected address is deleted.
Sabotto Well-Known Member Licensed User Nov 2, 2023 #9 I tried with your path and the same icon and it gives problems. Choose another path and icon (use the Files folder) Upvote 0
I tried with your path and the same icon and it gives problems. Choose another path and icon (use the Files folder)
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #10 Sabotto said: Choose another path and icon (use the Files folder) Click to expand... Does not help. Upvote 0
klaus Expert Licensed User Longtime User Nov 2, 2023 #11 Where is your image file located ? It can be anywhere on your disk, and select it with the File Explorer. Upvote 0
Where is your image file located ? It can be anywhere on your disk, and select it with the File Explorer.
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #12 klaus said: It can be anywhere on your disk, and select it with the File Explorer. Click to expand... No matter where I place the file, Spoiler there is no result. Attachments ThreePagesExample.zip ThreePagesExample.zip 410.4 KB · Views: 477 Upvote 0
klaus said: It can be anywhere on your disk, and select it with the File Explorer. Click to expand... No matter where I place the file, Spoiler there is no result.
ilan Expert Licensed User Longtime User Nov 2, 2023 #13 klaus said: #PackagerProperty: IconFile = ..\Files\icona200.ico This is B4J not B4A. In B4A and B4XPages nothing has changed. View attachment 147475 Click to expand... 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: Adaptive Icons - simple instructions and tips All apps should have an adaptive icon. If you are not familiar with these icons then start here: Adaptive Icons Instruction steps: Create a new folder in the root project folder named icon. Create two folders inside that folder with the following files: mipmap: ic_launcher.png -... www.b4x.com Upvote 0
klaus said: #PackagerProperty: IconFile = ..\Files\icona200.ico This is B4J not B4A. In B4A and B4XPages nothing has changed. View attachment 147475 Click to expand... 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: Adaptive Icons - simple instructions and tips All apps should have an adaptive icon. If you are not familiar with these icons then start here: Adaptive Icons Instruction steps: Create a new folder in the root project folder named icon. Create two folders inside that folder with the following files: mipmap: ic_launcher.png -... www.b4x.com
klaus Expert Licensed User Longtime User Nov 2, 2023 #14 For me it still works, but i have no projects on PlayStore. Upvote 0
ilan Expert Licensed User Longtime User Nov 2, 2023 #15 klaus said: For me it still works, but i have no projects on PlayStore. Click to expand... 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 said: For me it still works, but i have no projects on PlayStore. Click to expand... 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.
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #16 ilan said: the right way to do it is like this: Click to expand... I did as indicated in the link. There is no result. I am attaching the project, please look at what is wrong in it. Attachments ThreePagesExample.zip ThreePagesExample.zip 16.7 KB · Views: 546 Upvote 0
ilan said: the right way to do it is like this: Click to expand... I did as indicated in the link. There is no result. I am attaching the project, please look at what is wrong in it.
klaus Expert Licensed User Longtime User Nov 2, 2023 #17 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
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.
ilan Expert Licensed User Longtime User Nov 2, 2023 #18 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 ThreePagesExample v2.zip 143.5 KB · Views: 504 Upvote 0
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)
Sergey_New Well-Known Member Licensed User Longtime User Nov 2, 2023 #19 ilan said: everything works as expected. Click to expand... Looked at the attached example. You probably didn’t understand me, it created an adaptive application icon, and I need the icon to be displayed on the B4XMainPage page: Upvote 0
ilan said: everything works as expected. Click to expand... Looked at the attached example. You probably didn’t understand me, it created an adaptive application icon, and I need the icon to be displayed on the B4XMainPage page:
aeric Expert Licensed User Longtime User Nov 2, 2023 #20 Go to Manifest Editor and edit as following: B4X: 'CreateResourceFromFile(Macro, Themes.LightTheme) SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light") Attachments BackToHolo.zip BackToHolo.zip 13.8 KB · Views: 416 Upvote 0
Go to Manifest Editor and edit as following: B4X: 'CreateResourceFromFile(Macro, Themes.LightTheme) SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")