Differences between revisions 13 and 14
Revision 13 as of 2014-04-14 22:50:04
Size: 1006
Comment: add qpython
Revision 14 as of 2017-10-08 19:31:50
Size: 2139
Editor: MalcolmSmith
Comment: Update and expand
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
There are several ways to write Android apps in Python. There are several ways to use Python on Android. The following table summarizes those projects which are currently active:
Line 3: Line 3:
 * Kivy: [[https://www.youtube.com/watch?v=yPWj6k5MRak|Intro to Kivy]], [[http://kivy.org/docs/guide/android.html|Guide for Android]]
 * SL4A: [[https://code.google.com/p/android-scripting/wiki/FAQ#How_do_I_install_SL4A?|Install]], [[http://www.youtube.com/playlist?list=PL07A81E6CE96F158B|Watch]]
 * PySide: [[http://thp.io/2011/pyside-android/|Original]], [[http://modrana.org/trac/wiki/PySideForAndroid|Followup]], [[http://qt-project.org/wiki/PySide_for_Android_guide|Editable Guide]]
 * [[http://qpython.com/|QPython]] is a script engine running on Android devices like phone or tablet, It embeds the python interpreter, console, editor, SL4A library for android, which can make your android device run python script or project.
|| || '''[[https://chaquo.com/chaquopy/|Chaquopy]]''' is a plugin for Android Studio's Gradle-based build system. || '''[[https://kivy.org/docs/guide/android.html|Kivy]]''' is a cross-platform OpenGL-based user interface toolkit. || '''[[http://www.qpython.com/|QPython]]''' is an on-device script engine and development environment. ||
|| '''General''' || || || ||
|| Python versions || 2.7 || 2.7, 3.5 || 2.7, 3.2 ||
|| Open-source || No || Yes || Yes ||
|| Google Play links || [[https://play.google.com/store/apps/details?id=com.chaquo.python.demo|Demo]] || [[https://play.google.com/store/apps/details?id=org.kivy.showcase|Demo]] || [[https://play.google.com/store/apps/details?id=org.qpython.qpy|Python 2]], [[https://play.google.com/store/apps/details?id=org.qpython.qpy|Python 3]] ||
|| '''APIs''' || || || ||
|| User interface || Native Android || Kivy || Kivy, SL4A ||
|| Other Android APIs || All || All via PyJNIus, or some via Plyer || All via PyJNIus, or some via SL4A ||
|| Java‑to‑Python integration || Yes || No || No ||
|| 3rd party libraries || Pure-Python || Pure-Python and selected native || Pure-Python and selected native ||
|| '''Build''' || || || ||
|| Standalone Android APK || Yes || Yes || No ||
|| iOS || No || Yes || No ||
|| Desktop OSs || No || Yes || No ||
Line 8: Line 18:
Comments:
 * Please add notes and references about your experience here. Use [[HelpOnVariables|@SIG_@]] markup to sign comments (remove _ to use). -- [[techtonik]] <<DateTime(2013-09-06T10:47:31+0200)>>
In addition, there are a number of projects which are inactive or incomplete:

 * SL4A (Scripting Layer for Android), originally named ASE (Android Scripting Environment), is a set of "facades" which expose a greatly-simplified subset of the Android API. The project was originally developed within Google, but is no longer supported by them. However, a fork of the library is distributed with QPython.

 * PySide (the Python binding for the Qt toolkit) has some [[http://qt-project.org/wiki/PySide_for_Android_guide|preliminary support]] for Android.

 * Although Android's primary programming language is Java, there is no known port of [[Jython]] to the platform.

There are several ways to use Python on Android. The following table summarizes those projects which are currently active:

Chaquopy is a plugin for Android Studio's Gradle-based build system.

Kivy is a cross-platform OpenGL-based user interface toolkit.

QPython is an on-device script engine and development environment.

General

Python versions

2.7

2.7, 3.5

2.7, 3.2

Open-source

No

Yes

Yes

Google Play links

Demo

Demo

Python 2, Python 3

APIs

User interface

Native Android

Kivy

Kivy, SL4A

Other Android APIs

All

All via PyJNIus, or some via Plyer

All via PyJNIus, or some via SL4A

Java‑to‑Python integration

Yes

No

No

3rd party libraries

Pure-Python

Pure-Python and selected native

Pure-Python and selected native

Build

Standalone Android APK

Yes

Yes

No

iOS

No

Yes

No

Desktop OSs

No

Yes

No

In addition, there are a number of projects which are inactive or incomplete:

  • SL4A (Scripting Layer for Android), originally named ASE (Android Scripting Environment), is a set of "facades" which expose a greatly-simplified subset of the Android API. The project was originally developed within Google, but is no longer supported by them. However, a fork of the library is distributed with QPython.
  • PySide (the Python binding for the Qt toolkit) has some preliminary support for Android.

  • Although Android's primary programming language is Java, there is no known port of Jython to the platform.

Android (last edited 2024-02-07 13:18:35 by MalcolmSmith)

Unable to edit the page? See the FrontPage for instructions.