Anybody out there that used Python on an Android system?
Something like the subset on http://pygame.renpy.org/

Dani AI

Generated

Thread update (posted Jan 18, 2026). Original posts by (Mar 5, 2013) and (Mar 6, 2013) asked about running Python on Android and scripting on-device. The landscape has changed a lot since 2013; the short, practical summary below maps common goals to current, proven options and notes the frequent pitfalls.

For shipping a Python-based Android app: use the Kivy tooling that automates cross‑compiles and packaging (Buildozer drives python-for-android). Buildozer can download the Android toolchain, create a buildozer.spec, and run a debug/release build; python-for-android supplies the cross-compile “recipes” for native libraries. For reproducible builds, use the official Buildozer Docker image. (github.com)

Quick reproducible build example (Linux/Docker):

docker run --rm -v "$PWD":/home/user/hostcwd kivy/buildozer android debug

If you want to embed Python inside a regular Android Studio app: Chaquopy is the Gradle plugin approach. It integrates with Android Studio, lets Java/Kotlin call Python and vice versa, and supplies many prebuilt wheels for common native packages — but you must configure ABI filters and minSdk and be mindful of binary size. (chaquo.com)

For on-device scripting and quick automation (the area was working in): Termux provides a full Linux environment on Android with apt-style packages; Termux:API exposes device features to scripts. SL4A (the older scripting layer) is archived and not recommended for new work. (termux.dev)

If you prefer a “native” cross-platform toolchain with Python UI widgets, BeeWare’s Briefcase/Toga path can produce AAB/APK outputs and integrates with Gradle — useful for native-looking apps but still subject to the same native-dependency challenges (you may need prebuilt wheels or to write p4a/recipe support). (briefcase.beeware.org)

Troubleshooting checklist: always check Logcat for crashes, confirm Android SDK/NDK versions and ABI filters, watch app size when bundling numpy/ML libs, and prefer Docker/CI for repeatable builds. Use the project docs above for precise configuration and recipes.

I'm using py4a on android and it helps me script things for my android phone.
stuff like searching messages for desired words,
text encryption and sending via sms
reboot options for root devises
bluetooth control with gui
and some more, I scripted already.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.