![]() When I need to transfer a file, I've come to rely on a solution that works no matter which handset I use (as long as the handset can talk to a local Wi-Fi network). Your mileage may vary depending on your actual device. What works on one handset, doesn't on another, and so on. I've found the success of using something like Bluetooth connectivity or USB cabling arrangements can very much depend on the hardware on which you're running. There are a number of ways to get your script onto a real phone. To speed things up a little, install Barcode Scanner from the Android Market and use it to “read” the QR Codes from your desktop screen. With this done, you can follow the same steps you used when installing SL4A and Python on your emulator. This setting is required to enable the installation of non-Market apps on your phone. To install SL4A on your physical Android device, enable the Unknown Sources option in your device's Application settings. To run a Python script on your physical Android device, install SL4A together with Python for Android on your handset, then transfer your script. This excerpt from Linuxjournal explains script installation on your android device: The python3 recipe that allows Python3 to run as a "Stand alone" on Android. There is a recipes (script) that will fit your needs. You can go one step further because the project include simple draft instructions on creating a standalone, downloadable Android APK package.įirst, I would start by going to the readme section of Py4A. not only does it allow you to run scripts on your android device. So my question(s) are: How might I make the solution I tried work? or Are there any other ways to get Python installed as a native Linux app*? *like I said I want it to be just like on a desktopn LInux where I can open ANY terminal app and use python just like any other command.įantastic, I believe the solution for you is this awesome project called Python-for-Android (Py4A). so even after I copied it to /system/lib. ![]() I realize Termux's Python is probably modified in some way to account for the driectory structure requred by an android app and therefore couldn't find the. I've tried booting into TWRP (I don't have root otherwise) and copying the necessary Python binaries and lib folder n the Termux data directory to /system/bin and /system/lib but Python fails saying it can't find "libandroid-support.so". Normally Termux would do this but I don't like the terminal app just the Linux packages it supplies, prefer to use another called Terminal Emulator by Jackpal(typo or maybe just wrong?). I'd like to be able to simply open a terminal and type "python /path/to/script.py" so Kivy and Qslide will not work (to my knowledge, feel free to prove me wrong :) ). By "native" I mean native Linux, just Androids variation of it. ![]() I'm trying to get Python 3 to run natively on android. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |