When developers think about machine learning on Android, the default recommendation is to reach for an established inference framework: TensorFlow Lite, ONNX Runtime, or PyTorch Mobile.
These frameworks are remarkable engineering feats, but for a privacy-first, offline personal finance app, they carry immense operational baggage:
Binary Bloat : Native C++ shared libraries ( .so ) compiled for arm64-v8a , armeabi-v7a , and x86_64 add between 15 MB and 35 MB to your APK size.
Cold Start Latency : Initializing a native runtime and binding JNI memory buffers adds perceptible overhead to app launch.
Architectural Complexity : Managing native memory allocations across Android lifecycle events increases the risk of native segfaults.
When I set out to classify incoming transactional SMS alerts into expense categories (such as Groceries, Food & Dining, Utilities, and Transportation) entirely offline, I realized something critical:
Financial SMS classification is not a computer vision problem or a generative LLM…