PlainText semicolon-separated file -> AnkiDroid importer
Based on API sample.
License is the same as license of the sample linked above.
The app still works in Android 12, but is tricky to run properly:
- You need to create /sdcard/AnkiDroid/TextImport directory manually
- You need to know file format and filename-to-deck coding principle
- You need to grant filesystem and AnkiDroid access permissions manually (using "App info"). The app does not request permissions, just fails to work if they are not granted.
- You need to force-restart the app after granting permissions to re-read file list.
I can build it on Debian using command line similar to this one:
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ANDROID_HOME=/path/to/androidsdk ./gradlew assembleDebug
Missing features:
- Configurable directory
- Non-basic note type, configurable field mapping
- Error handling
- Proper UI, better help message
- Upstream AnkiDroid integration
- Duplicate handling (was removed due to some bug)
- Storage Access Framework instead of relying on old school permission.