02-22-2026, 08:05 AM
|
#63
|
|
Resident Curmudgeon
Posts: 82,179
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Originally Posted by mitra1
Many times i donated money to Kovid Goyal, but i never understood why there isn't an android version or an api that third party developers can use. Android is the most used operating system more than windows so i think it's reasonable that many people would want access to their library directly on smartphone or tablet/chromebook.
|
This won't work.
https://docs.python.org/3/using/android.html
Quote:
6. Using Python on Android
Python on Android is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a python executable and entering commands at an interactive prompt, or by running a Python script.
On Android, there is no concept of installing as a system resource. The only unit of software distribution is an “app”. There is also no console where you could run a python executable, or interact with a Python REPL.
As a result, the only way you can use Python on Android is in embedded mode – that is, by writing a native Android application, embedding a Python interpreter using libpython, and invoking Python code using the Python embedding API. The full Python interpreter, the standard library, and all your Python code is then packaged into your app for its own private use.
The Python standard library has some notable omissions and restrictions on Android. See the API availability guide for details.
|
|
|
|