Downloading apk

J. Landman Gay jacque at hyperactivesw.com
Fri Jul 19 20:54:06 EDT 2019


Thanks, that settles it. I'll just direct the user to the web site where 
they can click a link and it installs.

After I posted I did find the download in Chrome's download folder but I 
think that would generate too many support calls, especially since I 
couldn't find it immediately myself.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On July 19, 2019 4:51:46 PM Ralph DiMola via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> This is harder than I thought.. You need to create intents(different ones
> for various Android OS versions), add REQUEST_INSTALL_PACKAGES in your
> manifest and make sure you have permission to external storage.
>
> The Browser method will only allow you to download the apk to the download
> folder and the user will have to browse to it with a file manager and click
> on it to start the install.
>
> Why your browser is not starting the download might be Chrome trying to save
> you from malicious apps? I can download an apk if I type a url into Chrome.
> Maybe you can get around this with a page redirect?
>
> All in all to make this automatic will be a process.
>
> Maybe a stub stack and downloading a new main stack to update might be
> easier?
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
>
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
> Of J. Landman Gay via use-livecode
> Sent: Friday, July 19, 2019 5:16 PM
> To: LiveCode Mailing List
> Cc: J. Landman Gay
> Subject: Downloading apk
>
> I'm trying to download an apk update from a server without success. What is
> the correct URL format? This fails:
>
>   launch url ("https://www.mydomain.com/myapp.apk")
>
> This launches Chrome but stops at whatever web page was previously open.
> It doesn't even go to the designated domain. The goal is to have Android
> recognize the file type and offer to install/update.
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode







More information about the Use-livecode mailing list