android-app-native/README.md

38 lines
1.6 KiB
Markdown

# Android App Written in C (build via docker/podman)
This repo provides its user with the ability to setup and compile a Android-App that is
based on `android.app.NativeActiviy` and thus can be completely compiled C source-code.
It is an adoptation (and hopefully somehow simplification of this repo [`rawdrawandroid`](https://github.com/cnlohr/rawdrawandroid)
and this many thanks and credits to most of the c-code goes to CNLohr.
## usage
0. clone this repo
1. run
```
./build-android-app.sh
```
2. follow the configuration (configuration is less than in the normal case of [android-app](https://git.alexmahr.de/lion/android-app) as the API-Level is inserted fixed as "29" )
3. upon success the apk file created is in app/result/app.apk and can be installed via `adb`
```
adb install -r app/result/app.apk
```
## basic ideas
* work within container (debian based image)
* use Makefile as a build tool
* avoid the "unhappiness" of having to deal with neither KOTLIN nor JAVA
## benefits of this (compared to AndroidStudio)
* no need to install rather bloated hell of software (i.e AndroidStudio) and all
* less hidding of internals (i.e Makefile allows to see how app.apk is made)
* small app.apk file
* oftentimes faster compile time (as compared with AndroidStudio Gradle builds)
* quick "webview" which can serve as starting point for people that can to PWA and websites
* Assisted initial configuration provides access to configure almost all types of [Android app permissions](app/.Makefile.scripts/make--app-config.sh#L127)
* no need to have Kotlin, Gradle setup, nor use JAVA