-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-116622: Complete Android documentation #124259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8015ef4
2e08c09
0f8c9da
879c805
98d7216
2c6ec29
35384ab
023598c
9803d40
a5190e5
e241163
99e4c12
eabbf45
7fd73d1
33efbf0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,37 +28,36 @@ Adding Python to an Android app | |
| ------------------------------- | ||
|
|
||
| These instructions are only needed if you're planning to compile Python for | ||
| Android yourself. Most users should *not* need to do this. If you're looking to | ||
| use Python on Android, one of the following tools will provide a much more | ||
| approachable user experience: | ||
| Android yourself. Most users should *not* need to do this. Instead, use one of | ||
| the following tools, which will provide a much easier experience: | ||
|
|
||
| * `Briefcase <https://briefcase.readthedocs.io>`__, from the BeeWare project | ||
| * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project | ||
| * `Chaquopy <https://chaquo.com/chaquopy>`__ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are affiliated with this, right? I do not think there is a problem here, taking into account open-sourcing Chaquopy and your contribution in CPython.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct - Malcolm is the founder of Chaquopy.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've expanded this list to include all the production-quality Python-on-Android tools that I'm aware of. |
||
|
|
||
| If you're sure you want to do all this manually, read on. You can use the | ||
| If you're sure you want to do all of this manually, read on. You can use the | ||
| :source:`testbed app <Android/testbed>` as a guide; each step below contains a | ||
| link to the relevant file. | ||
|
|
||
| * Build Python by following the instructions in :source:`Android/README.md`. | ||
|
|
||
| * Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` | ||
| file to copy the following items into your project. All except your own Python | ||
| code can be copied from ``cross-build/HOST/prefix/lib``. | ||
| code can be copied from ``cross-build/HOST/prefix/lib``: | ||
|
|
||
| * In your JNI libs: | ||
|
mhsmith marked this conversation as resolved.
Outdated
|
||
|
|
||
| * ``libpython*.*.so`` | ||
| * ``lib*_python.so`` (external libraries such as OpenSSL) | ||
|
|
||
| * In your assets: | ||
|
|
||
| * ``python*.*`` (the Python standard library) | ||
| * ``python*.*/site-packages`` (your own Python code) | ||
|
|
||
| * Add code to your app to :source:`extract the assets to the filesystem | ||
| <Android/testbed/app/src/main/java/org/main/python/testbed/MainActivity.kt>`. | ||
| <Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`. | ||
|
|
||
| * Add code to your app to :source:`start Python in embedded mode | ||
| <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code | ||
| called via JNI. | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.