|
1 | 1 | # Python for Android
|
2 | 2 |
|
3 | 3 | These instructions are only needed if you're planning to compile Python for
|
4 |
| -Android yourself. Most users should *not* need to do this. If you're looking to |
5 |
| -use Python on Android, one of the following tools will provide a much more |
6 |
| -approachable user experience: |
7 |
| - |
8 |
| -* [Briefcase](https://briefcase.readthedocs.io), from the BeeWare project |
9 |
| -* [Buildozer](https://buildozer.readthedocs.io), from the Kivy project |
10 |
| -* [Chaquopy](https://chaquo.com/chaquopy/) |
| 4 | +Android yourself. Most users should *not* need to do this. Instead, use one of |
| 5 | +the tools listed in `Doc/using/android.rst`, which will provide a much easier |
| 6 | +experience. |
11 | 7 |
|
12 | 8 |
|
13 | 9 | ## Prerequisites
|
@@ -89,10 +85,10 @@ The test suite can be run on Linux, macOS, or Windows:
|
89 | 85 | The test suite can usually be run on a device with 2 GB of RAM, but this is
|
90 | 86 | borderline, so you may need to increase it to 4 GB. As of Android
|
91 | 87 | Studio Koala, 2 GB is the default for all emulators, although the user interface
|
92 |
| -may indicate otherwise. The effective setting is `hw.ramSize` in |
93 |
| -~/.android/avd/*.avd/hardware-qemu.ini, whereas Android Studio displays the |
94 |
| -value from config.ini. Changing the value in Android Studio will update both of |
95 |
| -these files. |
| 88 | +may indicate otherwise. Locate the emulator's directory under `~/.android/avd`, |
| 89 | +and find `hw.ramSize` in both config.ini and hardware-qemu.ini. Either set these |
| 90 | +manually to the same value, or use the Android Studio Device Manager, which will |
| 91 | +update both files. |
96 | 92 |
|
97 | 93 | Before running the test suite, follow the instructions in the previous section
|
98 | 94 | to build the architecture you want to test. Then run the test script in one of
|
@@ -133,3 +129,8 @@ Every time you run `android.py test`, changes in pure-Python files in the
|
133 | 129 | repository's `Lib` directory will be picked up immediately. Changes in C files,
|
134 | 130 | and architecture-specific files such as sysconfigdata, will not take effect
|
135 | 131 | until you re-run `android.py make-host` or `build`.
|
| 132 | + |
| 133 | + |
| 134 | +## Using in your own app |
| 135 | + |
| 136 | +See `Doc/using/android.rst`. |
0 commit comments