#Android C compile Notes
#install needed files
sudo apt install android-sdk adb build-essential git unzip google-android-platform-24-installer openjdk-11-jdk-headless
#also could be downloaded from:
#wget -c https://dl.google.com/android/repository/platform-24_r02.zip
#Might get a smaller sdk with this, but I have not tested it:
#https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
#get Google Android ndk
#if in repose
sudo apt install google-android-ndk-installer
###if not download it###
wget -c https://dl.google.com/android/repository/android-ndk-r21b-linux-x86_64.zip
unzip
########################
#set paths
#if you manually installed sdk and ndk then they might be in a different location
export NDK=/usr/lib/android-ndk
export ANDROID_HOME=/usr/lib/android-sdk
export SDK_LOCATIONS=/usr/lib/android-sdk
#CHANGE "android-23" to your version
PATH=/usr/lib/android-sdk/platforms/android-23:$PATH
#get example code
git clone https://github.com/cnlohr/rawdrawandroid --recurse-submodules
#compile, push to device, and run
make keystore
make push run