I am trying to build an update system for Android to bypass the Google Store.
Now I have a version-check to see if there is a new version available, uploaded my new version (APK file) to dropbox and everything
For some reason Android wont open my APK-file, while it does open on my Mac (With an error saying it does not know how to open the file, understandable..)
This is my code on Downloading and launching the APK file from dropbox:
Code: Select all
put "/NewestVersion.apk" into pPath
put db2_download (pPath) into url ("file:" & specialfolderpath("documents") & "/NewestVersion.apk" )
put the result into tResult
answer tResult
launch url ("file:" & specialfolderpath("documents") & "/NewestVersion.apk" )
Thanks in advance!