Testing on Android

Right now, our app still doesn't contain any non-portable code, but let's gradually move towards our platform of choice nevertheless and begin testing it on Android. The only prerequisite for this operation is an Android device, physical or virtualized, with the Kivy Launcher application installed and working.

Packaging an app for Kivy Launcher is borderline trivial. We're going to add two files, android.txt and icon.png, to the same folder where other sources (in this case, main.py and recorder.kv) reside and then copy the folder to an SD card of the Android device under /Kivy. The directory structure should look something like the following:

SD card directory structure for Kivy Launcher

When you start Kivy Launcher, it will spell ...

Get Kivy Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.