Can't install a second apk

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Reno-Muc
Posts: 6
Joined: Thu Oct 24, 2024 3:33 pm

Can't install a second apk

Post by Reno-Muc » Mon Nov 25, 2024 10:40 am

Hi, I'm trying to install one more apk on Android 14, but it overrides the existing one.
Why??? How to make it possible?

Any help ist appreciated.

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Mon Nov 25, 2024 10:50 am

Hi Reno-Muc,

welcome to the forum! :-)

Android does not care about the NAME of an APK, it checks the IDENTIFIER of the APK, see screenshot.
So if your second APK has the same identifier, it will probably be overwritten.
Maybe that is the problem? Change the identifier and try again.


Best

Klaus
android_identifier.png

Reno-Muc
Posts: 6
Joined: Thu Oct 24, 2024 3:33 pm

Re: Can't install a second apk

Post by Reno-Muc » Mon Nov 25, 2024 4:09 pm

Thank You Klaus, I'll try.

The identifier is the same as in the template from which I derived my app (because I had basic problems to install my first try).

SparkOut
Posts: 2903
Joined: Sun Sep 23, 2007 4:58 pm

Re: Can't install a second apk

Post by SparkOut » Mon Nov 25, 2024 10:05 pm

You also need to update the Version code

Reno-Muc
Posts: 6
Joined: Thu Oct 24, 2024 3:33 pm

Re: Can't install a second apk

Post by Reno-Muc » Tue Nov 26, 2024 10:56 am

Hi Klaus, I used a different identifier and it worked :D , thank you very much.

I don't know if I changed the version code too. Sometimes I did, but I had so many tries with my two small apps, that I lost the overwiew :roll:

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Tue Nov 26, 2024 12:06 pm

Hi Reno-Muc,
Reno-Muc wrote:
Tue Nov 26, 2024 10:56 am
Hi Klaus, I used a different identifier and it worked :D , thank you very much.
great! :-)
Reno-Muc wrote:
Tue Nov 26, 2024 10:56 am
I don't know if I changed the version code too. Sometimes I did, but I had so many tries with my two small apps, that I lost the overwiew :roll:
Changing the version number will only be neccessary if you want to UPDATE the SAME app.

Best

Klaus

Reno-Muc
Posts: 6
Joined: Thu Oct 24, 2024 3:33 pm

Re: Can't install a second apk

Post by Reno-Muc » Tue Nov 26, 2024 1:55 pm

In context with the Standalone Settings I had another problem:

In my first tries had the Icon field empty and the app could not be installed (message with no more details).
I selected an 48x48-pixel icon type png, but without success.

Since I had a template from Lemuel Dizon, which I got running immediately, I found the icon entry as shown in the screenshot:

The entry is { /ICONS 48x48/48x48/app_48 png }

I could not find this file in any place of his distribution, but the app worked !!!

To get my apps running I used this workaround:

- load the template
- load my app
- delete cards and elements not needed
- copy and paste my cards into the template
- choose appropiate app names, save and build my standalone which now includes the icon entry of the template and IT WORKS TOO !!!

One last remark: perhaps I should open a new thread on this theme?
Attachments
StandaloneSettings-.png

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Tue Nov 26, 2024 2:07 pm

Hi Reno-Muc,

due to a lot of spammers, you need to have at least 7 postings before you can post screenshot and/or attachments here!
You can add any PNG file (I use a 512*512 px) as an icon for your app, but then you need to click "Legacy" for the icontype, see screenshot.
If you click "Adaptive", then LC (and Android) exspects a FOLDER with some XML and PNG files.

Best

Klaus
icontype.png

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Tue Nov 26, 2024 2:09 pm

Oh, just saw your screenshot, what version of LC are you using?
And how did you manage to add this attachments? :shock:

Reno-Muc
Posts: 6
Joined: Thu Oct 24, 2024 3:33 pm

Re: Can't install a second apk

Post by Reno-Muc » Tue Nov 26, 2024 3:45 pm

I'm using LC community 9point6point3. This row with Adaptive and Legacy ist not present.

The attachement I could include after several approaches by adding it in the adequate size.

Why can't I use the sign point or other signs which are interpreted as url ???

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Tue Nov 26, 2024 3:58 pm

Reno-Muc wrote:
Tue Nov 26, 2024 3:45 pm
I'm using LC community 9point6point3. This row with Adaptive and Legacy ist not present.
Yes, that has chnged in later versions.
Reno-Muc wrote:
Tue Nov 26, 2024 3:45 pm
The attachement I could include after several approaches by adding it in the adequate size.
Congratulations!
This is actually not meant to happen! :-D
Reno-Muc wrote:
Tue Nov 26, 2024 3:45 pm
Why can't I use the sign point or other signs which are interpreted as url ???
You gave the answer yourself, because the VERY CLEVER forum software will see this an url. :-D

Klaus
Posts: 14016
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can't install a second apk

Post by Klaus » Thu Nov 28, 2024 1:19 pm

Sorry, I made a mistake, the restriction for users with < 7 postings is only for posting URLs.
Attachments can be erm. attached any time. :-)

Post Reply

Return to “Android Deployment”