Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've used SL4A for Python scripting quite a bit in the past, and it works very well with most of the standard modules. Once you've installed the SL4A app and the interpreters (P4A in this case), you can start writing python files right on the device.</p> <p>The User Guide on the SL4A website does a pretty good job of introducing the basic concepts for using it: <a href="http://code.google.com/p/android-scripting/wiki/UserGuide" rel="nofollow">http://code.google.com/p/android-scripting/wiki/UserGuide</a>. You can create a new .py script within the main menu. FWIW, you dont have to have a seperate "terminal/shell" to start scripts... you can launch them from within SL4A or even create shortcuts to launch them from home screen.</p> <p>If you're not sure if the interpreter installed, try following this: <a href="http://code.google.com/p/android-scripting/wiki/InstallingInterpreters" rel="nofollow">http://code.google.com/p/android-scripting/wiki/InstallingInterpreters</a></p> <p>** <em>EDIT</em> ** : If you're not sure if A4P got installed correctly, you can launch the app (Python for Android) on your device, and it will tell you the version of the interpreter installed, and how many scripts are currently loaded. You can also uninstall / re-install from there.</p> <p>For what its worth, if you're just getting started with Python (and programming in general), I'd recommend trying to get some of the examples working on a desktop machine, just so you can get the knack of the language. If you use standard libraries, you can copy your scripts to your android device, and run them within P4A. "helloWorld.py" ports very easily ;-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload