in /src/Makefile.src
missing files CLIENT_HEADERS = \ common/const.h \ wizard.h \
server side files CLIENT_HEADERS .h, CLIENT_ZFILES .o z-quark, z-queue, z-textblock
readme.txt Add 'lib' directory into archive src/android/pwmangclient/src/main/assets/lib.zip
first run will be a black screen - unpacking files lib.zip (requires process display)
PWMAngClient.java checks 'pwmangclient' folder and 'lib' folder
then copies files from lib.zip and 'pwmangclient.ini'
setEnvVars() "HOME", "ANDROID_APP_PATH" getenv("ANDROID_APP_PATH")
does not work android:screenOrientation="landscape" .works as "sensor"
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
not showing Toast.makeText(getApplicationContext(),
"Copy assets files 'pwmangclient/lib'", Toast.LENGTH_LONG).show(); when 'lib.zip' is unpack
if you delete the 'pwmangclient.ini' file and the message will appear.
file 'pwmangclient.ini' is not created (solution. copy from assets)
Android Studio -> 'Make Project' will build 'pwmangclient-debug.apk' all 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
but if 'Run' emulator, then '.apk' will be built and there will be only the architecture 'x86'.
use otg smart connection kit or bluetooth keyboard ;-)
fixed org.pwmangband.pwmangclient .java files src/main/java/org/pwmangband/pwmangclient/...
if defined(ON_ANDROID), define USE_PRIVATE_PATHS 1 https://github.com/Cuboideb/angbandroid/blob/master/app/src/main/cpp/angband/config.h file user/sdl2init.txt is saved
in /src/Makefile.src missing files CLIENT_HEADERS = \ common/const.h \ wizard.h \ server side files CLIENT_HEADERS .h, CLIENT_ZFILES .o z-quark, z-queue, z-textblock
readme.txt Add 'lib' directory into archive src/android/pwmangclient/src/main/assets/lib.zip
first run will be a black screen - unpacking files lib.zip (requires process display) PWMAngClient.java checks 'pwmangclient' folder and 'lib' folder then copies files from lib.zip and 'pwmangclient.ini' setEnvVars() "HOME", "ANDROID_APP_PATH" getenv("ANDROID_APP_PATH")
does not work android:screenOrientation="landscape" .works as "sensor" setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
not showing Toast.makeText(getApplicationContext(), "Copy assets files 'pwmangclient/lib'", Toast.LENGTH_LONG).show(); when 'lib.zip' is unpack if you delete the 'pwmangclient.ini' file and the message will appear.
file 'pwmangclient.ini' is not created (solution. copy from assets)
Android Studio -> 'Make Project' will build 'pwmangclient-debug.apk' all 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' but if 'Run' emulator, then '.apk' will be built and there will be only the architecture 'x86'. use otg smart connection kit or bluetooth keyboard ;-)
android links: https://riptutorial.com/android/example/17144/android--internal-and-external-storage---terminology-clarification https://stackoverflow.com/questions/19568354/apps-path-for-external-storage-in-native-code https://stackoverflow.com/questions/49053115/how-to-get-external-storages-path https://stackoverflow.com/questions/4447477/how-to-copy-files-from-assets-folder-to-sdcard https://stackoverflow.com/questions/5280176/make-directory-in-android https://blog.spacepatroldelta.com/a?ID=00300-9e6948b0-b96a-4e69-9246-3a7a549789d9 https://codepad.co/snippet/copying-file-from-assets-directory-to-sdcard-in-android