Thread Rating:
  • 0 Vote(s) - 0 Average
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



APK install from python script00