Goal of this project is to develop basic start project for developing Android applications inside Termux terminal on Android devices.
- Install Termux on your phone.
- Install tools in your Termux:
- apt install jack make aapt git zip apksigner
- Clone this repository to your home dir:
- Pick Android SDK version which you want to use to build this application by copying file android.jar from locations like:
- Android SDK/platforms/android-10/android.jar
- Android SDK/platforms/android-23/android.jar
- and so on... to ./lib/ directory of this project.
- Run build process with command:
- make to build debug version of APK package
- make release to build release version of APK package
- Your "Hello world" application should be waiting in ./bin/ directory.
This project can be built on Linux machine. To do this please edit and use makefile.linux_pc.
By default you cant access your home directory in Termux. To be able to get your hands on your newly created program you must call termux-setup-storage (only once after installation of Termux on your phone). After this operation you now can access your phone storage through ~/storage path.
Each time you build new version of your application you can copy it from ./bin folder of your project to ~/storage and install it from there on your phone.