doc:appunti:prog:kivy_debian_12_android_11
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:prog:kivy_debian_12_android_11 [2023/09/29 14:55] – [Writing the buildozer.spec file] niccolo | doc:appunti:prog:kivy_debian_12_android_11 [2024/04/02 08:29] – [Compiling the package] niccolo | ||
---|---|---|---|
Line 181: | Line 181: | ||
You can use **presplash.filename** and **icon.filename** to include two artwork in your app. The // | You can use **presplash.filename** and **icon.filename** to include two artwork in your app. The // | ||
- | In **android.permissions** you must list all the permissions that your app will require from the operating system. If you forget to declare something your app simply will not be able to do that operation. Beware that starting from Android 10 the access to the external storae (basically the space into the SD card or into the device memory) has undergone a drastic change. | + | In **android.permissions** you must list all the permissions that your app will require from the operating system. If you forget to declare something your app simply will not be able to do that operation. Beware that starting from Android 10 the access to the external storae (basically the space into the SD card or into the device memory) has undergone a drastic change, see the table below for a basic overview. |
- | ^ READ_EXTERNAL_STORAGE | + | ^ READ_EXTERNAL_STORAGE |
^ WRITE_EXTERNAL_STORAGE | ^ WRITE_EXTERNAL_STORAGE | ||
- | ^ CAMERA | + | ^ CAMERA |
- | ^ MANAGE_EXTERNAL_STORAGE | + | ^ MANAGE_EXTERNAL_STORAGE |
+ | |||
+ | === Target API vs Minimum API vs Compile SDK === | ||
+ | |||
+ | Into the **buildozer.spec** you can define the following: | ||
+ | |||
+ | < | ||
+ | # (int) Target Android API, should be as high as possible. | ||
+ | # | ||
+ | |||
+ | # (int) Minimum API your APK / AAB will support. | ||
+ | # | ||
+ | |||
+ | # (int) Android SDK version to use | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | By setting a **target API** lower than your SDK can support, you can declare what will be the highest Android version that your app is designed to be compatible with. At the moment Buildozer will try to target API 31 (**Android 12**). | ||
+ | |||
+ | Declaring a **minimum API** you can tell what is the minimum Android version required by your app. We did not declared the android.minapi, | ||
+ | |||
+ | The **compile SDK** is the environment you want to use to create the app, i.e. the SDK you downloaded from Google (which generally support the higher API available at the moment). This will affects what functions and constructs you can use in your program. If you do not specify a version, Buildozer should detect the highest SDK downloaded and use it. In our case only one SDK was downloaded, and it was SDK API 31. | ||
==== Compiling the package ==== | ==== Compiling the package ==== | ||
+ | |||
+ | Enter the project directory and edit the **main.py** source code updating the definition of the **%%__version__%%** variable (the **buildozer.spec** will refer this value to create the package name). Then choose to make a debug build: | ||
< | < | ||
- | # Choose debug or release build: | ||
buildozer android debug | buildozer android debug | ||
- | #buildozer android release | ||
</ | </ | ||
+ | |||
+ | The package will be created into the **bin/** subdirectory, | ||
+ | |||
+ | When you are ready to **publish** your package, you must create the //release// binary: | ||
+ | |||
+ | < | ||
+ | buildozer android release | ||
+ | </ | ||
+ | |||
+ | In this case the package created into the **bin/** subdirectory will be named like **packagename-version-arm64-v8a_armeabi-v7a-release.aab**, | ||
+ | |||
===== Web Resources ===== | ===== Web Resources ===== | ||
* **[[https:// | * **[[https:// | ||
- | * **[[https:// | + | * **[[https:// |
* **[[https:// | * **[[https:// | ||
* **[[https:// | * **[[https:// | ||
- | * **[[https:// | + | |
- | * **[[https:// | + | |
- | * **[[https:// | + | * **[[https:// |
- | * **[[https:// | + | |
- | * **[[https:// | + | |
* **[[https:// | * **[[https:// | ||
+ | * **[[https:// | ||
* **[[https:// | * **[[https:// | ||
+ | * **[[https:// | ||
+ | |||
* **[[https:// | * **[[https:// | ||
+ | |||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
doc/appunti/prog/kivy_debian_12_android_11.txt · Last modified: 2024/04/04 07:31 by niccolo