Solved Install extern APK from python code in Leia
#14
(2019-01-10, 19:47)lunamoon Wrote: Hello friends.

I have a problem and I do not know if it is a bug of Kodi 18 RC4 or is that now it can not be done this way.

I mean, I had made an addon that downloads and installs RetroArch. In Krypton it worked perfectly. But I've been testing Kodi 18 Leia.

And although the download continues to work perfectly, when I try to install the APK I get an exception, but it does not give any information in the log.

The python command that I use is:

xbmc.executebuiltin ('StartAndroidActivity ("", "android.intent.action.VIEW", "application / vnd.android.package-archive", "file:' + pathdownload + '")')

And pathdownload is correct, it points directly to the RetroArch APK. As I say, Krypton works perfectly; but in Leia, looking at the log, this error appears:

16: 49: 11.528 T: 534199280720 INFO: CPythonInvoker (1, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.insretroarch/default.py): script successfully run
16: 49: 11.528 T: 534199280720 DEBUG: onExecutionDone (1, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.insretroarch/default.py)
16: 49: 11.546 T: 534392075344 ERROR: CXBMCApp :: StartActivity - ExceptionOccurred launching
16: 49: 11604 T: 534199280720 INFO: Python interpreter stopped
16: 49: 11604 T: 534199280720 DEBUG: Thread LanguageInvoker 534199280720 terminating
16: 49: 11.612 T: 534200317008 ERROR: GetDirectory - Error getting plugin: //script.insretroarch/
16: 49: 11.613 T: 534200317008 DEBUG: Thread waiting 534200317008 terminating
16: 49: 11.627 T: 534392075344 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16: 49: 11.627 T: 534392075344 ERROR: CGUIMediaWindow :: GetDirectory (plugin: //script.insretroarch/) failed
16: 49: 11.627 T: 534392075344 DEBUG: CGUIMediaWindow :: GetDirectory () 16: 49: 11.628 T: 534392075344 DEBUG: ParentPath = [plugin: //script.insretroarch/]

If you need the source code of the addon or a more extensive log, just tell me. Thanks for your help.
Would you mind posting the full addon? Im trying to update an addon I have to do something like this on the firesticks running nougat and I am struggling. I can edit code but doing it from scratch is not simple for me.
Reply


Messages In This Thread
RE: Install extern APK from python code in Leia - by boosta01 - 2019-08-25, 04:09
Logout Mark Read Team Forum Stats Members Help
Install extern APK from python code in Leia0