Page 1 of 1

APK won't install

Posted: Wed Jul 25, 2018 1:08 pm
by ajperks
Having managed to create an APK from a simple stack for testing, I have hit the final brick wall.
Phone, Samsung S9+ Orio
APK in a folder (My APK) on sd card in phone
Using the phone in developer mode, I found and double click the files.APK (the app name) and first it asks "Do you want to install this application. And a list of items it will get access to.
I click install and after a second, it shows "App not installed"


Any ideas why this might be?

Re: APK won't install

Posted: Wed Jul 25, 2018 3:10 pm
by LiveCode_Panos
Hello ajperks,

I assume you have already changed the phone settings to allow installation of apps from "unknown sources", is that correct?

The next thing to check is that you have signed the standalone in the android standalone settings ("Sign for development only" will be enough). Note that when you install a standalone directly to your device via the "Test" button in the IDE, this signing option is not needed (I *think* the standalone builder does that behind the scenes). But when you build an .apk, and instal this .apk with a different way, then this needs to be signed (even just "for development only").

Please let us know if this fixed the problem for you.

Best,
Panos
--

Re: APK won't install

Posted: Wed Jul 25, 2018 4:42 pm
by ajperks
Hi Panos,
Thank you for your invaluable help. The app is now installed and working.
The "unknown sources" point was not the issue, but it could easily have been. FYI, ORIO no longer has the simple selection or switch. Internet searches reveal procedures that no longer exist on this phone. As a result, I moved on to the signing. I was aware of it, but read from one of the lessons that it needn't be signed. This of course must be wrong, because your advice, sign for dev only, worked perfectly.

I am now a happy bunny and will proceed with modifying my novel database designed years ago for desktop, with horizontal & vertical scroll bars, so It can be fitted on the phone.

At last I can move forward with LC again after a 3 year break. Lots to catch up on.

Re: APK won't install

Posted: Thu Jul 26, 2018 2:03 pm
by LiveCode_Panos
You're welcome ajperks, happy livecoding :)

Best,
Panos
--