2

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 ?

paarth batra
  • 1,392
  • 4
  • 29
  • 53

2 Answers2

4

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.

mihai
  • 4,592
  • 3
  • 29
  • 42
inclement
  • 29,124
  • 4
  • 48
  • 60
  • kivy usually saves the logs in the kivy launcher project directory as .kivy but those logs are just kivy logs . I mean it dont show any of the outputs of the print statements . – paarth batra Apr 14 '14 at 07:19
1

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".