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 ?
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".
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 usebuildozer
, I think you can access its auto-downloaded android sdk usingYou 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.