APKLife

APKLife Native (Variant B: Offline Flask-in-APK) — EN

This variant runs Flask inside APK (Chaquopy) and opens WebView on http://127.0.0.1:5000.

Requirements

Build debug APK

Linux/macOS

cd android_native
./gradlew :app:assembleDebug

Windows (CMD/PowerShell)

cd android_native
gradlew.bat :app:assembleDebug

Output APK

Runtime flow

  1. MainActivity starts Chaquopy Python runtime.
  2. Calls android_entry.start_server().
  3. Flask runs in background thread on 127.0.0.1:5000.
  4. WebView loads local URL after readiness check.

Notes

Back: ../README.en.md