Android apk only generates the generic icon - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Android apk only generates the generic icon - Solved

Post by DR White » Thu Feb 09, 2023 12:40 pm

I have tried several different types and ways to populate the standalone Android icon field, but nothing works.
I always get a warning " Icon does not exist:/Volumes/LiveCode Indy 9.6.0 (rc 1)/LiveCode Indy 9.6.0 (rc 1).app/Contents/Tools/Runtime/Windows/x86-32/Support/Sample Icons/genericapp.ico "

What am I doing wrong?

Thanks,

David
Last edited by DR White on Fri Feb 10, 2023 5:00 pm, edited 2 times in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android apk doesn't have icon

Post by jacque » Thu Feb 09, 2023 6:52 pm

LC should have put the generic icon in by itself if you've selected no icon or the field is empty. Something may have changed with permissions in Windows though. Copy the icon into the same folder with the stack and set the builder to that path.

Edit: I just noticed you are using a windows ico file, that won't work. You need plain PNG or JPG images. Also, if you are planning to submit to the Play Store you'll need to create an adaptive icon bundle, but for personal use an image is fine.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk doesn't have icon

Post by DR White » Thu Feb 09, 2023 9:23 pm

Jacque,

I am sorry. I I said I didn't get any icon, I meant that I did not get the icon with the image I put in the icon location. I got just the generic icon.

Yes, I plan to send to google play store. The app is an interactive educational app for Mechatronic students.
Thanks for letting me know that I need to use the adaptive icon.

Thanks,

David

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk doesn't have icon

Post by DR White » Thu Feb 09, 2023 10:16 pm

Jacque,

I have not sent any apps to Apple or google during the last two years and things sure have gotten much more complicated!!

Concerning the google adaptive icon, I thought I could just go to a website and download it to my computer and then on my LC standalone, Android settings select the downloaded file. But, that didn't work. When I went to compile I got the following:
There was an error while saving the standalone application
could not link resources - error:
/private/var/folders/vt/wfknl4rj6_8rz3h7nml5r0000gn/T/TemporaryItems/tmp.2230.PWplGiy8/AndroidManifest.xml:5:
error.resource mipmap/ic_launcher(aka com.DavidWhite.PLC2:mipmap/ic_launcher) not found.
error: Failed processing manifest.
What does this error mean?
Where can I go to to learn how to create adaptive icons with LC so that I can get this app into google play store?

Thanks,

David

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk only generates the generic icon

Post by DR White » Fri Feb 10, 2023 12:54 am

By the way,

After I failed at installing adaptive icon bundle, I reloaded the image location for the legacy icon, the app legacy icon then looked like it was suppose to.

Where can I find out how to install adaptive icon bundle using LC.

Thanks,

David

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android apk only generates the generic icon

Post by jacque » Fri Feb 10, 2023 1:17 am

Yes, it gets harder each time I submit. Apple is the same way, though it's hard to imagine how they could make it more painful than it already was.

You pretty much have to use Android Studio, which is also an interesting trip. Here's a lesson: https://lessons.livecode.com/m/4069/l/1 ... on-android

The error you got means the manifest isn't correct. I remember early on that I needed to edit it myself until LC added adaptive icons to the standalone builder. Does Indy include an icon choice for adaptive icons?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk only generates the generic icon

Post by DR White » Fri Feb 10, 2023 11:29 am

Jacque,

You are the BEST!

I totally agree with you "though it's hard to imagine how they (Apple) could make it more painful than it already was."

Yes, Indy has choice for adaptive icons.

I am using LC 9.6.6 on a MacBook Pro, macOS Big Sur, version 11.7.3
I down loaded Android Studio 2 days ago and got all the LC Android requirements, including the jdk path. LC is happy with Android setup and
making successful standalone. Then, I closed the Android Studio and it like was gone. I went to my launch page and searched "Android Studio" and got no results. I was running a little low on hard drive (50 GB). I emptied my trash and now have 100 GB. I will reload Android Studio this morning and
work on adaptive icon. Thanks so much for the link to the lesson.

On a different subject, I am having a lot of hardship making provisions. A long time ago I made a typo when making a "Request for Certificate" to apple and I used DavidRwhite instead of DavidRWhite for the common name. The LC lesion on making certificates years ago indicated that
the "Common Name" was not that important, but seems like I have to go through the "Provision" procedure several times using
different "Common Names "to get a valid Profile.
Question: Does the "Common Name" need to match the bundle ID?

Thanks,

David

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk only generates the generic icon

Post by DR White » Fri Feb 10, 2023 2:54 pm

Jacque,

That link you posted is excellent!

But, I guess I am an unusually slow student.

