APK install from python script
#1
hi.
is there any way i can install an APK in android throw kodi ADDON?

thanks for your help.
Reply
#2
You can do it using this code:

Code:
apkfile = "path/yourapp.apk"
xbmc.executebuiltin('StartAndroidActivity("","android.intent.action.VIEW","application/vnd.android.package-archive","file:'+apkfile+'")')

You will need to implement the rest of the code to download the apk from the internet if you need that.
Reply
#3
Thanks i will try that
Reply
#4
Code:
apkfile = "path/yourapp.apk"
xbmc.executebuiltin('StartAndroidActivity("","android.intent.action.VIEW","application/vnd.android.package-archive","file:'+apkfile+'")')


I have tried it, it runs well on latest version kodi krypton
Reply
#5
This doesn't seem to work on the FireTV.  It tries to install but I get "Parse Error (There was a problem parsing the package.)"

Anyone had any success with this on the FireTV?

UPDATE: Ugh... I was immediately deleting the APK file after issuing the 'xbmc.executebuiltin()'. I assumed it was waiting for the command to return.  Nevermind.  Smile  Thanks!!!
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
APK install from python script00