Logs Generated when launching an App in Kivy Launc

2019-02-27 16:46发布

I know we can launch an app in Android using Kivy launcher for android https://play.google.com/store/apps/details?id=org.kivy.pygame

and i can launch apps by the same as well . But i need to know how and where can we see the logs generated by the app in it ? For example if i run kivy app on my desktop i will be able to see logs on console but where will i find them when launching an app by kivy launcher ?

If we cant see logs is there any ways to make this possible ?

2条回答
对你真心纯属浪费
2楼-- · 2019-02-27 17:24

When your application is executed a .kivy folder will be created (if not already there). In it you'll see a logs folder. The logs there are the same obtained via "adb logcat".

查看更多
Deceive 欺骗
3楼-- · 2019-02-27 17:25

On android, kivy prints all python's normal terminal output to the android logcat stream. You can view this from the desktop by connecting your phone via usb and doing adb logcat. adb is provided by the android sdk, so if it's not in your path you can probably find it there. If you use buildozer, I think you can access its auto-downloaded android sdk using

buildozer android logcat

You can also view the adb output using some apps on the play store (may only work with older android versions though, I think something changed here).

Kivy may also store logs as text files somewhere on the sd card, possibly in the app directory (i.e. somewhere in the kivy launcher's kivy directory), but I haven't ever really used this, adb is a lot more convenient.

查看更多
登录 后发表回答