I continue to get this error:
There was an error while saving the standalone application
could not link resources - error:
/private/var/folders/vt/wfknl4rj6_8rz3h7nml5r0000gn/T/TemporaryItems/tmp...8/AndroidManifest.xml:5:
error.resource mipmap/ic_launcher(aka com.DavidRwhite.PLCSim2:mipmap/ic_launcher) not found.
LC app Identifier: com.DavidRwhite.PLCSim2

---- Android Studio info ---

Package name: com.DavidRwhite.PLCSim2

Save Location: /Users/drwhite777/AndroidStudioProjects/MyApplication6

Minimun SDK: API 30
--------------

I open in finder and note the location

goto LC and set the adaptive icon to the "res" directory of that location location

save file

make standalone

-------------------------------

While I am in the Android Studio, I got the location of the "res" directory and set the location of the LV Adaptive Icon window to it, but it still
cannot find what it looking for. Is there a way I can see what file LC is seeing that is incorrect?

I tried at least a dozen times (with different small tweaks) and am out of ideas and don't know what else to do.

Any guidance is appreciated.

Thanks,

David

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk only generates the generic icon

Post by DR White » Fri Feb 10, 2023 4:59 pm

Praise The Lord!!

Hallelujah!!

I upgraded to LC 9.6.8 and reloaded the Android Adaptive icon location and everything works BEAUTIFULLY!!

Thank you so much for the LC lesson link and recommending Android Studio!!

God bless you and all the LC supporters,

David :D :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android apk only generates the generic icon - Solved

Post by jacque » Fri Feb 10, 2023 8:48 pm

Congratulations. I was about to let you know where my adaptive icons are stored, but it seems you figured it out. For what it's worth, I usually copy the res folder out of the default location and into my working app folder where it's easy to find and use later.

Apple provisioning file: I think you can change the common name by creating a new provisioning request but I'm not sure. The name should not match the bundle ID; the bundle ID identifies the app and the name is part of the data that identifies the developer. No one really sees the name so the typo doesn't matter, my guess is that it's just used to generate an encrypted string. You can save yourself some trouble by leaving it alone.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Android apk only generates the generic icon - Solved

Post by DR White » Fri Feb 10, 2023 8:53 pm

In the spirit of total transparency, I believe the original problem was due to the test device that I was using had not been updated for over a year. I believe that it was after I updated it I was able to see the LC generated legacy icon.

However, I am glad that things happened the way they did.
It was only through the response of Jacque, that I found out about needing the "Adaptive icon" for google play and how to use the Android Studio to generate it.

Thanks again to the LC team,

David

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android apk only generates the generic icon - Solved

Post by jacque » Mon Apr 10, 2023 7:40 pm

@ moderators
This is the second time recently that I've seen posts suspiciously like ChatGPT would generate. In this case:
1. Identical duplicate postings
2. Posted to a topic that was already solved
3. Language far too formal for our type of forum
4. First post from a user that joined the same day

I think we will see more of this going forward.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Android apk only generates the generic icon - Solved

Post by Klaus » Mon Apr 10, 2023 9:02 pm

jacque wrote:
Mon Apr 10, 2023 7:40 pm
@ moderators
This is the second time recently that I've seen posts suspiciously like ChatGPT would generate...
HA, Exactky my thoughts. :-)
Say good-bye to Mr. F.!

thawsoe7@yahoo.co.uk
Posts: 5
Joined: Tue Dec 08, 2020 2:00 pm

Re: Android apk only generates the generic icon - Solved

Post by thawsoe7@yahoo.co.uk » Fri Aug 04, 2023 2:15 pm

Hi,
I hope this is the right place to post my problem.
I'm getting errors when trying to use adaptive icons.
I've followed the livecode tutorial:

how-to-create-and-use-adaptive-icons-on-android

I have successfully used adaptive icons before. (Last February 2022)

One of the posts by Jaque says that the android manifest isn't correct. How would I edit that? What would I add/remove?
Thanks in advance.
Regards,

Thaw

LiveCode nine dot six dot nine (To deploy to Android Play Store)
LiveCode nine dot six dot eight
LiveCode nine dot six dot seven (rc 2)
OSX Sierra ten dot twelve dot six
Attachments
Link Resources Error.jpeg
Can't generate package manifest.jpeg

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android apk only generates the generic icon - Solved

Post by jacque » Fri Aug 04, 2023 5:58 pm

If you use a version of LC that includes the adaptive icon option in standalone settings then you don't need to edit the manifest. That was fixed a long time ago. Use LC 9.6.9 to build the apk.

Did you create the icon in Android Studio? That's the only way I've found that works. You will find the res folder in Android Studio Projects. Search for that folder, its location depends on your OS.

Copy the res folder to a convenient location. I usually put the copy in my development folder. Then in Android standalone settings, choose the adaptive icon option and select the res folder as the source folder.

That should be all you need.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”