diff --git a/Working-for-Android-(on-Linux).md b/Working-for-Android-(on-Linux).md index 3990801..c30b3f3 100644 --- a/Working-for-Android-(on-Linux).md +++ b/Working-for-Android-(on-Linux).md @@ -20,7 +20,7 @@ cd ../.. * `assets` is used for your app icon and any other assets your project may need. * `include` only has `raylib.h` by default but you can put headers for other libraries if needed. * `lib` contains the compiled raylib library for Android. -* `src` contains your app's source code. +* `src` is for your app's source code, put all `*.c` files there. ## Java Android is based on the Java language, a Java installation is also required to create Android apps. There are many versions of Java, I use OpenJDK version 18 (or newer) which can be downloaded [here](https://openjdk.java.net/). @@ -71,7 +71,7 @@ cd ../.. ## Prepare project A few more files need to be created for the Android build to work. -1. Create icons for different display densities (ldpi, mdpi, hdpi, xhdpi). In this guide, I will put them in `assets`, named `icon_ldpi.png`, `icon_mdpi.png` and so on. There are higher display densities but icons for them are not needed. For example, these commands create the icons for the raylib logo: +1. Create icons for different display densities (ldpi, mdpi, hdpi, xhdpi). In this guide, I will put them in `assets`, named `icon_ldpi.png`, `icon_mdpi.png` and so on. There are higher display densities but icons for them are not needed. As an example, these commands create the icons for the raylib logo: ```sh cp raylib/logo/raylib_36x36.png assets/icon_ldpi.png cp raylib/logo/raylib_48x48.png assets/icon_mdpi.png @@ -79,7 +79,7 @@ cp raylib/logo/raylib_72x72.png assets/icon_hdpi.png cp raylib/logo/raylib_96x96.png assets/icon_xhdpi.png ``` -2. Keystore, this file contains the key for signing your APK file. You can change the `storepass` and `keypass` if you want to. +2. Keystore, this file contains the key for signing your APK file. You can change the `storepass` and `keypass` if you want to, but make sure to change them in the build script later. ```sh cd android keytool -genkeypair -validity 1000 -dname "CN=raylib,O=Android,C=ES" -keystore raylib.keystore -storepass 'raylib' -keypass 'raylib' -alias projectKey -keyalg RSA @@ -137,7 +137,7 @@ Okay, finally we can build our APK file. You can create a shell script to build # # NOTE: If you excluded any ABIs in the previous steps, remove them from this list too -# TODO: arm64-v8a building doesn't work: +# TODO: arm64-v8a building doesn't work, ARM64 devices can still run the 32 bit version: # /usr/bin/ld: /tmp/main-08f12a.o: Relocations in generic ELF (EM: 183) # /usr/bin/ld: /tmp/main-08f12a.o: Relocations in generic ELF (EM: 183) # /usr/bin/ld: /tmp/main-08f12a.o: error adding symbols: file in wrong format