Packaging for Android
Android is also a popular platform for developers. With Kivy, we can use Android as the first step for our app into the mobile world because we can test it on Android. When we know that it is working and popular, we can release our app in the iOS sector without additional programming and deliver the app to as many users as possible. In this recipe, we shall create a package for Android with a simple app.
Getting ready
We need to install Buildozer to create the package. From the shell in the selected location, let's run:
$ git clone https://github.com/kivy/buildozer.git
Now go to the buildozer
folder:
$ cd buildozer
Finally, we set up Buildozer with:
$ sudo python setup.py install
We also need to install python-for-android
. We do it from this shell:
$ git clone git://github.com/kivy/python-for-android
We build our distribution with:
$ ./distribute.sh -m "kivy"
Finally, we need an app to be packaged. In this recipe, we will use similar app as used in the recipe Evolving...