From 3e48dfac9ffda48deaeb36c40e0218db90cde8ec Mon Sep 17 00:00:00 2001
From: "River@devbox"
Date: Sat, 14 Mar 2026 21:59:25 +0800
Subject: [PATCH 01/12] Update to new site
---
.gitignore | 1 +
CLAUDE.md | 107 +
docs/.buildinfo | 4 -
docs/CNAME | 1 -
docs/_sources/contributors.rst.txt | 61 -
docs/_sources/document.rst.txt | 111 -
docs/_sources/en/faq.rst.txt | 26 -
docs/_sources/en/guide.rst.txt | 47 -
docs/_sources/en/guide_androidhelpers.rst.txt | 2038 -----
docs/_sources/en/guide_contributors.rst.txt | 40 -
.../en/guide_contributors_test.rst.txt | 33 -
docs/_sources/en/guide_developers.rst.txt | 75 -
docs/_sources/en/guide_extend.rst.txt | 131 -
docs/_sources/en/guide_helloworld.rst.txt | 121 -
docs/_sources/en/guide_howtostart.rst.txt | 133 -
docs/_sources/en/guide_libraries.rst.txt | 292 -
docs/_sources/en/guide_program.rst.txt | 191 -
docs/_sources/en/qpypi.rst.txt | 49 -
docs/_sources/en/qpython3.rst.txt | 53 -
docs/_sources/en/qpython_3x_featues.rst.txt | 98 -
docs/_sources/en/qpython_ox_featues.rst.txt | 62 -
.../features/2018-09-28-dropbear-cn.rst.txt | 79 -
docs/_sources/zh/contributorshowto.rst.txt | 36 -
docs/_sources/zh/howtostart.rst.txt | 28 -
docs/_sources/zhindex.rst.txt | 33 -
docs/agreement-cn.html | 47 -
docs/agreement.html | 45 -
docs/community.html | 22 -
docs/contributors.html | 218 -
docs/default.html | 3 -
docs/discord.html | 1 -
docs/document.html | 287 -
docs/en/faq.html | 189 -
docs/en/guide.html | 357 -
docs/en/guide_androidhelpers.html | 3403 ---------
docs/en/guide_contributors.html | 238 -
docs/en/guide_contributors_test.html | 219 -
docs/en/guide_developers.html | 271 -
docs/en/guide_extend.html | 307 -
docs/en/guide_helloworld.html | 272 -
docs/en/guide_howtostart.html | 269 -
docs/en/guide_ide.html | 223 -
docs/en/guide_libraries.html | 750 --
docs/en/guide_program.html | 332 -
docs/en/qpypi.html | 218 -
docs/en/qpython3.html | 213 -
docs/en/qpython_3x_featues.html | 266 -
docs/en/qpython_ox_featues.html | 242 -
docs/favicon.ico | Bin 5430 -> 0 bytes
docs/features/2018-09-28-dropbear-cn.html | 221 -
docs/genindex.html | 2756 -------
docs/huawei.html | 3 -
docs/index.html | 226 -
docs/objects.inv | Bin 2639 -> 0 bytes
docs/privacy-cn.html | 80 -
docs/privacy.html | 100 -
docs/qlua-privacy.html | 69 -
docs/qlua-rate.html | 1 -
docs/qpy3-rate.html | 1 -
docs/qq.html | 3 -
docs/search.html | 208 -
docs/searchindex.js | 1 -
docs/static/apk_down.png | Bin 1538 -> 0 bytes
docs/static/basic.css | 921 ---
docs/static/bootstrap.min.css | 6 -
docs/static/bootstrap.min.js | 7 -
docs/static/doctools.js | 156 -
docs/static/documentation_options.js | 14 -
docs/static/file.png | Bin 286 -> 0 bytes
docs/static/ic_appstore@2x.png | Bin 6018 -> 0 bytes
docs/static/ic_appstore_2x.png | Bin 5732 -> 0 bytes
docs/static/ic_community@2x.png | Bin 1308 -> 0 bytes
docs/static/ic_facebook.png | Bin 713 -> 0 bytes
docs/static/ic_faq@2x.png | Bin 1844 -> 0 bytes
docs/static/ic_googleplay@2x.png | Bin 7340 -> 0 bytes
docs/static/ic_googleplay_2x.png | Bin 5828 -> 0 bytes
docs/static/ic_googleplay_3_2x.png | Bin 6450 -> 0 bytes
docs/static/ic_new@2x.png | Bin 1180 -> 0 bytes
docs/static/ic_search.png | Bin 460 -> 0 bytes
docs/static/ic_support@2x.png | Bin 1266 -> 0 bytes
docs/static/ic_twitter.png | Bin 1424 -> 0 bytes
docs/static/img_background.png | Bin 60524 -> 0 bytes
docs/static/img_banner-1.jpg | Bin 12163 -> 0 bytes
docs/static/img_banner-1.png | Bin 36701 -> 0 bytes
docs/static/img_banner-1@2x.jpg | Bin 48932 -> 0 bytes
docs/static/img_banner-1@2x.png | Bin 178999 -> 0 bytes
docs/static/img_logo.png | Bin 376 -> 0 bytes
docs/static/ios_link.png | Bin 1574 -> 0 bytes
docs/static/jquery.min.js | 4 -
docs/static/language_data.js | 199 -
docs/static/minus.png | Bin 90 -> 0 bytes
docs/static/plus.png | Bin 90 -> 0 bytes
docs/static/pygments.css | 75 -
docs/static/qpy-easter-egg.jpg | Bin 45457 -> 0 bytes
docs/static/qpython_theme.css | 633 --
docs/static/searchtools.js | 566 --
docs/static/sphinx_highlight.js | 144 -
docs/static/web.js | 26 -
docs/xiaomi.html | 3 -
docs/zh/contributorshowto.html | 219 -
docs/zh/howtostart.html | 224 -
docs/zhindex.html | 233 -
mkdocs.yml | 93 +
qpython-docs/.DS_Store | Bin 8196 -> 0 bytes
qpython-docs/CNAME | 1 -
qpython-docs/Makefile | 225 -
qpython-docs/a8.json | 3 -
qpython-docs/add-analytics-window.py | 41 -
qpython-docs/add-analytics.py | 10 -
qpython-docs/agreement-cn.html | 47 -
qpython-docs/agreement.html | 45 -
qpython-docs/build-window.bat | 50 -
qpython-docs/build.sh | 10 -
qpython-docs/community.html | 22 -
qpython-docs/discord.html | 1 -
.../docs/doctrees/contributors.doctree | Bin 13963 -> 0 bytes
qpython-docs/docs/doctrees/document.doctree | Bin 22291 -> 0 bytes
qpython-docs/docs/doctrees/en/faq.doctree | Bin 5990 -> 0 bytes
qpython-docs/docs/doctrees/en/guide.doctree | Bin 5649 -> 0 bytes
.../doctrees/en/guide_androidhelpers.doctree | Bin 595573 -> 0 bytes
.../doctrees/en/guide_contributors.doctree | Bin 6497 -> 0 bytes
.../en/guide_contributors_test.doctree | Bin 6839 -> 0 bytes
.../docs/doctrees/en/guide_developers.doctree | Bin 8637 -> 0 bytes
.../docs/doctrees/en/guide_extend.doctree | Bin 16393 -> 0 bytes
.../docs/doctrees/en/guide_helloworld.doctree | Bin 23638 -> 0 bytes
.../docs/doctrees/en/guide_howtostart.doctree | Bin 25647 -> 0 bytes
.../docs/doctrees/en/guide_ide.doctree | Bin 8470 -> 0 bytes
.../docs/doctrees/en/guide_libraries.doctree | Bin 56305 -> 0 bytes
.../docs/doctrees/en/guide_program.doctree | Bin 21514 -> 0 bytes
qpython-docs/docs/doctrees/en/qpypi.doctree | Bin 7278 -> 0 bytes
.../docs/doctrees/en/qpython3.doctree | Bin 11746 -> 0 bytes
.../doctrees/en/qpython_3x_featues.doctree | Bin 22411 -> 0 bytes
.../doctrees/en/qpython_ox_featues.doctree | Bin 14887 -> 0 bytes
qpython-docs/docs/doctrees/environment.pickle | Bin 1488426 -> 0 bytes
.../features/2018-09-28-dropbear-cn.doctree | Bin 15137 -> 0 bytes
.../doctrees/zh/contributorshowto.doctree | Bin 7761 -> 0 bytes
.../docs/doctrees/zh/howtostart.doctree | Bin 8154 -> 0 bytes
qpython-docs/docs/doctrees/zhindex.doctree | Bin 9576 -> 0 bytes
qpython-docs/extra.txt | 19 -
qpython-docs/favicon.ico | Bin 5430 -> 0 bytes
qpython-docs/img_banner-1.jpg | Bin 12163 -> 0 bytes
qpython-docs/img_banner-1@2x.jpg | Bin 177974 -> 0 bytes
qpython-docs/index.html | 227 -
qpython-docs/make-window.bat | 33 -
qpython-docs/market/default.html | 3 -
qpython-docs/market/huawei.html | 3 -
qpython-docs/market/qq.html | 3 -
qpython-docs/market/xiaomi.html | 3 -
qpython-docs/media/logo32x32.png | Bin 613 -> 0 bytes
qpython-docs/media/qpython-build-as.png | Bin 98886 -> 0 bytes
.../media/qpython-build-ndk-false.jpg | Bin 430370 -> 0 bytes
qpython-docs/media/qpython-build-ndk.jpg | Bin 152707 -> 0 bytes
qpython-docs/privacy-cn.html | 80 -
qpython-docs/privacy.html | 100 -
qpython-docs/qlua-privacy.html | 69 -
qpython-docs/qlua-rate.html | 1 -
qpython-docs/qpy3-privacy.html | 21 -
qpython-docs/qpy3-rate.html | 1 -
qpython-docs/quick-start/index.html | 203 -
qpython-docs/requirements.txt | 24 -
qpython-docs/source/.DS_Store | Bin 8196 -> 0 bytes
qpython-docs/source/_static/1.png | Bin 335197 -> 0 bytes
qpython-docs/source/_static/2.png | Bin 515124 -> 0 bytes
qpython-docs/source/_static/3.png | Bin 437751 -> 0 bytes
qpython-docs/source/_static/bestpython.png | Bin 96668 -> 0 bytes
.../source/_static/guide_extend_pic1.png | Bin 111129 -> 0 bytes
.../source/_static/guide_extend_pic2.png | Bin 69027 -> 0 bytes
.../source/_static/guide_helloworld_pic1.png | Bin 44906 -> 0 bytes
.../source/_static/guide_howtostart_pic1.png | Bin 31834 -> 0 bytes
.../source/_static/guide_howtostart_pic2.png | Bin 46752 -> 0 bytes
.../source/_static/guide_howtostart_pic3.png | Bin 97920 -> 0 bytes
.../source/_static/guide_howtostart_pic4.png | Bin 51908 -> 0 bytes
.../source/_static/guide_howtostart_pic5.png | Bin 101580 -> 0 bytes
.../source/_static/guide_ide_qedit4web.png | Bin 42256 -> 0 bytes
.../_static/guide_ide_qedit4web_choose.png | Bin 200543 -> 0 bytes
.../_static/guide_ide_qedit4web_develop.png | Bin 70950 -> 0 bytes
.../source/_static/guide_program_pic1.png | Bin 45040 -> 0 bytes
qpython-docs/source/_static/sl4a.jpg | Bin 1437 -> 0 bytes
qpython-docs/source/conf.py | 338 -
qpython-docs/source/contributors.rst | 61 -
qpython-docs/source/document.rst | 111 -
qpython-docs/source/en/faq.rst | 26 -
qpython-docs/source/en/guide.rst | 47 -
.../source/en/guide_androidhelpers.rst | 2038 -----
qpython-docs/source/en/guide_contributors.rst | 40 -
.../source/en/guide_contributors_test.rst | 33 -
qpython-docs/source/en/guide_developers.rst | 75 -
qpython-docs/source/en/guide_extend.rst | 131 -
qpython-docs/source/en/guide_howtostart.rst | 133 -
qpython-docs/source/en/guide_ide.rst | 49 -
qpython-docs/source/en/guide_libraries.rst | 292 -
qpython-docs/source/en/guide_program.rst | 191 -
qpython-docs/source/en/qpypi.rst | 49 -
qpython-docs/source/en/qpython3.rst | 53 -
qpython-docs/source/en/qpython_3x_featues.rst | 98 -
qpython-docs/source/en/qpython_ox_featues.rst | 62 -
.../features/2018-09-28-dropbear-cn.rst | 79 -
qpython-docs/source/qpython_theme/.DS_Store | Bin 6148 -> 0 bytes
qpython-docs/source/qpython_theme/__init__.py | 7 -
qpython-docs/source/qpython_theme/layout.html | 176 -
.../source/qpython_theme/static/apk_down.png | Bin 1538 -> 0 bytes
.../qpython_theme/static/bootstrap.min.css | 6 -
.../qpython_theme/static/bootstrap.min.js | 7 -
.../qpython_theme/static/ic_appstore@2x.png | Bin 6018 -> 0 bytes
.../qpython_theme/static/ic_appstore_2x.png | Bin 5732 -> 0 bytes
.../qpython_theme/static/ic_community@2x.png | Bin 1308 -> 0 bytes
.../qpython_theme/static/ic_facebook.png | Bin 713 -> 0 bytes
.../source/qpython_theme/static/ic_faq@2x.png | Bin 1844 -> 0 bytes
.../qpython_theme/static/ic_googleplay@2x.png | Bin 7340 -> 0 bytes
.../qpython_theme/static/ic_googleplay_2x.png | Bin 5828 -> 0 bytes
.../static/ic_googleplay_3_2x.png | Bin 6450 -> 0 bytes
.../source/qpython_theme/static/ic_new@2x.png | Bin 1180 -> 0 bytes
.../source/qpython_theme/static/ic_search.png | Bin 460 -> 0 bytes
.../qpython_theme/static/ic_support@2x.png | Bin 1266 -> 0 bytes
.../qpython_theme/static/ic_twitter.png | Bin 1424 -> 0 bytes
.../qpython_theme/static/img_background.png | Bin 60524 -> 0 bytes
.../qpython_theme/static/img_banner-1.jpg | Bin 12163 -> 0 bytes
.../qpython_theme/static/img_banner-1.png | Bin 36701 -> 0 bytes
.../qpython_theme/static/img_banner-1@2x.jpg | Bin 48932 -> 0 bytes
.../qpython_theme/static/img_banner-1@2x.png | Bin 178999 -> 0 bytes
.../source/qpython_theme/static/img_logo.png | Bin 376 -> 0 bytes
.../source/qpython_theme/static/ios_link.png | Bin 1574 -> 0 bytes
.../source/qpython_theme/static/jquery.min.js | 4 -
.../qpython_theme/static/qpy-easter-egg.jpg | Bin 45457 -> 0 bytes
.../qpython_theme/static/qpython_theme.css | 633 --
.../source/qpython_theme/static/web.js | 26 -
qpython-docs/source/qpython_theme/theme.conf | 4 -
qpython-docs/source/zh/contributorshowto.rst | 36 -
qpython-docs/source/zh/howtostart.rst | 28 -
qpython-docs/source/zhindex.rst | 33 -
site/404.html | 1980 +++++
{docs/images => site/_static}/1.png | Bin
{docs/images => site/_static}/2.png | Bin
{docs/images => site/_static}/3.png | Bin
{docs/images => site/_static}/bestpython.png | Bin
.../static => site/_static}/googledrive-.png | Bin
{docs/static => site/_static}/googledrive.jpg | Bin
.../_static}/guide_extend_pic1.png | Bin
.../_static}/guide_extend_pic2.png | Bin
.../_static}/guide_helloworld_pic1.png | Bin
.../_static}/guide_howtostart_pic1.png | Bin
.../_static}/guide_howtostart_pic2.png | Bin
.../_static}/guide_howtostart_pic3.png | Bin
.../_static}/guide_howtostart_pic4.png | Bin
.../_static}/guide_howtostart_pic5.png | Bin
.../_static}/guide_ide_qedit4web.png | Bin
.../_static}/guide_ide_qedit4web_choose.png | Bin
.../_static}/guide_ide_qedit4web_develop.png | Bin
.../_static}/guide_program_pic1.png | Bin
{docs/images => site/_static}/sl4a.jpg | Bin
.../_static}/taskerplugin-for-qpython.png | Bin
{docs/static => site/_static}/wecomdrive-.png | Bin
{docs/static => site/_static}/wecomdrive.jpg | Bin
site/assets/images/favicon.png | Bin 0 -> 1870 bytes
.../assets/javascripts/bundle.79ae519e.min.js | 16 +
.../javascripts/bundle.79ae519e.min.js.map | 7 +
.../javascripts/lunr/min/lunr.ar.min.js | 1 +
.../javascripts/lunr/min/lunr.da.min.js | 18 +
.../javascripts/lunr/min/lunr.de.min.js | 18 +
.../javascripts/lunr/min/lunr.du.min.js | 18 +
.../javascripts/lunr/min/lunr.el.min.js | 1 +
.../javascripts/lunr/min/lunr.es.min.js | 18 +
.../javascripts/lunr/min/lunr.fi.min.js | 18 +
.../javascripts/lunr/min/lunr.fr.min.js | 18 +
.../javascripts/lunr/min/lunr.he.min.js | 1 +
.../javascripts/lunr/min/lunr.hi.min.js | 1 +
.../javascripts/lunr/min/lunr.hu.min.js | 18 +
.../javascripts/lunr/min/lunr.hy.min.js | 1 +
.../javascripts/lunr/min/lunr.it.min.js | 18 +
.../javascripts/lunr/min/lunr.ja.min.js | 1 +
.../javascripts/lunr/min/lunr.jp.min.js | 1 +
.../javascripts/lunr/min/lunr.kn.min.js | 1 +
.../javascripts/lunr/min/lunr.ko.min.js | 1 +
.../javascripts/lunr/min/lunr.multi.min.js | 1 +
.../javascripts/lunr/min/lunr.nl.min.js | 18 +
.../javascripts/lunr/min/lunr.no.min.js | 18 +
.../javascripts/lunr/min/lunr.pt.min.js | 18 +
.../javascripts/lunr/min/lunr.ro.min.js | 18 +
.../javascripts/lunr/min/lunr.ru.min.js | 18 +
.../javascripts/lunr/min/lunr.sa.min.js | 1 +
.../lunr/min/lunr.stemmer.support.min.js | 1 +
.../javascripts/lunr/min/lunr.sv.min.js | 18 +
.../javascripts/lunr/min/lunr.ta.min.js | 1 +
.../javascripts/lunr/min/lunr.te.min.js | 1 +
.../javascripts/lunr/min/lunr.th.min.js | 1 +
.../javascripts/lunr/min/lunr.tr.min.js | 18 +
.../javascripts/lunr/min/lunr.vi.min.js | 1 +
.../javascripts/lunr/min/lunr.zh.min.js | 1 +
site/assets/javascripts/lunr/tinyseg.js | 206 +
site/assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++
.../workers/search.2c215733.min.js | 42 +
.../workers/search.2c215733.min.js.map | 7 +
site/assets/stylesheets/main.484c7ddc.min.css | 1 +
.../stylesheets/main.484c7ddc.min.css.map | 1 +
.../stylesheets/palette.ab4e12ef.min.css | 1 +
.../stylesheets/palette.ab4e12ef.min.css.map | 1 +
site/editor-guide/index.html | 2167 ++++++
site/external-api/index.html | 2208 ++++++
site/getting-started/index.html | 2735 +++++++
site/index.html | 2249 ++++++
site/qpypi-guide/index.html | 2216 ++++++
site/qpython-x/index.html | 2213 ++++++
site/qsl4a/connectivity/location/index.html | 2308 ++++++
site/qsl4a/connectivity/sms/index.html | 2323 ++++++
site/qsl4a/connectivity/wifi/index.html | 2215 ++++++
site/qsl4a/core/android-base/index.html | 2552 +++++++
site/qsl4a/core/events/index.html | 2766 +++++++
site/qsl4a/core/intent/index.html | 2769 +++++++
site/qsl4a/hardware/bluetooth/index.html | 2815 +++++++
site/qsl4a/hardware/camera/index.html | 2557 +++++++
site/qsl4a/hardware/recorder/index.html | 2186 ++++++
site/qsl4a/index.html | 2421 ++++++
site/qsl4a/media/image/index.html | 2267 ++++++
site/qsl4a/media/mediaplayer/index.html | 2654 +++++++
site/qsl4a/special/cipher/index.html | 2453 ++++++
site/qsl4a/special/pgptai/index.html | 2281 ++++++
site/qsl4a/storage/clipboard/index.html | 2219 ++++++
site/qsl4a/storage/documentfile/index.html | 2535 +++++++
site/qsl4a/system/application/index.html | 2489 ++++++
site/qsl4a/system/battery/index.html | 2362 ++++++
site/qsl4a/system/sensors/index.html | 2442 ++++++
site/qsl4a/system/sysinfo/index.html | 2460 ++++++
site/qsl4a/ui/accessibility/index.html | 2512 ++++++
site/qsl4a/ui/dialogs/index.html | 2663 +++++++
site/qsl4a/ui/floatview/index.html | 2274 ++++++
site/qsl4a/ui/fullscreen/index.html | 2465 ++++++
site/search/search_index.json | 1 +
site/sitemap.xml | 127 +
site/sitemap.xml.gz | Bin 0 -> 456 bytes
site/tutorial-hello-world/index.html | 2209 ++++++
.../source => source/en}/_static/.DS_Store | Bin
{docs/static => source/en/_static}/1.png | Bin
{docs/static => source/en/_static}/2.png | Bin
{docs/static => source/en/_static}/3.png | Bin
.../en/_static}/bestpython.png | Bin
.../en}/_static/googledrive-.png | Bin
.../en}/_static/googledrive.jpg | Bin
.../en/_static}/guide_extend_pic1.png | Bin
.../en/_static}/guide_extend_pic2.png | Bin
.../en/_static}/guide_helloworld_pic1.png | Bin
.../en/_static}/guide_howtostart_pic1.png | Bin
.../en/_static}/guide_howtostart_pic2.png | Bin
.../en/_static}/guide_howtostart_pic3.png | Bin
.../en/_static}/guide_howtostart_pic4.png | Bin
.../en/_static}/guide_howtostart_pic5.png | Bin
.../en/_static}/guide_ide_qedit4web.png | Bin
.../_static}/guide_ide_qedit4web_choose.png | Bin
.../_static}/guide_ide_qedit4web_develop.png | Bin
.../en/_static}/guide_program_pic1.png | Bin
{docs/static => source/en/_static}/sl4a.jpg | Bin
.../en}/_static/taskerplugin-for-qpython.png | Bin
.../en}/_static/wecomdrive-.png | Bin
.../en}/_static/wecomdrive.jpg | Bin
.../en/editor-guide.md | 25 +-
source/en/external-api.md | 125 +
source/en/getting-started.md | 233 +
source/en/index.md | 69 +
source/en/qpypi-guide.md | 34 +
source/en/qpython-x.md | 109 +
source/en/qsl4a/connectivity/location.md | 73 +
source/en/qsl4a/connectivity/sms.md | 67 +
source/en/qsl4a/connectivity/wifi.md | 35 +
source/en/qsl4a/core/android-base.md | 129 +
source/en/qsl4a/core/events.md | 211 +
source/en/qsl4a/core/intent.md | 185 +
source/en/qsl4a/hardware/bluetooth.md | 201 +
source/en/qsl4a/hardware/camera.md | 131 +
source/en/qsl4a/hardware/recorder.md | 26 +
source/en/qsl4a/index.md | 76 +
source/en/qsl4a/media/image.md | 57 +
source/en/qsl4a/media/mediaplayer.md | 152 +
source/en/qsl4a/special/cipher.md | 114 +
source/en/qsl4a/special/pgptai.md | 68 +
source/en/qsl4a/storage/clipboard.md | 41 +
source/en/qsl4a/storage/documentfile.md | 131 +
source/en/qsl4a/system/application.md | 107 +
source/en/qsl4a/system/battery.md | 91 +
source/en/qsl4a/system/sensors.md | 118 +
source/en/qsl4a/system/sysinfo.md | 90 +
source/en/qsl4a/ui/accessibility.md | 123 +
source/en/qsl4a/ui/dialogs.md | 131 +
source/en/qsl4a/ui/floatview.md | 55 +
source/en/qsl4a/ui/fullscreen.md | 109 +
.../en/tutorial-hello-world.md | 135 +-
384 files changed, 87735 insertions(+), 25431 deletions(-)
create mode 100644 CLAUDE.md
delete mode 100644 docs/.buildinfo
delete mode 100644 docs/CNAME
delete mode 100644 docs/_sources/contributors.rst.txt
delete mode 100644 docs/_sources/document.rst.txt
delete mode 100644 docs/_sources/en/faq.rst.txt
delete mode 100644 docs/_sources/en/guide.rst.txt
delete mode 100644 docs/_sources/en/guide_androidhelpers.rst.txt
delete mode 100644 docs/_sources/en/guide_contributors.rst.txt
delete mode 100644 docs/_sources/en/guide_contributors_test.rst.txt
delete mode 100644 docs/_sources/en/guide_developers.rst.txt
delete mode 100644 docs/_sources/en/guide_extend.rst.txt
delete mode 100644 docs/_sources/en/guide_helloworld.rst.txt
delete mode 100644 docs/_sources/en/guide_howtostart.rst.txt
delete mode 100644 docs/_sources/en/guide_libraries.rst.txt
delete mode 100644 docs/_sources/en/guide_program.rst.txt
delete mode 100644 docs/_sources/en/qpypi.rst.txt
delete mode 100644 docs/_sources/en/qpython3.rst.txt
delete mode 100644 docs/_sources/en/qpython_3x_featues.rst.txt
delete mode 100644 docs/_sources/en/qpython_ox_featues.rst.txt
delete mode 100644 docs/_sources/features/2018-09-28-dropbear-cn.rst.txt
delete mode 100644 docs/_sources/zh/contributorshowto.rst.txt
delete mode 100644 docs/_sources/zh/howtostart.rst.txt
delete mode 100644 docs/_sources/zhindex.rst.txt
delete mode 100644 docs/agreement-cn.html
delete mode 100644 docs/agreement.html
delete mode 100644 docs/community.html
delete mode 100644 docs/contributors.html
delete mode 100644 docs/default.html
delete mode 100644 docs/discord.html
delete mode 100644 docs/document.html
delete mode 100644 docs/en/faq.html
delete mode 100644 docs/en/guide.html
delete mode 100644 docs/en/guide_androidhelpers.html
delete mode 100644 docs/en/guide_contributors.html
delete mode 100644 docs/en/guide_contributors_test.html
delete mode 100644 docs/en/guide_developers.html
delete mode 100644 docs/en/guide_extend.html
delete mode 100644 docs/en/guide_helloworld.html
delete mode 100644 docs/en/guide_howtostart.html
delete mode 100644 docs/en/guide_ide.html
delete mode 100644 docs/en/guide_libraries.html
delete mode 100644 docs/en/guide_program.html
delete mode 100644 docs/en/qpypi.html
delete mode 100644 docs/en/qpython3.html
delete mode 100644 docs/en/qpython_3x_featues.html
delete mode 100644 docs/en/qpython_ox_featues.html
delete mode 100644 docs/favicon.ico
delete mode 100644 docs/features/2018-09-28-dropbear-cn.html
delete mode 100644 docs/genindex.html
delete mode 100644 docs/huawei.html
delete mode 100755 docs/index.html
delete mode 100644 docs/objects.inv
delete mode 100644 docs/privacy-cn.html
delete mode 100644 docs/privacy.html
delete mode 100644 docs/qlua-privacy.html
delete mode 100644 docs/qlua-rate.html
delete mode 100644 docs/qpy3-rate.html
delete mode 100644 docs/qq.html
delete mode 100644 docs/search.html
delete mode 100644 docs/searchindex.js
delete mode 100644 docs/static/apk_down.png
delete mode 100644 docs/static/basic.css
delete mode 100644 docs/static/bootstrap.min.css
delete mode 100644 docs/static/bootstrap.min.js
delete mode 100644 docs/static/doctools.js
delete mode 100644 docs/static/documentation_options.js
delete mode 100644 docs/static/file.png
delete mode 100644 docs/static/ic_appstore@2x.png
delete mode 100644 docs/static/ic_appstore_2x.png
delete mode 100644 docs/static/ic_community@2x.png
delete mode 100644 docs/static/ic_facebook.png
delete mode 100644 docs/static/ic_faq@2x.png
delete mode 100644 docs/static/ic_googleplay@2x.png
delete mode 100644 docs/static/ic_googleplay_2x.png
delete mode 100644 docs/static/ic_googleplay_3_2x.png
delete mode 100644 docs/static/ic_new@2x.png
delete mode 100644 docs/static/ic_search.png
delete mode 100644 docs/static/ic_support@2x.png
delete mode 100644 docs/static/ic_twitter.png
delete mode 100644 docs/static/img_background.png
delete mode 100644 docs/static/img_banner-1.jpg
delete mode 100644 docs/static/img_banner-1.png
delete mode 100644 docs/static/img_banner-1@2x.jpg
delete mode 100644 docs/static/img_banner-1@2x.png
delete mode 100644 docs/static/img_logo.png
delete mode 100644 docs/static/ios_link.png
delete mode 100644 docs/static/jquery.min.js
delete mode 100644 docs/static/language_data.js
delete mode 100644 docs/static/minus.png
delete mode 100644 docs/static/plus.png
delete mode 100644 docs/static/pygments.css
delete mode 100644 docs/static/qpy-easter-egg.jpg
delete mode 100644 docs/static/qpython_theme.css
delete mode 100644 docs/static/searchtools.js
delete mode 100644 docs/static/sphinx_highlight.js
delete mode 100644 docs/static/web.js
delete mode 100644 docs/xiaomi.html
delete mode 100644 docs/zh/contributorshowto.html
delete mode 100644 docs/zh/howtostart.html
delete mode 100644 docs/zhindex.html
create mode 100644 mkdocs.yml
delete mode 100644 qpython-docs/.DS_Store
delete mode 100644 qpython-docs/CNAME
delete mode 100644 qpython-docs/Makefile
delete mode 100644 qpython-docs/a8.json
delete mode 100644 qpython-docs/add-analytics-window.py
delete mode 100644 qpython-docs/add-analytics.py
delete mode 100644 qpython-docs/agreement-cn.html
delete mode 100644 qpython-docs/agreement.html
delete mode 100644 qpython-docs/build-window.bat
delete mode 100755 qpython-docs/build.sh
delete mode 100644 qpython-docs/community.html
delete mode 100644 qpython-docs/discord.html
delete mode 100644 qpython-docs/docs/doctrees/contributors.doctree
delete mode 100644 qpython-docs/docs/doctrees/document.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/faq.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_androidhelpers.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_contributors.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_contributors_test.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_developers.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_extend.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_helloworld.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_howtostart.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_ide.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_libraries.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/guide_program.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/qpypi.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/qpython3.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/qpython_3x_featues.doctree
delete mode 100644 qpython-docs/docs/doctrees/en/qpython_ox_featues.doctree
delete mode 100644 qpython-docs/docs/doctrees/environment.pickle
delete mode 100644 qpython-docs/docs/doctrees/features/2018-09-28-dropbear-cn.doctree
delete mode 100644 qpython-docs/docs/doctrees/zh/contributorshowto.doctree
delete mode 100644 qpython-docs/docs/doctrees/zh/howtostart.doctree
delete mode 100644 qpython-docs/docs/doctrees/zhindex.doctree
delete mode 100644 qpython-docs/extra.txt
delete mode 100644 qpython-docs/favicon.ico
delete mode 100644 qpython-docs/img_banner-1.jpg
delete mode 100755 qpython-docs/img_banner-1@2x.jpg
delete mode 100755 qpython-docs/index.html
delete mode 100644 qpython-docs/make-window.bat
delete mode 100644 qpython-docs/market/default.html
delete mode 100644 qpython-docs/market/huawei.html
delete mode 100644 qpython-docs/market/qq.html
delete mode 100644 qpython-docs/market/xiaomi.html
delete mode 100644 qpython-docs/media/logo32x32.png
delete mode 100644 qpython-docs/media/qpython-build-as.png
delete mode 100644 qpython-docs/media/qpython-build-ndk-false.jpg
delete mode 100644 qpython-docs/media/qpython-build-ndk.jpg
delete mode 100644 qpython-docs/privacy-cn.html
delete mode 100644 qpython-docs/privacy.html
delete mode 100644 qpython-docs/qlua-privacy.html
delete mode 100644 qpython-docs/qlua-rate.html
delete mode 100644 qpython-docs/qpy3-privacy.html
delete mode 100644 qpython-docs/qpy3-rate.html
delete mode 100644 qpython-docs/quick-start/index.html
delete mode 100644 qpython-docs/requirements.txt
delete mode 100644 qpython-docs/source/.DS_Store
delete mode 100644 qpython-docs/source/_static/1.png
delete mode 100644 qpython-docs/source/_static/2.png
delete mode 100644 qpython-docs/source/_static/3.png
delete mode 100755 qpython-docs/source/_static/bestpython.png
delete mode 100644 qpython-docs/source/_static/guide_extend_pic1.png
delete mode 100644 qpython-docs/source/_static/guide_extend_pic2.png
delete mode 100644 qpython-docs/source/_static/guide_helloworld_pic1.png
delete mode 100644 qpython-docs/source/_static/guide_howtostart_pic1.png
delete mode 100644 qpython-docs/source/_static/guide_howtostart_pic2.png
delete mode 100644 qpython-docs/source/_static/guide_howtostart_pic3.png
delete mode 100644 qpython-docs/source/_static/guide_howtostart_pic4.png
delete mode 100644 qpython-docs/source/_static/guide_howtostart_pic5.png
delete mode 100755 qpython-docs/source/_static/guide_ide_qedit4web.png
delete mode 100644 qpython-docs/source/_static/guide_ide_qedit4web_choose.png
delete mode 100644 qpython-docs/source/_static/guide_ide_qedit4web_develop.png
delete mode 100644 qpython-docs/source/_static/guide_program_pic1.png
delete mode 100644 qpython-docs/source/_static/sl4a.jpg
delete mode 100644 qpython-docs/source/conf.py
delete mode 100644 qpython-docs/source/contributors.rst
delete mode 100644 qpython-docs/source/document.rst
delete mode 100644 qpython-docs/source/en/faq.rst
delete mode 100644 qpython-docs/source/en/guide.rst
delete mode 100644 qpython-docs/source/en/guide_androidhelpers.rst
delete mode 100644 qpython-docs/source/en/guide_contributors.rst
delete mode 100644 qpython-docs/source/en/guide_contributors_test.rst
delete mode 100644 qpython-docs/source/en/guide_developers.rst
delete mode 100644 qpython-docs/source/en/guide_extend.rst
delete mode 100644 qpython-docs/source/en/guide_howtostart.rst
delete mode 100644 qpython-docs/source/en/guide_ide.rst
delete mode 100644 qpython-docs/source/en/guide_libraries.rst
delete mode 100644 qpython-docs/source/en/guide_program.rst
delete mode 100644 qpython-docs/source/en/qpypi.rst
delete mode 100644 qpython-docs/source/en/qpython3.rst
delete mode 100644 qpython-docs/source/en/qpython_3x_featues.rst
delete mode 100644 qpython-docs/source/en/qpython_ox_featues.rst
delete mode 100644 qpython-docs/source/features/2018-09-28-dropbear-cn.rst
delete mode 100644 qpython-docs/source/qpython_theme/.DS_Store
delete mode 100644 qpython-docs/source/qpython_theme/__init__.py
delete mode 100644 qpython-docs/source/qpython_theme/layout.html
delete mode 100755 qpython-docs/source/qpython_theme/static/apk_down.png
delete mode 100644 qpython-docs/source/qpython_theme/static/bootstrap.min.css
delete mode 100644 qpython-docs/source/qpython_theme/static/bootstrap.min.js
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_appstore@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_appstore_2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_community@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_facebook.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_faq@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_googleplay@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_googleplay_2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_googleplay_3_2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_new@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_search.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_support@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ic_twitter.png
delete mode 100755 qpython-docs/source/qpython_theme/static/img_background.png
delete mode 100644 qpython-docs/source/qpython_theme/static/img_banner-1.jpg
delete mode 100755 qpython-docs/source/qpython_theme/static/img_banner-1.png
delete mode 100644 qpython-docs/source/qpython_theme/static/img_banner-1@2x.jpg
delete mode 100755 qpython-docs/source/qpython_theme/static/img_banner-1@2x.png
delete mode 100755 qpython-docs/source/qpython_theme/static/img_logo.png
delete mode 100755 qpython-docs/source/qpython_theme/static/ios_link.png
delete mode 100644 qpython-docs/source/qpython_theme/static/jquery.min.js
delete mode 100644 qpython-docs/source/qpython_theme/static/qpy-easter-egg.jpg
delete mode 100755 qpython-docs/source/qpython_theme/static/qpython_theme.css
delete mode 100644 qpython-docs/source/qpython_theme/static/web.js
delete mode 100644 qpython-docs/source/qpython_theme/theme.conf
delete mode 100644 qpython-docs/source/zh/contributorshowto.rst
delete mode 100644 qpython-docs/source/zh/howtostart.rst
delete mode 100644 qpython-docs/source/zhindex.rst
create mode 100644 site/404.html
rename {docs/images => site/_static}/1.png (100%)
rename {docs/images => site/_static}/2.png (100%)
rename {docs/images => site/_static}/3.png (100%)
rename {docs/images => site/_static}/bestpython.png (100%)
rename {docs/static => site/_static}/googledrive-.png (100%)
rename {docs/static => site/_static}/googledrive.jpg (100%)
rename {docs/images => site/_static}/guide_extend_pic1.png (100%)
rename {docs/images => site/_static}/guide_extend_pic2.png (100%)
rename {docs/images => site/_static}/guide_helloworld_pic1.png (100%)
rename {docs/images => site/_static}/guide_howtostart_pic1.png (100%)
rename {docs/images => site/_static}/guide_howtostart_pic2.png (100%)
rename {docs/images => site/_static}/guide_howtostart_pic3.png (100%)
rename {docs/images => site/_static}/guide_howtostart_pic4.png (100%)
rename {docs/images => site/_static}/guide_howtostart_pic5.png (100%)
rename {docs/images => site/_static}/guide_ide_qedit4web.png (100%)
rename {docs/images => site/_static}/guide_ide_qedit4web_choose.png (100%)
rename {docs/images => site/_static}/guide_ide_qedit4web_develop.png (100%)
rename {docs/images => site/_static}/guide_program_pic1.png (100%)
rename {docs/images => site/_static}/sl4a.jpg (100%)
rename {docs/static => site/_static}/taskerplugin-for-qpython.png (100%)
rename {docs/static => site/_static}/wecomdrive-.png (100%)
rename {docs/static => site/_static}/wecomdrive.jpg (100%)
create mode 100644 site/assets/images/favicon.png
create mode 100644 site/assets/javascripts/bundle.79ae519e.min.js
create mode 100644 site/assets/javascripts/bundle.79ae519e.min.js.map
create mode 100644 site/assets/javascripts/lunr/min/lunr.ar.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.da.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.de.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.du.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.el.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.es.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.fi.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.fr.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.he.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.hi.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.hu.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.hy.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.it.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.ja.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.jp.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.kn.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.ko.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.multi.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.nl.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.no.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.pt.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.ro.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.ru.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.sa.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.stemmer.support.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.sv.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.ta.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.te.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.th.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.tr.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.vi.min.js
create mode 100644 site/assets/javascripts/lunr/min/lunr.zh.min.js
create mode 100644 site/assets/javascripts/lunr/tinyseg.js
create mode 100644 site/assets/javascripts/lunr/wordcut.js
create mode 100644 site/assets/javascripts/workers/search.2c215733.min.js
create mode 100644 site/assets/javascripts/workers/search.2c215733.min.js.map
create mode 100644 site/assets/stylesheets/main.484c7ddc.min.css
create mode 100644 site/assets/stylesheets/main.484c7ddc.min.css.map
create mode 100644 site/assets/stylesheets/palette.ab4e12ef.min.css
create mode 100644 site/assets/stylesheets/palette.ab4e12ef.min.css.map
create mode 100644 site/editor-guide/index.html
create mode 100644 site/external-api/index.html
create mode 100644 site/getting-started/index.html
create mode 100644 site/index.html
create mode 100644 site/qpypi-guide/index.html
create mode 100644 site/qpython-x/index.html
create mode 100644 site/qsl4a/connectivity/location/index.html
create mode 100644 site/qsl4a/connectivity/sms/index.html
create mode 100644 site/qsl4a/connectivity/wifi/index.html
create mode 100644 site/qsl4a/core/android-base/index.html
create mode 100644 site/qsl4a/core/events/index.html
create mode 100644 site/qsl4a/core/intent/index.html
create mode 100644 site/qsl4a/hardware/bluetooth/index.html
create mode 100644 site/qsl4a/hardware/camera/index.html
create mode 100644 site/qsl4a/hardware/recorder/index.html
create mode 100644 site/qsl4a/index.html
create mode 100644 site/qsl4a/media/image/index.html
create mode 100644 site/qsl4a/media/mediaplayer/index.html
create mode 100644 site/qsl4a/special/cipher/index.html
create mode 100644 site/qsl4a/special/pgptai/index.html
create mode 100644 site/qsl4a/storage/clipboard/index.html
create mode 100644 site/qsl4a/storage/documentfile/index.html
create mode 100644 site/qsl4a/system/application/index.html
create mode 100644 site/qsl4a/system/battery/index.html
create mode 100644 site/qsl4a/system/sensors/index.html
create mode 100644 site/qsl4a/system/sysinfo/index.html
create mode 100644 site/qsl4a/ui/accessibility/index.html
create mode 100644 site/qsl4a/ui/dialogs/index.html
create mode 100644 site/qsl4a/ui/floatview/index.html
create mode 100644 site/qsl4a/ui/fullscreen/index.html
create mode 100644 site/search/search_index.json
create mode 100644 site/sitemap.xml
create mode 100644 site/sitemap.xml.gz
create mode 100644 site/tutorial-hello-world/index.html
rename {qpython-docs/source => source/en}/_static/.DS_Store (100%)
rename {docs/static => source/en/_static}/1.png (100%)
rename {docs/static => source/en/_static}/2.png (100%)
rename {docs/static => source/en/_static}/3.png (100%)
rename {docs/static => source/en/_static}/bestpython.png (100%)
mode change 100644 => 100755
rename {qpython-docs/source => source/en}/_static/googledrive-.png (100%)
rename {qpython-docs/source => source/en}/_static/googledrive.jpg (100%)
rename {docs/static => source/en/_static}/guide_extend_pic1.png (100%)
rename {docs/static => source/en/_static}/guide_extend_pic2.png (100%)
rename {docs/static => source/en/_static}/guide_helloworld_pic1.png (100%)
rename {docs/static => source/en/_static}/guide_howtostart_pic1.png (100%)
rename {docs/static => source/en/_static}/guide_howtostart_pic2.png (100%)
rename {docs/static => source/en/_static}/guide_howtostart_pic3.png (100%)
rename {docs/static => source/en/_static}/guide_howtostart_pic4.png (100%)
rename {docs/static => source/en/_static}/guide_howtostart_pic5.png (100%)
rename {docs/static => source/en/_static}/guide_ide_qedit4web.png (100%)
mode change 100644 => 100755
rename {docs/static => source/en/_static}/guide_ide_qedit4web_choose.png (100%)
rename {docs/static => source/en/_static}/guide_ide_qedit4web_develop.png (100%)
rename {docs/static => source/en/_static}/guide_program_pic1.png (100%)
rename {docs/static => source/en/_static}/sl4a.jpg (100%)
rename {qpython-docs/source => source/en}/_static/taskerplugin-for-qpython.png (100%)
rename {qpython-docs/source => source/en}/_static/wecomdrive-.png (100%)
rename {qpython-docs/source => source/en}/_static/wecomdrive.jpg (100%)
rename docs/_sources/en/guide_ide.rst.txt => source/en/editor-guide.md (64%)
create mode 100644 source/en/external-api.md
create mode 100644 source/en/getting-started.md
create mode 100644 source/en/index.md
create mode 100644 source/en/qpypi-guide.md
create mode 100644 source/en/qpython-x.md
create mode 100644 source/en/qsl4a/connectivity/location.md
create mode 100644 source/en/qsl4a/connectivity/sms.md
create mode 100644 source/en/qsl4a/connectivity/wifi.md
create mode 100644 source/en/qsl4a/core/android-base.md
create mode 100644 source/en/qsl4a/core/events.md
create mode 100644 source/en/qsl4a/core/intent.md
create mode 100644 source/en/qsl4a/hardware/bluetooth.md
create mode 100644 source/en/qsl4a/hardware/camera.md
create mode 100644 source/en/qsl4a/hardware/recorder.md
create mode 100644 source/en/qsl4a/index.md
create mode 100644 source/en/qsl4a/media/image.md
create mode 100644 source/en/qsl4a/media/mediaplayer.md
create mode 100644 source/en/qsl4a/special/cipher.md
create mode 100644 source/en/qsl4a/special/pgptai.md
create mode 100644 source/en/qsl4a/storage/clipboard.md
create mode 100644 source/en/qsl4a/storage/documentfile.md
create mode 100644 source/en/qsl4a/system/application.md
create mode 100644 source/en/qsl4a/system/battery.md
create mode 100644 source/en/qsl4a/system/sensors.md
create mode 100644 source/en/qsl4a/system/sysinfo.md
create mode 100644 source/en/qsl4a/ui/accessibility.md
create mode 100644 source/en/qsl4a/ui/dialogs.md
create mode 100644 source/en/qsl4a/ui/floatview.md
create mode 100644 source/en/qsl4a/ui/fullscreen.md
rename qpython-docs/source/en/guide_helloworld.rst => source/en/tutorial-hello-world.md (53%)
diff --git a/.gitignore b/.gitignore
index c3a43c5..115dfad 100755
--- a/.gitignore
+++ b/.gitignore
@@ -40,3 +40,4 @@ nosetests.xml
qpython-docs/venv/*
qpython-docs/build/*
qpython-docs/static/*
+venv
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000..381bb57
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,107 @@
+# CLAUDE.md
+
+This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
+
+## Project Overview
+
+This is the QPython website and documentation repository (www.qpython.org). QPython is a Python script engine for Android devices. The site is built with [Sphinx](https://www.sphinx-doc.org/) using reStructuredText (.rst) source files.
+
+## Build Commands
+
+All build commands should be run from the `qpython-docs/` directory:
+
+```bash
+cd qpython-docs
+```
+
+### Development Build (Local Testing)
+
+Build HTML documentation for local testing:
+
+```bash
+make html
+```
+
+Output will be in `qpython-docs/build/html/`. Open `build/html/index.html` in a browser to preview.
+
+### Production Build (Deployment)
+
+Build the full site including analytics, static file processing, and copy to the deployment directory:
+
+```bash
+./build.sh
+```
+
+This script:
+1. Removes the existing `docs/` folder at the repository root
+2. Runs `make html` to build the documentation
+3. Adds Google Analytics and Facebook comments via `add-analytics.py`
+4. Renames `_static/` to `static/` and `_images/` to `images/`
+5. Copies additional static files (CNAME, favicon.ico, index.html, privacy pages, etc.)
+6. Outputs final site to `/docs/` (which is deployed via GitHub Pages)
+
+### Other Useful Commands
+
+```bash
+make clean # Remove build artifacts
+make linkcheck # Check for broken external links
+make doctest # Run doctests in documentation
+```
+
+## Project Architecture
+
+### Directory Structure
+
+```
+qpython-docs/
+├── source/ # Documentation source files (.rst)
+│ ├── document.rst # Main toctree (entry point)
+│ ├── conf.py # Sphinx configuration
+│ ├── _static/ # Static assets (CSS, images)
+│ ├── en/ # English documentation
+│ │ ├── guide.rst
+│ │ ├── faq.rst
+│ │ └── ...
+│ ├── zh/ # Chinese documentation
+│ └── qpython_theme/ # Custom Sphinx theme
+│ └── __init__.py
+├── build.sh # Production build script
+├── add-analytics.py # Post-processor for analytics injection
+├── extra.txt # Analytics code template
+├── requirements.txt # Python dependencies
+└── Makefile # Sphinx build commands
+
+docs/ # Built site (deployment target)
+├── index.html # Site homepage
+├── document.html # Documentation homepage
+├── en/ # Built English docs
+├── _sources/ # Source archives (for Sphinx)
+└── ...
+```
+
+### Key Files
+
+- **`qpython-docs/source/conf.py`**: Sphinx configuration including theme (`qpython_theme`), version, and extensions
+- **`qpython-docs/source/document.rst`**: Main documentation entry point with toctree
+- **`qpython-docs/build.sh`**: Production build script that processes the Sphinx output and prepares it for deployment
+- **`qpython-docs/extra.txt`**: Template for injecting Google Analytics and Facebook comments into HTML
+- **`docs/CNAME`**: Configures custom domain (www.qpython.org) for GitHub Pages
+
+### Custom Theme
+
+The documentation uses a custom Sphinx theme located at `qpython-docs/source/qpython_theme/`. The theme path is registered in `conf.py` via the `qpython_theme` package.
+
+### Documentation Languages
+
+- English: `qpython-docs/source/en/`
+- Chinese: `qpython-docs/source/zh/`
+
+Each language has its own toctree structure. The master document (`document.rst`) includes the English guide by default and links to Chinese content via `zhindex.rst`.
+
+### Deployment
+
+The `docs/` folder at the repository root is the deployment target. It is served via GitHub Pages. After making changes:
+
+1. Run `./build.sh` to rebuild the site
+2. Commit the changes in both `qpython-docs/source/` (source) and `docs/` (built output)
+3. Push to deploy
diff --git a/docs/.buildinfo b/docs/.buildinfo
deleted file mode 100644
index a9af287..0000000
--- a/docs/.buildinfo
+++ /dev/null
@@ -1,4 +0,0 @@
-# Sphinx build info version 1
-# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: e4277cb8131332b01f6e2dc120dd6b1b
-tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/CNAME b/docs/CNAME
deleted file mode 100644
index 4632497..0000000
--- a/docs/CNAME
+++ /dev/null
@@ -1 +0,0 @@
-www.qpython.org
diff --git a/docs/_sources/contributors.rst.txt b/docs/_sources/contributors.rst.txt
deleted file mode 100644
index 1d578cf..0000000
--- a/docs/_sources/contributors.rst.txt
+++ /dev/null
@@ -1,61 +0,0 @@
-Contributors
-===============
-
-Thanks contributers for helping with QPython projects.
-
-We want you to join us, If you want to join us, please email us support@qpython.org
-
-
-Developers
------------
-`River `_
-
-`乘着船 `_
-
-`kyle kersey `_
-
-`Mae `_
-
-`ZRH `_
-
-*How to contribute*
-
-Please send an email to us with your self introduction and what kind of development do you want to contribute.
-
-
-
-
-Communities Organizers
-----------------------
-`LR `_ (Chinese QQ Group: 540717901)
-
-*How to run a QPython Community*
-
-We appreciate that you build a QPython topic community, you can invite us to join for answering any question about qpython by sending an email to us for telling how to join.
-
-
-Localization
-----------------------
-`Fogapod `_ (Russian)
-
-`Frodo821 `_ (Japanese)
-
-`Darciss Rehot'acc `_ (Turkish)
-
-`Christo phe `_ (French)
-
-*How to contribute localization translate*
-
-We appreciate that you are willing to help with translate QPython / QPython3.
-
-`This repo `_ is the localization project, you can post pull request and send en email to us, then we will merge it and publish in next update.
-
-
-If you don't want to use git, you can just translate the words which do not contains translatable="false" in the following files.
-
-- `strings.xml `_
-- `toasts.xml `_
-
-And there is the description file
-
-- `en-US-intro.md `_
diff --git a/docs/_sources/document.rst.txt b/docs/_sources/document.rst.txt
deleted file mode 100644
index 7918285..0000000
--- a/docs/_sources/document.rst.txt
+++ /dev/null
@@ -1,111 +0,0 @@
-.. QPython documentation master file, created by
- sphinx-quickstart on Fri Apr 7 15:07:35 2017.
- You can adapt this file completely to your liking, but it should at least
- contain the root `toctree` directive.
-
-.. image:: _static/bestpython.png
-
-
-Welcome to read the QPython guide
-=============================================
-
-QPython is a script engine that runs Python on android devices. It lets your android device run Python scripts and projects. It contains the Python interpreter, console, editor, and the SL4A Library for Android. It’s Python on Android!
-
-
-QPython has several millions users in the world already, it's a great project for programming users, welcome to join us for contributing to this project NOW.
-
-
-What's NEW
-------------------------
-QPython project include the `QPython `_ and `QPython3 `_ applications.
-
-QPython application is using the **Python 2.7.2** , and QPython application is using the **Python 3.2.2** .
-
-
-QPython's newest version is 1.3.2 (Released on 2017/5/12) , QPython3's newest version is 1.0.2 (Released on 2017/3/29), New versions include many amazing features, please upgrade to the newest version as soon from google play, amazon appstore etc.
-
-
-Thanks these guys who are contributing
-----------------------------------------
-They are pushing on the QPython project moving forward.
-
-.. image:: https://avatars0.githubusercontent.com/u/3059527?v=3&s=60
- :target: https://github.com/riverfor
- :alt: River is the project's organizer and the current online QPython's author.
-
-.. image:: https://avatars0.githubusercontent.com/u/10812534?v=3&s=60
- :target: https://github.com/pollyfat
- :alt: Mae is a beautiful and talented girl developer who is good at python & android programming.
-
-.. image:: https://avatars0.githubusercontent.com/u/22494?v=3&s=60
- :target: https://github.com/ZoomQuiet
- :alt: Zoom.Quiet is a knowledgeable guy who is famous in many opensource communities.
-
-.. image:: https://avatars3.githubusercontent.com/u/10219741?v=3&s=60
- :target: https://github.com/mathiasluo
- :alt: MathiasLuo is a android geek developer
-
-.. image:: https://avatars2.githubusercontent.com/u/25975283?v=3&s=60
- :target: https://github.com/liyuanrui
- :alt: liyuanrui is a Chinese geek
-
-.. image:: https://avatars3.githubusercontent.com/u/5159173?v=3&s=60
- :target: https://github.com/kylelk
- :alt: Kyle kersey is a US geek
-
-
-Do you want to join the great QPython team ? You could `Ask qustions on twitter `_ or `email us `_.
-And you could `fork us on github `_ and send pull request.
-
-
-QPython Communities
-----------------------
-**There are many active QPython communities where you could meet the QPython users like you**
-
-* `Join Facebook community `_
-* `Join Google group `_
-* `Join Gitter chat `_
-* `Join G+ community(For QPython testers) `_
-* `QPython on Stackoverflow `_
-
-**And you could talk to us through social network**
-
-* `Like us on facebook `_
-* `Follow us on twitter `_
-
-* `Report issue `_
-* `Email us `_
-
-
-**It's the official QPython Users & Contributors' Guide, please follow these steps for using and contributing.**
-
-Support
--------------
-We are happy to hear feedback from you, but sometimes some bugs or features demand may not be implemented soon for we lack resources.
-
-So if you have any issue need the core developer team to solve with higher priority, you could try the `bountysource service `_.
-
-
-
-Now, let's GO
----------------
-.. toctree::
- :maxdepth: 2
-
- en/guide
-
-Others
----------------
-.. toctree::
- :maxdepth: 2
-
- en/faq
-
-
-For Chinese users
--------------------
-.. toctree::
- :maxdepth: 2
-
- zhindex
-
diff --git a/docs/_sources/en/faq.rst.txt b/docs/_sources/en/faq.rst.txt
deleted file mode 100644
index 2bee981..0000000
--- a/docs/_sources/en/faq.rst.txt
+++ /dev/null
@@ -1,26 +0,0 @@
-FAQ
-====
-
-
-**How to run qpython script from other terminals ?**
-
-- You could "share to" qpython from 3rd apps.
-
-- You need to root the android device first, then soure the env vars (Just like the qpython wiki link you mentioned) and execute the /data/data/org.qpython.qpy/bin/python or /data/data/org.qpython.qpy/bin/python-android5 (for android 5 above)
-
-
-`Share to case sample `_
-
-
-
-**Support pygame ?**
-
-Even you could import pygame in QPython, but QPython doesn't support pygame now.
-
-We will consider to support it later, please follow us on facebook to get it's progress.
-
-
-`Pygame case sample `_
-
-
-
diff --git a/docs/_sources/en/guide.rst.txt b/docs/_sources/en/guide.rst.txt
deleted file mode 100644
index f5cef59..0000000
--- a/docs/_sources/en/guide.rst.txt
+++ /dev/null
@@ -1,47 +0,0 @@
-Getting started
-==========================
-How to start quickly ? Just follow the following steps:
-
-.. toctree::
- :maxdepth: 2
-
- guide_howtostart
- guide_helloworld
-
-
-Programming Guide
-========================
-
-If you you want to know more about how to program through qpython, just follow these steps:
-
-
-.. toctree::
- :maxdepth: 2
-
- guide_program
- guide_ide
- guide_libraries
- guide_extend
-
-
-**QPython project is not only a powerful Python engine for android, but is a active technology community also.**
-
-Developer Guide
-=======================
-QPython developers' goal is pushing out a great Python for android.
-
-.. toctree::
- :maxdepth: 2
-
- guide_developers
-
-
-Contributor Guide
-========================
-
-Welcome to join QPython contributors team, you are not just a user, but a creator of QPython.
-
-.. toctree::
- :maxdepth: 2
-
- guide_contributors
diff --git a/docs/_sources/en/guide_androidhelpers.rst.txt b/docs/_sources/en/guide_androidhelpers.rst.txt
deleted file mode 100644
index e64294a..0000000
--- a/docs/_sources/en/guide_androidhelpers.rst.txt
+++ /dev/null
@@ -1,2038 +0,0 @@
-The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environment or ASE) is a library that allows the creation and running of scripts written in various scripting languages directly on Android devices. QPython start to extend the SL4A project and integrate it.
-
-
-.. image:: ../_static/sl4a.jpg
-
-There are many SL4A APIs, if you found any issue, please `report an issue `_.
-
-AndroidFacade
-===============
-
-Clipboard APIs
-----------------
-.. py:function:: setClipboard(text)
-
- Put text in the clipboard
-
- :param str text: text
-
-.. py:function:: getClipboard(text)
-
- Read text from the clipboard
-
- :return: The text in the clipboard
-
-
-::
-
- from androidhelper import Android
- droid = Android()
-
- #setClipboard
- droid.setClipboard("Hello World")
-
- #getClipboard
- clipboard = droid.getClipboard().result
-
-
-Intent & startActivity APIs
-----------------------------------
-.. py:function:: makeIntent(action, uri, type, extras, categories, packagename, classname, flags)
-
- Starts an activity and returns the result
-
- :param str action: action
- :param str uri(Optional): uri
- :param str type(Optional): MIME type/subtype of the URI
- :param object extras(Optional): a Map of extras to add to the Intent
- :param list categories(Optional): a List of categories to add to the Intent
- :param str packagename(Optional): name of package. If used, requires classname to be useful
- :param str classname(Optional): name of class. If used, requires packagename to be useful
- :param int flags(Optional): Intent flags
-
- :return: An object representing an Intent
-
-
-::
-
- sample code to show makeIntent
-
-
-.. py:function:: getIntent()
-
- Returns the intent that launched the script
-
-::
-
- sample code to show getIntent
-
-
-.. py:function:: startActivityForResult(action, uri, type, extras, packagename, classname)
-
- Starts an activity and returns the result
-
- :param str action: action
- :param str uri(Optional): uri
- :param str type(Optional): MIME type/subtype of the URI
- :param object extras(Optional): a Map of extras to add to the Intent
- :param str packagename(Optional): name of package. If used, requires classname to be useful
- :param str classname(Optional): name of class. If used, requires packagename to be useful
-
- :return: A Map representation of the result Intent
-
-
-::
-
- sample code to show startActivityForResult
-
-
-.. py:function:: startActivityForResultIntent(intent)
-
- Starts an activity and returns the result
-
- :param Intent intent: Intent in the format as returned from makeIntent
-
- :return: A Map representation of the result Intent
-
-
-::
-
- sample code to show startActivityForResultIntent
-
-.. py:function:: startActivityIntent(intent, wait)
-
- Starts an activity
-
- :param Intent intent: Intent in the format as returned from makeIntent
- :param bool wait(Optional): block until the user exits the started activity
-
-::
-
- sample code to show startActivityIntent
-
-
-.. py:function:: startActivity(action, uri, type, extras, wait, packagename, classname)
-
- Starts an activity
-
- :param str action: action
- :param str uri(Optional): uri
- :param str type(Optional): MIME type/subtype of the URI
- :param object extras(Optional): a Map of extras to add to the Intent
- :param bool wait(Optional): block until the user exits the started activity
- :param str packagename(Optional): name of package. If used, requires classname to be useful
- :param str classname(Optional): name of class. If used, requires packagename to be useful
-
-::
-
- sample code to show startActivityForResultIntent
-
-
-SendBroadcast APIs
--------------------
-.. py:function:: sendBroadcast(action, uri, type, extras, packagename, classname)
-
- Send a broadcast
-
- :param str action: action
- :param str uri(Optional): uri
- :param str type(Optional): MIME type/subtype of the URI
- :param object extras(Optional): a Map of extras to add to the Intent
- :param str packagename(Optional): name of package. If used, requires classname to be useful
- :param str classname(Optional): name of class. If used, requires packagename to be useful
-
-
-::
-
- sample code to show sendBroadcast
-
-.. py:function:: sendBroadcastIntent(intent)
-
- Send a broadcast
-
- :param Intent intent: Intent in the format as returned from makeIntent
-
-::
-
- sample code to show sendBroadcastIntent
-
-
-Vibrate
-----------
-.. py:function:: vibrate(intent)
-
- Vibrates the phone or a specified duration in milliseconds
-
- :param int duration: duration in milliseconds
-
-::
-
- sample code to show vibrate
-
-
-NetworkStatus
----------------
-.. py:function:: getNetworkStatus()
-
- Returns the status of network connection
-
-::
-
- sample code to show getNetworkStatus
-
-PackageVersion APIs
-------------------------------
-.. py:function:: requiredVersion(requiredVersion)
-
- Checks if version of QPython SL4A is greater than or equal to the specified version
-
- :param int requiredVersion: requiredVersion
-
- :return: true or false
-
-
-.. py:function:: getPackageVersionCode(packageName)
-
- Returns package version code
-
- :param str packageName: packageName
-
- :return: Package version code
-
-.. py:function:: getPackageVersion(packageName)
-
- Returns package version name
-
- :param str packageName: packageName
-
- :return: Package version name
-
-
-::
-
- sample code to show getPackageVersionCode & getPackageVersion
-
-
-System APIs
---------------------------------
-.. py:function:: getConstants(classname)
-
- Get list of constants (static final fields) for a class
-
- :param str classname: classname
-
- :return: list
-
-::
-
- sample code to show getConstants
-
-.. py:function:: environment()
-
- A map of various useful environment details
-
- :return: environment map object includes id, display, offset, TZ, SDK, download, appcache, availblocks, blocksize, blockcount, sdcard
-
-::
-
- sample code to show environment
-
-.. py:function:: log(message)
-
- Writes message to logcat
-
- :param str message: message
-
-::
-
- sample code to show log
-
-
-SendEmail
-----------
-.. py:function:: sendEmail(to, subject, body, attachmentUri)
-
- Launches an activity that sends an e-mail message to a given recipient
-
- :param str to: A comma separated list of recipients
- :param str subject: subject
- :param str body: mail body
- :param str attachmentUri(Optional): message
-
-::
-
- sample code to show sendEmail
-
-
-Toast, getInput, getPassword, notify APIs
-------------------------------------------------
-.. py:function:: makeToast(message)
-
- Displays a short-duration Toast notification
-
- :param str message: message
-
-::
-
- sample code to show makeToast
-
-.. py:function:: getInput(title, message)
-
- Queries the user for a text input
-
- :param str title: title of the input box
- :param str message: message to display above the input box
-
-::
-
- sample code to show getInput
-
-.. py:function:: getPassword(title, message)
-
- Queries the user for a password
-
- :param str title: title of the input box
- :param str message: message to display above the input box
-
-::
-
- sample code to show getPassword
-
-.. py:function:: notify(title, message, url)
-
- Displays a notification that will be canceled when the user clicks on it
-
- :param str title: title
- :param str message: message
- :param str url(optional): url
-
-::
- import androidhelper
- droid = androidhelper.Android()
- droid.notify('Hello','QPython','http://qpython.org') # you could set the 3rd parameter None also
-
-
-
-ApplicationManagerFacade
-=========================
-
-Manager APIs
--------------
-
-.. py:function:: getLaunchableApplications()
-
- Returns a list of all launchable application class names
-
- :return: map object
-
-::
-
- sample code to show getLaunchableApplications
-
-
-.. py:function:: launch(classname)
-
- Start activity with the given class name
-
- :param str classname: classname
-
-::
-
- sample code to show launch
-
-.. py:function:: getRunningPackages()
-
- Returns a list of packages running activities or services
-
- :return: List of packages running activities
-
-::
-
- sample code to show getRunningPackages
-
-.. py:function:: forceStopPackage(packageName)
-
- Force stops a package
-
- :param str packageName: packageName
-
-::
-
- sample code to show forceStopPackage
-
-
-CameraFacade
-=========================
-
-.. py:function:: cameraCapturePicture(targetPath)
-
- Take a picture and save it to the specified path
-
- :return: A map of Booleans autoFocus and takePicture where True indicates success
-
-.. py:function:: cameraInteractiveCapturePicture(targetPath)
-
- Starts the image capture application to take a picture and saves it to the specified path
-
-CommonIntentsFacade
-=========================
-
-Barcode
-----------
-.. py:function:: scanBarcode()
-
- Starts the barcode scanner
-
- :return: A Map representation of the result Intent
-
-View APIs
-----------
-.. py:function:: pick(uri)
-
- Display content to be picked by URI (e.g. contacts)
-
- :return: A map of result values
-
-.. py:function:: view(uri, type, extras)
-
- Start activity with view action by URI (i.e. browser, contacts, etc.)
-
-.. py:function:: viewMap(query)
-
- Opens a map search for query (e.g. pizza, 123 My Street)
-
-.. py:function:: viewContacts()
-
- Opens the list of contacts
-
-.. py:function:: viewHtml(path)
-
- Opens the browser to display a local HTML file
-
-.. py:function:: search(query)
-
- Starts a search for the given query
-
-ContactsFacade
-=========================
-
-.. py:function:: pickContact()
-
- Displays a list of contacts to pick from
-
- :return: A map of result values
-
-.. py:function:: pickPhone()
-
- Displays a list of phone numbers to pick from
-
- :return: The selected phone number
-
-.. py:function:: contactsGetAttributes()
-
- Returns a List of all possible attributes for contacts
-
- :return: a List of contacts as Maps
-
-.. py:function:: contactsGetIds()
-
- Returns a List of all contact IDs
-
-.. py:function:: contactsGet(attributes)
-
- Returns a List of all contacts
-
-.. py:function:: contactsGetById(id)
-
- Returns contacts by ID
-
-.. py:function:: contactsGetCount()
-
- Returns the number of contacts
-
-.. py:function:: queryContent(uri, attributes, selection, selectionArgs, order)
-
- Content Resolver Query
-
- :return: result of query as Maps
-
-.. py:function:: queryAttributes(uri)
-
- Content Resolver Query Attributes
-
- :return: a list of available columns for a given content uri
-
-EventFacade
-=========================
-
-.. py:function:: eventClearBuffer()
-
- Clears all events from the event buffer
-
-.. py:function:: eventRegisterForBroadcast(category, enqueue)
-
- Registers a listener for a new broadcast signal
-
-.. py:function:: eventUnregisterForBroadcast(category)
-
- Stop listening for a broadcast signal
-
-.. py:function:: eventGetBrodcastCategories()
-
- Lists all the broadcast signals we are listening for
-
-.. py:function:: eventPoll(number_of_events)
-
- Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer
-
- :return: A List of Maps of event properties
-
-.. py:function:: eventWaitFor(eventName, timeout)
-
- Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer
-
- :return: Map of event properties
-
-.. py:function:: eventWait(timeout)
-
- Blocks until an event occurs. The returned event is removed from the buffer
-
- :return: Map of event properties
-
-.. py:function:: eventPost(name, data, enqueue)
-
- Post an event to the event queue
-
-.. py:function:: rpcPostEvent(name, data)
-
- Post an event to the event queue
-
-.. py:function:: receiveEvent()
-
- Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer
-
- :return: Map of event properties
-
-.. py:function:: waitForEvent(eventName, timeout)
-
- Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer
-
- :return: Map of event properties
-
-.. py:function:: startEventDispatcher(port)
-
- Opens up a socket where you can read for events posted
-
-.. py:function:: stopEventDispatcher()
-
- Stops the event server, you can't read in the port anymore
-
-LocationFacade
-=========================
-
-Providers APIs
------------------
-
-.. py:function:: locationProviders()
-
- Returns availables providers on the phone
-
-.. py:function:: locationProviderEnabled(provider)
-
- Ask if provider is enabled
-
-Location APIs
------------------
-.. py:function:: startLocating(minDistance, minUpdateDistance)
-
- Starts collecting location data
-
-.. py:function:: readLocation()
-
- Returns the current location as indicated by all available providers
-
- :return: A map of location information by provider
-
-.. py:function:: stopLocating()
-
- Stops collecting location data
-
-.. py:function:: getLastKnownLocation()
-
- Returns the last known location of the device
-
- :return: A map of location information by provider
-
-*sample code*
-::
-
- Droid = androidhelper.Android()
- location = Droid.getLastKnownLocation().result
- location = location.get('network', location.get('gps'))
-
-
-GEO
------------
-.. py:function:: geocode(latitude, longitude, maxResults)
-
- Returns a list of addresses for the given latitude and longitude
-
- :return: A list of addresses
-
-PhoneFacade
-=========================
-
-PhoneStat APIs
-----------------
-
-.. py:function:: startTrackingPhoneState()
-
- Starts tracking phone state
-
-.. py:function:: readPhoneState()
-
- Returns the current phone state and incoming number
-
- :return: A Map of "state" and "incomingNumber"
-
-.. py:function:: stopTrackingPhoneState()
-
- Stops tracking phone state
-
-
-Call & Dia APIs
-----------------
-
-.. py:function:: phoneCall(uri)
-
- Calls a contact/phone number by URI
-
-.. py:function:: phoneCallNumber(number)
-
- Calls a phone number
-
-.. py:function:: phoneDial(uri)
-
- Dials a contact/phone number by URI
-
-.. py:function:: phoneDialNumber(number)
-
- Dials a phone number
-
-
-
-Get information APIs
-------------------------
-.. py:function:: getCellLocation()
-
- Returns the current cell location
-
-.. py:function:: getNetworkOperator()
-
- Returns the numeric name (MCC+MNC) of current registered operator
-
-.. py:function:: getNetworkOperatorName()
-
- Returns the alphabetic name of current registered operator
-
-.. py:function:: getNetworkType()
-
- Returns a the radio technology (network type) currently in use on the device
-
-.. py:function:: getPhoneType()
-
- Returns the device phone type
-
-.. py:function:: getSimCountryIso()
-
- Returns the ISO country code equivalent for the SIM provider's country code
-
-.. py:function:: getSimOperator()
-
- Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits
-
-.. py:function:: getSimOperatorName()
-
- Returns the Service Provider Name (SPN)
-
-.. py:function:: getSimSerialNumber()
-
- Returns the serial number of the SIM, if applicable. Return null if it is unavailable
-
-.. py:function:: getSimState()
-
- Returns the state of the device SIM card
-
-.. py:function:: getSubscriberId()
-
- Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable
-
-.. py:function:: getVoiceMailAlphaTag()
-
- Retrieves the alphabetic identifier associated with the voice mail number
-
-.. py:function:: getVoiceMailNumber()
-
- Returns the voice mail number. Return null if it is unavailable
-
-.. py:function:: checkNetworkRoaming()
-
- Returns true if the device is considered roaming on the current network, for GSM purposes
-
-.. py:function:: getDeviceId()
-
- Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available
-
-.. py:function:: getDeviceSoftwareVersion()
-
- Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available
-
-.. py:function:: getLine1Number()
-
- Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable
-
-.. py:function:: getNeighboringCellInfo()
-
- Returns the neighboring cell information of the device
-
-MediaRecorderFacade
-=========================
-
-
-Audio
---------
-
-.. py:function:: recorderStartMicrophone(targetPath)
-
- Records audio from the microphone and saves it to the given location
-
-Video APIs
------------
-
-.. py:function:: recorderStartVideo(targetPath, duration, videoSize)
-
- Records video from the camera and saves it to the given location.
- Duration specifies the maximum duration of the recording session.
- If duration is 0 this method will return and the recording will only be stopped
- when recorderStop is called or when a scripts exits.
- Otherwise it will block for the time period equal to the duration argument.
- videoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.
-
-
-.. py:function:: recorderCaptureVideo(targetPath, duration, recordAudio)
-
- Records video (and optionally audio) from the camera and saves it to the given location.
- Duration specifies the maximum duration of the recording session.
- If duration is not provided this method will return immediately and the recording will only be stopped
- when recorderStop is called or when a scripts exits.
- Otherwise it will block for the time period equal to the duration argument.
-
-.. py:function:: startInteractiveVideoRecording(path)
-
- Starts the video capture application to record a video and saves it to the specified path
-
-
-Stop
---------
-.. py:function:: recorderStop()
-
- Stops a previously started recording
-
-
-SensorManagerFacade
-=========================
-
-Start & Stop
--------------
-.. py:function:: startSensingTimed(sensorNumber, delayTime)
-
- Starts recording sensor data to be available for polling
-
-.. py:function:: startSensingThreshold(ensorNumber, threshold, axis)
-
- Records to the Event Queue sensor data exceeding a chosen threshold
-
-.. py:function:: startSensing(sampleSize)
-
- Starts recording sensor data to be available for polling
-
-.. py:function:: stopSensing()
-
- Stops collecting sensor data
-
-Read data APIs
----------------
-.. py:function:: readSensors()
-
- Returns the most recently recorded sensor data
-
-.. py:function:: sensorsGetAccuracy()
-
- Returns the most recently received accuracy value
-
-.. py:function:: sensorsGetLight()
-
- Returns the most recently received light value
-
-.. py:function:: sensorsReadAccelerometer()
-
- Returns the most recently received accelerometer values
-
- :return: a List of Floats [(acceleration on the) X axis, Y axis, Z axis]
-
-.. py:function:: sensorsReadMagnetometer()
-
- Returns the most recently received magnetic field values
-
- :return: a List of Floats [(magnetic field value for) X axis, Y axis, Z axis]
-
-.. py:function:: sensorsReadOrientation()
-
- Returns the most recently received orientation values
-
- :return: a List of Doubles [azimuth, pitch, roll]
-
-*sample code*
-::
-
- Droid = androidhelper.Android()
- Droid.startSensingTimed(1, 250)
- sensor = Droid.sensorsReadOrientation().result
- Droid.stopSensing()
-
-
-SettingsFacade
-=========================
-
-Screen
-----------
-
-.. py:function:: setScreenTimeout(value)
-
- Sets the screen timeout to this number of seconds
-
- :return: The original screen timeout
-
-.. py:function:: getScreenTimeout()
-
- Gets the screen timeout
-
- :return: the current screen timeout in seconds
-
-AirplanerMode
----------------------
-
-.. py:function:: checkAirplaneMode()
-
- Checks the airplane mode setting
-
- :return: True if airplane mode is enabled
-
-.. py:function:: toggleAirplaneMode(enabled)
-
- Toggles airplane mode on and off
-
- :return: True if airplane mode is enabled
-
-Ringer Silent Mode
----------------------
-
-.. py:function:: checkRingerSilentMode()
-
- Checks the ringer silent mode setting
-
- :return: True if ringer silent mode is enabled
-
-.. py:function:: toggleRingerSilentMode(enabled)
-
- Toggles ringer silent mode on and off
-
- :return: True if ringer silent mode is enabled
-
-Vibrate Mode
----------------------
-
-.. py:function:: toggleVibrateMode(enabled)
-
- Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting
-
- :return: True if vibrate mode is enabled
-
-.. py:function:: getVibrateMode(ringer)
-
- Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting
-
- :return: True if vibrate mode is enabled
-
-Ringer & Media Volume
----------------------
-
-.. py:function:: getMaxRingerVolume()
-
- Returns the maximum ringer volume
-
-.. py:function:: getRingerVolume()
-
- Returns the current ringer volume
-
-.. py:function:: setRingerVolume(volume)
-
- Sets the ringer volume
-
-.. py:function:: getMaxMediaVolume()
-
- Returns the maximum media volume
-
-.. py:function:: getMediaVolume()
-
- Returns the current media volume
-
-.. py:function:: setMediaVolume(volume)
-
- Sets the media volume
-
-Screen Brightness
----------------------
-
-.. py:function:: getScreenBrightness()
-
- Returns the screen backlight brightness
-
- :return: the current screen brightness between 0 and 255
-
-.. py:function:: setScreenBrightness(value)
-
- Sets the the screen backlight brightness
-
- :return: the original screen brightness
-
-.. py:function:: checkScreenOn()
-
- Checks if the screen is on or off (requires API level 7)
-
- :return: True if the screen is currently on
-
-
-SmsFacade
-=========================
-
-.. py:function:: smsSend(destinationAddress, text)
-
- Sends an SMS
-
- :param str destinationAddress: typically a phone number
- :param str text:
-
-.. py:function:: smsGetMessageCount(unreadOnly, folder)
-
- Returns the number of messages
-
- :param bool unreadOnly: typically a phone number
- :param str folder(optional): default "inbox"
-
-.. py:function:: smsGetMessageIds(unreadOnly, folder)
-
- Returns a List of all message IDs
-
- :param bool unreadOnly: typically a phone number
- :param str folder(optional): default "inbox"
-
-.. py:function:: smsGetMessages(unreadOnly, folder, attributes)
-
- Returns a List of all messages
-
- :param bool unreadOnly: typically a phone number
- :param str folder: default "inbox"
- :param list attributes(optional): attributes
-
- :return: a List of messages as Maps
-
-.. py:function:: smsGetMessageById(id, attributes)
-
- Returns message attributes
-
- :param int id: message ID
- :param list attributes(optional): attributes
-
- :return: a List of messages as Maps
-
-.. py:function:: smsGetAttributes()
-
- Returns a List of all possible message attributes
-
-.. py:function:: smsDeleteMessage(id)
-
- Deletes a message
-
- :param int id: message ID
-
- :return: True if the message was deleted
-
-.. py:function:: smsMarkMessageRead(ids, read)
-
- Marks messages as read
-
- :param list ids: List of message IDs to mark as read
- :param bool read: true or false
-
- :return: number of messages marked read
-
-SpeechRecognitionFacade
-=========================
-
-.. py:function:: recognizeSpeech(prompt, language, languageModel)
-
- Recognizes user's speech and returns the most likely result
-
- :param str prompt(optional): text prompt to show to the user when asking them to speak
- :param str language(optional): language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault()
- :param str languageModel(optional): informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent)
-
- :return: An empty string in case the speech cannot be recongnized
-
-
-ToneGeneratorFacade
-=========================
-
-.. py:function:: generateDtmfTones(phoneNumber, toneDuration)
-
- Generate DTMF tones for the given phone number
-
- :param str phoneNumber: phone number
- :param int toneDuration(optional): default 100, duration of each tone in milliseconds
-
-
-WakeLockFacade
-=========================
-
-.. py:function:: wakeLockAcquireFull()
-
- Acquires a full wake lock (CPU on, screen bright, keyboard bright)
-
-.. py:function:: wakeLockAcquirePartial()
-
- Acquires a partial wake lock (CPU on)
-
-.. py:function:: wakeLockAcquireBright()
-
- Acquires a bright wake lock (CPU on, screen bright)
-
-.. py:function:: wakeLockAcquireDim()
-
- Acquires a dim wake lock (CPU on, screen dim)
-
-.. py:function:: wakeLockRelease()
-
- Releases the wake lock
-
-WifiFacade
-=========================
-
-.. py:function:: wifiGetScanResults()
-
- Returns the list of access points found during the most recent Wifi scan
-
-.. py:function:: wifiLockAcquireFull()
-
- Acquires a full Wifi lock
-
-.. py:function:: wifiLockAcquireScanOnly()
-
- Acquires a scan only Wifi lock
-
-.. py:function:: wifiLockRelease()
-
- Releases a previously acquired Wifi lock
-
-.. py:function:: wifiStartScan()
-
- Starts a scan for Wifi access points
-
- :return: True if the scan was initiated successfully
-
-.. py:function:: checkWifiState()
-
- Checks Wifi state
-
- :return: True if Wifi is enabled
-
-.. py:function:: toggleWifiState(enabled)
-
- Toggle Wifi on and off
-
- :param bool enabled(optional): enabled
-
- :return: True if Wifi is enabled
-
-.. py:function:: wifiDisconnect()
-
- Disconnects from the currently active access point
-
- :return: True if the operation succeeded
-
-.. py:function:: wifiGetConnectionInfo()
-
- Returns information about the currently active access point
-
-.. py:function:: wifiReassociate()
-
- Returns information about the currently active access point
-
- :return: True if the operation succeeded
-
-.. py:function:: wifiReconnect()
-
- Reconnects to the currently active access point
-
- :return: True if the operation succeeded
-
-
-BatteryManagerFacade
-=========================
-
-.. py:function:: readBatteryData()
-
- Returns the most recently recorded battery data
-
-.. py:function:: batteryStartMonitoring()
-
- Starts tracking battery state
-
-.. py:function:: batteryStopMonitoring()
-
- Stops tracking battery state
-
-.. py:function:: batteryGetStatus()
-
- Returns the most recently received battery status data:
- 1 - unknown;
- 2 - charging;
- 3 - discharging;
- 4 - not charging;
- 5 - full
-
-.. py:function:: batteryGetHealth()
-
- Returns the most recently received battery health data:
- 1 - unknown;
- 2 - good;
- 3 - overheat;
- 4 - dead;
- 5 - over voltage;
- 6 - unspecified failure
-
-.. py:function:: batteryGetPlugType()
-
- Returns the most recently received plug type data:
- -1 - unknown
- 0 - unplugged
- 1 - power source is an AC charger
- 2 - power source is a USB port
-
-
-.. py:function:: batteryCheckPresent()
-
- Returns the most recently received battery presence data
-
-.. py:function:: batteryGetLevel()
-
- Returns the most recently received battery level (percentage)
-
-.. py:function:: batteryGetVoltage()
-
- Returns the most recently received battery voltage
-
-.. py:function:: batteryGetTemperature()
-
- Returns the most recently received battery temperature
-
-.. py:function:: batteryGetTechnology()
-
- Returns the most recently received battery technology data
-
-
-ActivityResultFacade
-=========================
-
-.. py:function:: setResultBoolean(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-
-.. py:function:: setResultByte(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultShort(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultChar(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-
-.. py:function:: setResultInteger(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultLong(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultFloat(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultDouble(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultString(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultBooleanArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultByteArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultShortArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultCharArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultIntegerArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultLongArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultFloatArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultDoubleArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultStringArray(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-.. py:function:: setResultSerializable(resultCode, resultValue)
-
- Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
- the resulting intent will contain SCRIPT_RESULT extra with the given value
-
- :param int resultCode:
- :param byte resultValue:
-
-
-MediaPlayerFacade
-=========================
-
-Control
------------------
-.. py:function:: mediaPlay(url, tag, play)
-
- Open a media file
-
- :param str url: url of media resource
- :param str tag(optional): string identifying resource (default=default)
- :param bool play(optional): start playing immediately
-
- :return: true if play successful
-
-.. py:function:: mediaPlayPause(tag)
-
- pause playing media file
-
- :param str tag: string identifying resource (default=default)
-
- :return: true if successful
-
-.. py:function:: mediaPlayStart(tag)
-
- start playing media file
-
- :param str tag: string identifying resource (default=default)
-
- :return: true if successful
-
-.. py:function:: mediaPlayClose(tag)
-
- Close media file
-
- :param str tag: string identifying resource (default=default)
-
- :return: true if successful
-
-.. py:function:: mediaIsPlaying(tag)
-
- Checks if media file is playing
-
- :param str tag: string identifying resource (default=default)
-
- :return: true if successful
-
-
-.. py:function:: mediaPlaySetLooping(enabled, tag)
-
- Set Looping
-
- :param bool enabled: default true
- :param str tag: string identifying resource (default=default)
-
- :return: True if successful
-
-.. py:function:: mediaPlaySeek(msec, tag)
-
- Seek To Position
-
- :param int msec: default true
- :param str tag: string identifying resource (default=default)
-
- :return: New Position (in ms)
-
-Get Information
------------------
-.. py:function:: mediaPlayInfo(tag)
-
- Information on current media
-
- :param str tag: string identifying resource (default=default)
-
- :return: Media Information
-
-.. py:function:: mediaPlayList()
-
- Lists currently loaded media
-
- :return: List of Media Tags
-
-
-PreferencesFacade
-=========================
-
-.. py:function:: prefGetValue(key, filename)
-
- Read a value from shared preferences
-
- :param str key: key
- :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences.
-
-
-.. py:function:: prefPutValue(key, value, filename)
-
- Write a value to shared preferences
-
- :param str key: key
- :param str value: value
- :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences.
-
-.. py:function:: prefGetAll(filename)
-
- Get list of Shared Preference Values
-
- :param str filename(optional): Desired preferences file. If not defined, uses the default Shared Preferences.
-
-
-QPyInterfaceFacade
-=========================
-
-.. py:function:: executeQPy(script)
-
- Execute a qpython script by absolute path
-
- :param str script: The absolute path of the qpython script
-
- :return: bool
-
-
-TextToSpeechFacade
-=========================
-
-.. py:function:: ttsSpeak(message)
-
- Speaks the provided message via TTS
-
- :param str message: message
-
-.. py:function:: ttsIsSpeaking()
-
- Returns True if speech is currently in progress
-
-EyesFreeFacade
-=========================
-
-
-
-
-BluetoothFacade
-=========================
-
-.. py:function:: bluetoothActiveConnections()
-
- Returns active Bluetooth connections
-
-
-.. py:function:: bluetoothWriteBinary(base64, connID)
-
- Send bytes over the currently open Bluetooth connection
-
- :param str base64: A base64 encoded String of the bytes to be sent
- :param str connID(optional): Connection id
-
-.. py:function:: bluetoothReadBinary(bufferSize, connID)
-
- Read up to bufferSize bytes and return a chunked, base64 encoded string
-
- :param int bufferSize: default 4096
- :param str connID(optional): Connection id
-
-.. py:function:: bluetoothConnect(uuid, address)
-
- Connect to a device over Bluetooth. Blocks until the connection is established or fails
-
- :param str uuid: The UUID passed here must match the UUID used by the server device
- :param str address(optional): The user will be presented with a list of discovered devices to choose from if an address is not provided
-
- :return: True if the connection was established successfully
-
-.. py:function:: bluetoothAccept(uuid, timeout)
-
- Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails
-
- :param str uuid: The UUID passed here must match the UUID used by the server device
- :param int timeout: How long to wait for a new connection, 0 is wait for ever (default=0)
-
-.. py:function:: bluetoothMakeDiscoverable(duration)
-
- Requests that the device be discoverable for Bluetooth connections
-
- :param int duration: period of time, in seconds, during which the device should be discoverable (default=300)
-
-.. py:function:: bluetoothWrite(ascii, connID)
-
- Sends ASCII characters over the currently open Bluetooth connection
-
- :param str ascii: text
- :param str connID: Connection id
-
-.. py:function:: bluetoothReadReady(connID)
-
- Sends ASCII characters over the currently open Bluetooth connection
-
- :param str ascii: text
- :param str connID: Connection id
-
-.. py:function:: bluetoothRead(bufferSize, connID)
-
- Read up to bufferSize ASCII characters
-
- :param int bufferSize: default=4096
- :param str connID(optional): Connection id
-
-.. py:function:: bluetoothReadLine(connID)
-
- Read the next line
-
- :param str connID(optional): Connection id
-
-.. py:function:: bluetoothGetRemoteDeviceName(address)
-
- Queries a remote device for it's name or null if it can't be resolved
-
- :param str address: Bluetooth Address For Target Device
-
-.. py:function:: bluetoothGetLocalName()
-
- Gets the Bluetooth Visible device name
-
-.. py:function:: bluetoothSetLocalName(name)
-
- Sets the Bluetooth Visible device name, returns True on success
-
- :param str name: New local name
-
-.. py:function:: bluetoothGetScanMode()
-
- Gets the scan mode for the local dongle.
- Return values:
- -1 when Bluetooth is disabled.
- 0 if non discoverable and non connectable.
- 1 connectable non discoverable.
- 3 connectable and discoverable.
-
-.. py:function:: bluetoothGetConnectedDeviceName(connID)
-
- Returns the name of the connected device
-
- :param str connID: Connection id
-
-.. py:function:: checkBluetoothState()
-
- Checks Bluetooth state
-
- :return: True if Bluetooth is enabled
-
-.. py:function:: toggleBluetoothState(enabled, prompt)
-
- Toggle Bluetooth on and off
-
- :param bool enabled:
- :param str prompt: Prompt the user to confirm changing the Bluetooth state, default=true
-
- :return: True if Bluetooth is enabled
-
-.. py:function:: bluetoothStop(connID)
-
- Stops Bluetooth connection
-
- :param str connID: Connection id
-
-.. py:function:: bluetoothGetLocalAddress()
-
- Returns the hardware address of the local Bluetooth adapter
-
-.. py:function:: bluetoothDiscoveryStart()
-
- Start the remote device discovery process
-
- :return: true on success, false on error
-
-.. py:function:: bluetoothDiscoveryCancel()
-
- Cancel the current device discovery process
-
- :return: true on success, false on error
-
-.. py:function:: bluetoothIsDiscovering()
-
- Return true if the local Bluetooth adapter is currently in the device discovery process
-
-
-SignalStrengthFacade
-=========================
-.. py:function:: startTrackingSignalStrengths()
-
- Starts tracking signal strengths
-
-.. py:function:: readSignalStrengths()
-
- Returns the current signal strengths
-
- :return: A map of gsm_signal_strength
-
-.. py:function:: stopTrackingSignalStrengths()
-
- Stops tracking signal strength
-
-
-WebCamFacade
-=========================
-
-.. py:function:: webcamStart(resolutionLevel, jpegQuality, port)
-
- Starts an MJPEG stream and returns a Tuple of address and port for the stream
-
- :param int resolutionLevel: increasing this number provides higher resolution (default=0)
- :param int jpegQuality: a number from 0-10 (default=20)
- :param int port: If port is specified, the webcam service will bind to port, otherwise it will pick any available port (default=0)
-
-.. py:function:: webcamAdjustQuality(resolutionLevel, jpegQuality)
-
- Adjusts the quality of the webcam stream while it is running
-
- :param int resolutionLevel: increasing this number provides higher resolution (default=0)
- :param int jpegQuality: a number from 0-10 (default=20)
-
-.. py:function:: cameraStartPreview(resolutionLevel, jpegQuality, filepath)
-
- Start Preview Mode. Throws 'preview' events
-
- :param int resolutionLevel: increasing this number provides higher resolution (default=0)
- :param int jpegQuality: a number from 0-10 (default=20)
- :param str filepath: Path to store jpeg files
-
- :return: True if successful
-
-.. py:function:: cameraStopPreview()
-
- Stop the preview mode
-
-
-UiFacade
-=========================
-
-Dialog
---------
-.. py:function:: dialogCreateInput(title, message, defaultText, inputType)
-
- Create a text input dialog
-
- :param str title: title of the input box
- :param str message: message to display above the input box
- :param str defaultText(optional): text to insert into the input box
- :param str inputType(optional): type of input data, ie number or text
-
-.. py:function:: dialogCreatePassword(title, message)
-
- Create a password input dialog
-
- :param str title: title of the input box
- :param str message: message to display above the input box
-
-.. py:function:: dialogGetInput(title, message, defaultText)
-
- Create a password input dialog
-
- :param str title: title of the input box
- :param str message: message to display above the input box
- :param str defaultText(optional): text to insert into the input box
-
-.. py:function:: dialogGetPassword(title, message)
-
- Queries the user for a password
-
- :param str title: title of the password box
- :param str message: message to display above the input box
-
-.. py:function:: dialogCreateSeekBar(start, maximum, title)
-
- Create seek bar dialog
-
- :param int start: default=50
- :param int maximum: default=100
- :param int title: title
-
-.. py:function:: dialogCreateTimePicker(hour, minute, is24hour)
-
- Create time picker dialog
-
- :param int hour: default=0
- :param int miute: default=0
- :param bool is24hour: default=false
-
-.. py:function:: dialogCreateDatePicker(year, month, day)
-
- Create date picker dialog
-
- :param int year: default=1970
- :param int month: default=1
- :param int day: default=1
-
-
-NFC
--------------
-**Data structs**
-*QPython NFC json result*
-::
-
- {
- "role": , # could be self/master/slave
- "stat": , # could be ok / fail / cancl
- "message":
- }
-
-**APIs**
-
-.. py:function:: dialogCreateNFCBeamMaster(title, message, inputType)
-
- Create a dialog where you could create a qpython beam master
-
- :param str title: title of the input box
- :param str message: message to display above the input box
- :param str inputType(optional): type of input data, ie number or text
-
-.. py:function:: NFCBeamMessage(content, title, message)
-
- Create a dialog where you could create a qpython beam master
-
- :param str content: message you want to sent
- :param str title: title of the input box
- :param str message: message to display above the input box
- :param str inputType(optional): type of input data, ie number or text
-
-.. py:function:: dialogCreateNFCBeamSlave(title, message)
-
- Create a qpython beam slave
-
- :param str title: title of the input box
- :param str message: message to display above the input box
-
-Progress
---------------
-.. py:function:: dialogCreateSpinnerProgress(message, maximumProgress)
-
- Create a spinner progress dialog
-
- :param str message(optional): message
- :param int maximunProgress(optional): dfault=100
-
-.. py:function:: dialogSetCurrentProgress(current)
-
- Set progress dialog current value
-
- :param int current: current
-
-.. py:function:: dialogSetMaxProgress(max)
-
- Set progress dialog maximum value
-
- :param int max: max
-
-
-.. py:function:: dialogCreateHorizontalProgress(title, message, maximumProgress)
-
- Create a horizontal progress dialog
-
- :param str title(optional): title
- :param str message(optional): message
- :param int maximunProgress(optional): dfault=100
-
-
-Alert
-----------
-.. py:function:: dialogCreateAlert(title, message)
-
- Create alert dialog
-
- :param str title(optional): title
- :param str message(optional): message
- :param int maximunProgress(optional): dfault=100
-
-
-Dialog Control
----------------
-.. py:function:: dialogSetPositiveButtonText(text)
-
- Set alert dialog positive button text
-
- :param str text: text
-
-.. py:function:: dialogSetNegativeButtonText(text)
-
- Set alert dialog negative button text
-
- :param str text: text
-
-.. py:function:: dialogSetNeutralButtonText(text)
-
- Set alert dialog button text
-
- :param str text: text
-
-.. py:function:: dialogSetItems(items)
-
- Set alert dialog list items
-
- :param list items: items
-
-.. py:function:: dialogSetSingleChoiceItems(items, selected)
-
- Set alert dialog list items
-
- :param list items: items
- :param int selected: selected item index (default=0)
-
-.. py:function:: dialogSetMultiChoiceItems(items, selected)
-
- Set dialog multiple choice items and selection
-
- :param list items: items
- :param int selected: selected item index (default=0)
-
-.. py:function:: addContextMenuItem(label, event, eventData)
-
- Adds a new item to context menu
-
- :param str label: label for this menu item
- :param str event: event that will be generated on menu item click
- :param object eventData: event object
-
-.. py:function:: addOptionsMenuItem(label, event, eventData, iconName)
-
- Adds a new item to context menu
-
- :param str label: label for this menu item
- :param str event: event that will be generated on menu item click
- :param object eventData: event object
- :param str iconName: Android system menu icon, see http://developer.android.com/reference/android/R.drawable.html
-
-.. py:function:: dialogGetResponse()
-
- Returns dialog response
-
-.. py:function:: dialogGetSelectedItems()
-
- This method provides list of items user selected
-
-.. py:function:: dialogDismiss()
-
- Dismiss dialog
-
-.. py:function:: dialogShow()
-
- Show dialog
-
-
-Layout
----------
-.. py:function:: fullShow(layout)
-
- Show Full Screen
-
- :param string layout: String containing View layout
-
-.. py:function:: fullDismiss()
-
- Dismiss Full Screen
-
-.. py:function:: fullQuery()
-
- Get Fullscreen Properties
-
-.. py:function:: fullQueryDetail(id)
-
- Get fullscreen properties for a specific widget
-
- :param str id: id of layout widget
-
-.. py:function:: fullSetProperty(id)
-
- Set fullscreen widget property
-
- :param str id: id of layout widget
- :param str property: name of property to set
- :param str value: value to set property to
-
-.. py:function:: fullSetList(id, list)
-
- Attach a list to a fullscreen widget
-
- :param str id: id of layout widget
- :param list list: List to set
-
-.. py:function:: fullKeyOverride(keycodes, enable)
-
- Override default key actions
-
- :param str keycodes: id of layout widget
- :param bool enable: List to set (default=true)
-
-
-
-WebView
------------
-.. py:function:: webViewShow()
-
- Display a WebView with the given URL
-
- :param str url: url
- :param bool wait(optional): block until the user exits the WebView
-
-USB Host Serial Facade
-======================
-
-*QPython 1.3.1+ and QPython3 1.0.3+ contains this feature*
-
-SL4A Facade for USB Serial devices by Android USB Host API.
-
-
-It control the USB-Serial like devices
-from Andoroid which has USB Host Controller .
-
-The sample
-`demonstration is also available at youtube video `_
-
-
-Requirements
--------------
-* Android device which has USB Host controller (and enabled in that firmware).
-* Android 4.0 (API14) or later.
-* USB Serial devices (see [Status](#Status)).
-* USB Serial devices were not handled by Android kernel.
-
- > I heard some android phone handle USB Serial devices
- > make /dev/ttyUSB0 in kernel level.
- > In this case, Android does not be able to handle the device
- > from OS level.
-
- please check Android Applications be able to grab the target USB Devices,
- such as `USB Device Info `_.
-
-Status
----------------
-* probably work with USB CDC, like FTDI, Arduino or else.
-
-* 2012/09/10: work with 78K0F0730 device (new RL78) with Tragi BIOS board.
-
- `M78K0F0730 `_
-
-* 2012/09/24: work with some pl2303 devcies.
-
-Author
--------
-This facade developped by `Kuri65536 `_
-you can see the commit log in it.
-
-
-APIs
---------
-.. py:function:: usbserialGetDeviceList()
-
- Returns USB devices reported by USB Host API.
-
- :return: Returns "Map of id and string information Map
-
-
-.. py:function:: usbserialDisconnect(connID)
-
- Disconnect all USB-device
-
- :param str connID: connection ID
-
-.. py:function:: usbserialActiveConnections()
-
- Returns active USB-device connections.
-
- :return: Returns "Active USB-device connections by Map UUID vs device-name."
-
-
-.. py:function:: usbserialWriteBinary(base64, connID)
-
- Send bytes over the currently open USB Serial connection.
-
- :param str base64:
- :param str connId:
-
-.. py:function:: usbserialReadBinary(bufferSize, connID)
-
- Read up to bufferSize bytes and return a chunked, base64 encoded string
-
- :param int bufferSize:
- :param str connId:
-
-.. py:function:: usbserialConnect(hash, options)
-
- Connect to a device with USB-Host. request the connection and exit
-
- :param str hash:
- :param str options:
-
- :return: Returns messages the request status
-
-.. py:function:: usbserialHostEnable()
-
- Requests that the host be enable for USB Serial connections.
-
- :return: True if the USB Device is accesible
-
-.. py:function:: usbserialWrite(String ascii, String connID)
-
- Sends ASCII characters over the currently open USB Serial connection
-
- :param str ascii:
- :param str connID:
-
-.. py:function:: usbserialReadReady(connID)
-
- :param str connID:
-
- :return: True if the next read is guaranteed not to block
-
-
-.. py:function:: usbserialRead(connID, bufferSize)
-
- Read up to bufferSize ASCII characters.
-
- :param str connID:
- :param int bufferSize:
-
-.. py:function:: usbserialGetDeviceName(connID)
-
- Queries a remote device for it's name or null if it can't be resolved
-
- :param str connID:
diff --git a/docs/_sources/en/guide_contributors.rst.txt b/docs/_sources/en/guide_contributors.rst.txt
deleted file mode 100644
index 2078554..0000000
--- a/docs/_sources/en/guide_contributors.rst.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-Welcome contribute
-===============================
-Thanks for supporting this project, QPython is a greate project, and we hope you join us to help with make it more greater.
-
-Please send email to us(support at qpython.org) to introduce youself briefly, and which part do you want to contribute.
-
-Then we will consider to invite you to join the qpython-collaborator group.
-
-How to help with test
-========================
-
-.. toctree::
- :maxdepth: 2
-
- guide_contributors_test
-
-How to contribute documentation
-================================
-
-How to translate
-================================
-
-
-How to launch a local QPython users community
-================================================================
-
-How to organise a local qpython user sharing event
----------------------------------------------------
-
-How to became the developer member
-====================================
-
-How to develop qpython built-in programs
-----------------------------------------
-
-How to sponsor QPython project
-====================================
-
-
-More detail coming soon...
diff --git a/docs/_sources/en/guide_contributors_test.rst.txt b/docs/_sources/en/guide_contributors_test.rst.txt
deleted file mode 100644
index c4c0093..0000000
--- a/docs/_sources/en/guide_contributors_test.rst.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-QPython is keeping develop!
-If you are interested about what we are doing and want to make some contribution, follow this guide to make this project better!
-
-
-Join the tester community
---------------------------
-We create a G+ community where you could report bugs or offer suggestions -> `QPython tester G+ community(For QPython testers) `_
-
-Join us now!
-
-.. image:: ../_static/1.png
- :scale: 50 %
-
-
-Become a tester
-----------------
-After join the tester community, you could become a tester!
-Click this and become a tester -> `I'm ready for test `_
-
-.. image:: ../_static/2.png
-
-Report or suggest
--------------------
-If you find out any bugs or have any cool idea about QPython, please let us know about it.
-You could write down your suggestion or bug report on the community.
-
-.. image:: ../_static/3.png
-
-
-
-Feedback
----------
-Send your feedback to QPython using the contact information: support@qpython.org
diff --git a/docs/_sources/en/guide_developers.rst.txt b/docs/_sources/en/guide_developers.rst.txt
deleted file mode 100644
index add6f43..0000000
--- a/docs/_sources/en/guide_developers.rst.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-Android
-==============================
-Android part offers the common Python user interaction functions, like console, editor, file browsing, QRCode reader etc.
-
-
-Console
----------
-
-
-Editor
------------
-
-
-File browsing
----------------
-
-
-QRCode reader
-------------------------
-
-
-QSL4A
-==============================
-QSL4A is the folk of SL4A for QPython, which allows users being able to program with Python script for android.
-
-
-QPython Core
-==============================
-Besides Python core, QPython core offer three types programming mode also.
-
-Python 2.x
------------
-
-Python 3.x
------------
-
-Console program
----------------
-
-Kivy program
-------------
-
-WebApp program
---------------
-
-
-
-Pip and libraries
-==============================
-Pip and libraries offer great expansion ability for QPython.
-
-Pip
----------
-
-Libraries
-----------
-
-
-Quick tools
-==============================
-Quick tools offers better guide for using QPython well for different users.
-
-QPython API
-------------
-
-FTP
---------
-
-
-QPY.IO (Enterprise service)
-==============================
-It's a enterprise service which aim at offering quick android development delivery with QPython.
-
-It's QPython's maintainers' main paid service, but not a opensource project.
-
diff --git a/docs/_sources/en/guide_extend.rst.txt b/docs/_sources/en/guide_extend.rst.txt
deleted file mode 100644
index bda077e..0000000
--- a/docs/_sources/en/guide_extend.rst.txt
+++ /dev/null
@@ -1,131 +0,0 @@
-QPython Open API
-=====================================================
-QPython has an open activity which allow you run qpython from outside.
-
-The MPyAPI's definition seems like the following:
-
-::
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-**So, with it's help, you could:**
-
-Share some content to QPython's scripts
----------------------------------------------
-You could choose some content in some app, and share to qpython's script, then you could handle the content with the **sys.argv[2]**
-
-`Watch the demo video on YouTube `_
-
-
-Run QPython's script from your own application
-------------------------------------------------------
-
-You can call QPython to run some script or python code in your application by call this activity, like the following sample:
-
-::
-
- // code sample shows how to call qpython API
- String extPlgPlusName = "org.qpython.qpy"; // QPython package name
- Intent intent = new Intent();
- intent.setClassName(extPlgPlusName, "org.qpython.qpylib.MPyApi");
- intent.setAction(extPlgPlusName + ".action.MPyApi");
-
- Bundle mBundle = new Bundle();
- mBundle.putString("app", "myappid");
- mBundle.putString("act", "onPyApi");
- mBundle.putString("flag", "onQPyExec"); // any String flag you may use in your context
- mBundle.putString("param", ""); // param String param you may use in your context
-
- /*
- * The Python code we will run
- */
- String code = "import androidhelper\n" +
- "droid = androidhelper.Android()\n" +
- "line = droid.dialogGetInput()\n" +
- "s = 'Hello %s' % line.result\n" +
- "droid.makeToast(s)\n"
-
- mBundle.putString("pycode", code);
- intent.putExtras(mBundle);
- startActivityForResult(intent, SCRIPT_EXEC_PY);
- ...
-
-
-
- // And you can handle the qpython callabck result in onActivityResult
- @Override
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
- if (requestCode == SCRIPT_EXEC_PY) {
- if (data!=null) {
- Bundle bundle = data.getExtras();
- String flag = bundle.getString("flag");
- String param = bundle.getString("param");
- String result = bundle.getString("result"); // Result your Pycode generate
- Toast.makeText(this, "onQPyExec: return ("+result+")", Toast.LENGTH_SHORT).show();
- } else {
- Toast.makeText(this, "onQPyExec: data is null", Toast.LENGTH_SHORT).show();
-
- }
- }
- }
-
-
-`Checkout the full project from github `_
-
-And there is `a production application - QPython Plugin for Tasker `_
-
-QPython Online Service
-=====================================================
-
-Now the QPython online service only open for QPython, not QPython3.
-
-
-QPypi
----------------------------------------------------------
-Can I install some packages which required pre-compiled ?
-Sure, you could install some pre-compiled packages from QPypi, you could find it through "Libraries" on dashboard.
-
-
-.. image:: ../_static/guide_extend_pic2.png
-
-If you couldn't found the package here, you could send email to river@qpython.org .
-
-QPY.IO
----------------------------------------------------
-Can I build an independent APK from QPython script?
-
-Sure you can. now the service is **in BETA**, it's a challenging thing. We will publish it as a online service, for we want to let the development process is simple, you don't need to own the development environment set up when you want to build a application.
-
-
-.. image:: ../_static/guide_extend_pic1.png
-
-If you want to try it out or have some business proposal, please contact with us by sending email to river@qpython.org .
diff --git a/docs/_sources/en/guide_helloworld.rst.txt b/docs/_sources/en/guide_helloworld.rst.txt
deleted file mode 100644
index ae6d11f..0000000
--- a/docs/_sources/en/guide_helloworld.rst.txt
+++ /dev/null
@@ -1,121 +0,0 @@
-Writing "Hello World"
-========================
-
-
-Hello world
-----------------
-.. image:: ../_static/guide_helloworld_pic1.png
- :alt: hello world
-
-Well, after you became a bit more familiar with QPython, let's create our first program in QPython. Obviously, it will be `helloworld.py`. ;)
-
-Start QPython, open editor and enter the following code:
-
-::
-
- import androidhelper
- droid = androidhelper.Android()
- droid.makeToast('Hello, Username!')
-
-No wonder, it's just similar to any other hello-world program. When executed, it just shows pop-up message on the screen (see screenshot on the top). Anyway, it's a good example of QPython program.
-
-SL4A library
-------------
-
-It begins with *import androidhelper* — the most useful module in QPython, which encapsulates almost all interface with Android, available in Python. Any script developed in QPython starts with this statement (at least if it claims to communicate with user). Read more about Python library `here `_ and import statement `here `_
-
-By the way, if you're going to make your script compatible with SL4A, you should replace the first line with the following code (and use `android` instead `androidhelper` further in the program):
-
-::
-
-> try:
-> import androidhelper as android
-> except ImportError:
-> import android
-
-Ok, next we're creating an object `droid` (actually a class), it is necessary to call RPC functions in order to communicate with Android.
-
-And the last line of our code calls such function, `droid.makeToast()`, which shows a small pop-up message (a "toast") on the screen.
-
-Well, let's add some more functionality. Let it ask the user name and greet them.
-
-More samples
----------------
-We can display a simple dialog box with the title, prompt, edit field and buttons **Ok** and **Cancel** using `dialogGetInput` call. Replace the last line of your code and save it as `hello1.py`:
-
-::
-
- import androidhelper
- droid = androidhelper.Android()
- respond = droid.dialogGetInput("Hello", "What is your name?")
-
-Well, I think it should return any respond, any user reaction. That's why I wrote `respond = ...`. But what the call actually returns? Let's check. Just add `print` statement after the last line:
-
-::
-
- import androidhelper
- droid = androidhelper.Android()
- respond = droid.dialogGetInput("Hello", "What is your name?")
- print respond
-
-Then save and run it...
-
-Oops! Nothing printed? Don't worry. Just pull notification bar and you will see "QPython Program Output: hello1.py" — tap it!
-
-
-As you can see, `droid.dialogGetInput()` returns a JSON object with three fields. We need only one — `result` which contains an actual input from user.
-
-Let's add script's reaction:
-
-::
-
- import androidhelper
- droid = androidhelper.Android()
- respond = droid.dialogGetInput("Hello", "What is your name?")
- print respond
- message = 'Hello, %s!' % respond.result
- droid.makeToast(message)
-
-Last two lines (1) format the message and (2) show the message to the user in the toast. See `Python docs `_ if you still don't know what `%` means.
-
-Wow! It works! ;)
-
-Now I'm going to add a bit of logic there. Think: what happen if the user clicks **Cancel** button, or clicks **Ok** leaving the input field blank?
-
-You can play with the program checking what contains `respond` variable in every case.
-
-First of all, I want to put text entered by user to a separate variable: `name = respond.result`. Then I'm going to check it, and if it contains any real text, it will be considered as a name and will be used in greeting. Otherwise another message will be shown. Replace fifth line `message = 'Hello, %s!' % respond.result` with the following code:
-
-::
-
- name = respond.result
- if name:
- message = 'Hello, %s!' % name
- else:
- message = "Hey! And you're not very polite, %Username%!"
-
-Use **<** and **>** buttons on the toolbar to indent/unindent lines in if-statement (or just use space/backspace keys). You can read more about indentation in Python `here `_; if-statement described `here `_.
-
-First of all, we put user input to the variable `name`. Then we check does `name` contain anything? In case the user left the line blank and clicked **Ok**, the return value is empty string `''`. In case of **Cancel** button pressed, the return value is `None`. Both are treated as false in if-statement. So, only if `name` contans anything meaninful, then-statement is executed and greeting "Hello, ...!" shown. In case of empty input the user will see "Hey! And you're not very polite, %Username%!" message.
-
-Ok, here is the whole program:
-
-::
-
- import androidhelper
- droid = androidhelper.Android()
- respond = droid.dialogGetInput("Hello", "What is your name?")
- print respond
- name = respond.result
- if name:
- message = 'Hello, %s!' % name
- else:
- message = "Hey! And you're not very polite, %Username%!"
- droid.makeToast(message)
-
-
-`Thanks dmych offer the first draft in his blog `_
-
-
-
-
diff --git a/docs/_sources/en/guide_howtostart.rst.txt b/docs/_sources/en/guide_howtostart.rst.txt
deleted file mode 100644
index 8575d63..0000000
--- a/docs/_sources/en/guide_howtostart.rst.txt
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-QPython: How To Start
-========================
-Now, I will introduce the QPython's features through it's interfaces.
-
-1. Dashboard
-------------------
-
-.. image:: ../_static/guide_howtostart_pic1.png
- :alt: QPython start
-
-
-After you installed QPython, start it in the usual way by tapping its icon in the menu. Screenshot on the top of this post shows what you should see when QPython just started.
-
-**Start button**
-
-By tapping the big button with Python logo in the center of the screen you can
-
-**Launch your local script or project**
-
-*Get script from QR code* (funny brand new way to share and distribute your code, you can create QRCode through `QPython's QRCode generator `_
-
-Now you can install many 3rd libaries ( pure python libraries mainly ) through pip_console.py script.
-
-If you want QPython to run some script of project when you click the start button, you can make it by setting default program in setting activity.
-
-
-**Developer kit dashboard**
-
-If you swipe to the left instead of tapping, you will see another (second) main screen of QPython *(Pic. 2)*. As for me, it is much more useful and comfortable for developer.
-
-.. image:: ../_static/guide_howtostart_pic2.png
- :alt: QPython develop dashboard
-
-
-Tools available here:
-
-* **Console** — yes, it's regular Python console, feel free to comunicate with interpreter directly
-* **Editor** — QPython has a nice text editor integrated with the rest, you can write code and run it without leaving the application
-* **My QPython** — here you can find your scripts and projects
-* **System** — maintain libraries and components: install and uninstall them
-* **Package Index** opens the page `QPyPI `_ in browser allowing to install packages listed there
-* **Community** leads to `QPython.org `_ page. Feel free to join or ask&answer questions in the QPython community.
-
-By long clicking on the console or editor, you have chance to create the shortcut on desktop which allow you enter console or editor directly.
-
-Next, let's see the console and the editor.
-
-2. Console and editor
--------------------------
-
-.. image:: ../_static/guide_howtostart_pic3.png
- :alt: QPython console
-
-
-As I said before, there is an ordinary Python console. Many people usually use it to explore objects' properties, consult about syntax and test their ideas. You can type your commands directly and Python interpreter will execute them. You can open additional consoles by tapping the plus button (1) and usedrop-down list on the upper left corner to switch between consoles (2). To close the console just tap the close button (3).
-
-.. image:: ../_static/guide_howtostart_pic4.png
- :alt: QPython notification
-
-
-Please note, there will be notification in the notification bar unless you explicitly close the console and you always can reach the open console by tapping the notification.
-
-
-
-.. image:: ../_static/guide_howtostart_pic5.png
- :alt: QPython editor
-
-
-The editor allows you obviously (hello Cap!) enter and modify text. Here you can develop your scripts, save them and execute. The editor supports Python syntax highlighting and shows line numbers (there is no ability to go to the line by number though). *(above picture)*
-
-When typing, you can easily control indentation level (which is critical for Python code) using two buttons on the toolbar (1). Next buttons on the toolbar are **Save** and **Save As** (2), then goes **Run** (3), **Undo**, **Search**, **Recent Files** and **Settings** buttons. Also there are two buttons on the top: **Open** and **New** (5).
-
-When saving, don't forget to add `.py` estension to the file name since the editor don't do it for you.
-
-3. Programs
---------------------
-You can find the scripts or projects in My QPython. My QPython contains the scripts and Projects.
-
-By long clicking on script or project, you have chance to create the shortcut for the script or project. Once you have created the shortcuts on desktop, you can directly run the script or project from desktop.
-
-
-**Scripts**
-Scripts : A single script. The scripts are in the /sdcard/com.hipipal.qpyplus/scripts directory.
-If you want your script could be found in My QPython, please upload it to this directory.
-
-When you click the script, you can choose the following actions:
-
-- Run : Run the script
-- Open : Edit the script with built-in editor
-- Rename : Rename the script
-- Delete : Delete the script
-
-**Projects**
-Projects : A directory which should contain the main.py as the project's default launch script, and you can put other dependency 3rd libraries or resources in the same directory, if you want your project could be found in My QPython, please upload them into this directory.
-
-When you click on the project, you can choose the following actions:
-
-- Run : run the project
-- Open : use it to explore project's resources
-- Rename : Rename the project
-- Delete : Delete the project
-
-4. Libraries
---------------
-
-By installing 3rd libraries, you can extend your qpython's programming ability quickly. There are some ways to install libraries.
-
-**QPypi**
-
-You can install some pre-built libraries from QPypi, like numpy etc.
-
-**Pip console**
-
-You can install most pure python libraries through pip console.
-
-
-Besides the two ways above, you could copy libraries into the /sdcard/qpython/lib/python2.7/site-packages in your device.
-
-
-*Notice:*
-Some libraries mixed with c/c++ files could not be install through pip console for the android lacks the compiler environment, you could ask help from qpython developer team.
-
-
-5. Community
---------------
-It will redirect to the QPython.org, including somthe source of this documentation, and there are some qpython user communities' link, many questions of qpython usage or programming could be asked in the community.
-
-
-
-
-`Thanks dmych offer the first draft in his blog `_
diff --git a/docs/_sources/en/guide_libraries.rst.txt b/docs/_sources/en/guide_libraries.rst.txt
deleted file mode 100644
index e4bb3ef..0000000
--- a/docs/_sources/en/guide_libraries.rst.txt
+++ /dev/null
@@ -1,292 +0,0 @@
-QPython built-in Libraries
-==========================
-QPython is using the Python 2.7.2 and it support most Python stardard libraries. And you could see their documentation through Python documentation.
-
-QPython dynload libraries
---------------------------------------------------------------
-Just like Python, QPython contains python built-in .so libraries.
-
-Usually, you don't need to import them manually, they were used in stardard libraries, and could be imported automatically.
-
-* _codecs_cn.so
-* _codecs_hk.so
-* _codecs_iso2022.so
-* _codecs_jp.so
-* _codecs_kr.so
-* _codecs_tw.so
-* _csv.so
-* _ctypes.so
-* _ctypes_test.so
-* _hashlib.so
-* _heapq.so
-* _hotshot.so
-* _io.so
-* _json.so
-* _lsprof.so
-* _multibytecodec.so
-* _sqlite3.so
-* _ssl.so
-* _testcapi.so
-* audioop.so
-* future_builtins.so
-* grp.so
-* mmap.so
-* resource.so
-* syslog.so
-* termios.so
-* unicodedata.so
-
-QPython stardard libraries
----------------------------
-The following libraries are the stardard QPython libraries which are the same as Python:
-
-- `BaseHTTPServer.py `_
-- `binhex.py `_
-- `fnmatch.py `_
-- mhlib.py
-- quopri.py
-- sysconfig.py
-- Bastion.py
-- bisect.py
-- formatter.py
-- mimetools.py
-- random.py
-- tabnanny.py
-- CGIHTTPServer.py
-- bsddb
-- fpformat.py
-- mimetypes.py
-- re.py
-- tarfile.py
-- ConfigParser.py
-- cProfile.py
-- fractions.py
-- mimify.py
-- repr.py
-- telnetlib.py
-- Cookie.py
-- calendar.py
-- ftplib.py
-- modulefinder.py
-- rexec.py
-- tempfile.py
-- DocXMLRPCServer.py
-- cgi.py
-- functools.py
-- multifile.py
-- rfc822.py
-- textwrap.py
-- HTMLParser.py
-- cgitb.py
-- genericpath.py
-- mutex.py
-- rlcompleter.py
-- this.py
-- chunk.py
-- getopt.py
-- netrc.py
-- robotparser.py
-- threading.py
-- MimeWriter.py
-- cmd.py
-- getpass.py
-- new.py
-- runpy.py
-- timeit.py
-- Queue.py
-- code.py
-- gettext.py
-- nntplib.py
-- sched.py
-- toaiff.py
-- SimpleHTTPServer.py
-- codecs.py
-- glob.py
-- ntpath.py
-- sets.py
-- token.py
-- SimpleXMLRPCServer.py
-- codeop.py
-- gzip.py
-- nturl2path.py
-- sgmllib.py
-- tokenize.py
-- SocketServer.py
-- collections.py
-- hashlib.py
-- numbers.py
-- sha.py
-- trace.py
-- StringIO.py
-- colorsys.py
-- heapq.py
-- opcode.py
-- shelve.py
-- traceback.py
-- UserDict.py
-- commands.py
-- hmac.py
-- optparse.py
-- shlex.py
-- tty.py
-- UserList.py
-- compileall.py
-- hotshot
-- os.py
-- shutil.py
-- types.py
-- UserString.py
-- compiler
-- htmlentitydefs.py
-- os2emxpath.py
-- site.py
-- unittest
-- _LWPCookieJar.py
-- config
-- htmllib.py
-- smtpd.py
-- urllib.py
-- _MozillaCookieJar.py
-- contextlib.py
-- httplib.py
-- pdb.py
-- smtplib.py
-- urllib2.py
-- __future__.py
-- cookielib.py
-- ihooks.py
-- pickle.py
-- sndhdr.py
-- urlparse.py
-- __phello__.foo.py
-- copy.py
-- imaplib.py
-- pickletools.py
-- socket.py
-- user.py
-- _abcoll.py
-- copy_reg.py
-- imghdr.py
-- pipes.py
-- sqlite3
-- uu.py
-- _pyio.py
-- csv.py
-- importlib
-- pkgutil.py
-- sre.py
-- uuid.py
-- _strptime.py
-- ctypes
-- imputil.py
-- plat-linux4
-- sre_compile.py
-- warnings.py
-- _threading_local.py
-- dbhash.py
-- inspect.py
-- platform.py
-- sre_constants.py
-- wave.py
-- _weakrefset.py
-- decimal.py
-- io.py
-- plistlib.py
-- sre_parse.py
-- weakref.py
-- abc.py
-- difflib.py
-- json
-- popen2.py
-- ssl.py
-- webbrowser.py
-- aifc.py
-- dircache.py
-- keyword.py
-- poplib.py
-- stat.py
-- whichdb.py
-- antigravity.py
-- dis.py
-- lib-tk
-- posixfile.py
-- statvfs.py
-- wsgiref
-- anydbm.py
-- distutils
-- linecache.py
-- posixpath.py
-- string.py
-- argparse.py
-- doctest.py
-- locale.py
-- pprint.py
-- stringold.py
-- xdrlib.py
-- ast.py
-- dumbdbm.py
-- logging
-- profile.py
-- stringprep.py
-- xml
-- asynchat.py
-- dummy_thread.py
-- macpath.py
-- pstats.py
-- struct.py
-- xmllib.py
-- asyncore.py
-- dummy_threading.py
-- macurl2path.py
-- pty.py
-- subprocess.py
-- xmlrpclib.py
-- atexit.py
-- email
-- mailbox.py
-- py_compile.py
-- sunau.py
-- zipfile.py
-- audiodev.py
-- encodings
-- mailcap.py
-- pyclbr.py
-- sunaudio.py
-- base64.py
-- filecmp.py
-- markupbase.py
-- pydoc.py
-- symbol.py
-- bdb.py
-- fileinput.py
-- md5.py
-- pydoc_data
-- symtable.py
-
-
-
-Python 3rd Libraries
-==========================
-
-- `BeautifulSoup.py(3) `_
-- pkg_resources.py
-- androidhelper
-- plyer
-- `bottle.py `_
-- qpy.py
-- qpythoninit.py
-- setuptools
-- `pip `_
-
-
-Androidhelper APIs
-========================
-To simplify QPython SL4A development in IDEs with a
-"hepler" class derived from the default Android class containing
-SL4A facade functions & API documentation
-
-
-.. toctree::
- :maxdepth: 2
-
- guide_androidhelpers
diff --git a/docs/_sources/en/guide_program.rst.txt b/docs/_sources/en/guide_program.rst.txt
deleted file mode 100644
index 895615c..0000000
--- a/docs/_sources/en/guide_program.rst.txt
+++ /dev/null
@@ -1,191 +0,0 @@
-QPython's main features
-====================================
-
-**With QPython, you could build android applications with android application and script language now.**
-
-
-Why should I choose QPython
-------------------------------------------------
-The smartphone is becomming people's essential information & technical assitant, so an flexiable script engine could help people complete most jobs efficiently without complex development.
-
-QPython offer **an amazing developing experience**, with it's help, you could implement the program easily without complex installing IDE, compiling, package progress etc.
-
-QPython's main features
--------------------------
-You can do most jobs through QPython just like the way that Python does on PC/Laptop.
-
-
-**Libraries**
-
-- QPython supports most stardard Python libraries.
-
-- QPython supports many 3rd Python libraries which implemented with pure Python code.
-
-- QPython supports some Python libraries mixed with C/C++ code which pre-compiled by QPython develop team.
-
-- QPython allows you put on the libraries by yourself.
-
-Besides these, QPython offers some extra features which Python doesn't offer, Like:
-
-- Android APIs Access(Like SMS, GPS, NFC, BLUETOOTH etc)
-
-*Why QPython require so many permissions?*
-
-QPython need these permissions to access Android's API.
-
-
-**Runtime modes**
-
-QPython supports several runtime modes for android.
-
-**Console mode**
-
-It's the default runtime mode in QPython, it's very common in PC/laptop.
-
-
-**Kivy mode**
-
-QPython supports `Kivy `_ as the GUI programming solution.
-
-
-Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.
-
-Your device should support opengl2.0 for supporting kivy mode.
-
-By insert into the following header in your script, you can let your script run with kivy mode.
-
-::
-
- #qpy:kivy
-
-
-*An kivy program in QPython sample*
-
-::
-
- #qpy:kivy
- from kivy.app import App
- from kivy.uix.button import Button
-
- class TestApp(App):
- def build(self):
- return Button(text='Hello World')
-
- TestApp().run()
-
-
-If your library require the opengl driver, you shoule declare the kivy mode header in your script, like the jnius.
-
-*NOTE: QPython3 didn't support kivy mode yet, we have plan to support it in the future*
-
-**WebApp mode**
-
-We recommend you implement WebApp with QPython for it offer the easy to accomplish UI and Take advantage of Python's fast programming strong point.
-
-WebApp will start a webview in front, and run a python web service background.
-You could use *bottle*(QPython built-in library) to implement the web service, or you could install *django* / *flask* framework also.
-
-
-By insert into the following header in your script, you can let your script run with webapp mode.
-
-::
-
- #qpy:webapp:
- #qpy:
- #qpy://
-
-For example
-
-::
-
- #qpy:webapp:Hello QPython
- #qpy://localhost:8080/hello
-
-
-The previous should start a webview which should load the *http://localhost:8080/hello* as the default page, and the webview will keep the titlebar which title is "Hello QPython", if you add the *#qpy:fullscreen* it will hide the titlebar.
-
-
-::
-
- #qpy:webapp:Hello Qpython
- #qpy://127.0.0.1:8080/
- """
- This is a sample for qpython webapp
- """
-
- from bottle import Bottle, ServerAdapter
- from bottle import run, debug, route, error, static_file, template
-
-
- ######### QPYTHON WEB SERVER ###############
-
- class MyWSGIRefServer(ServerAdapter):
- server = None
-
- def run(self, handler):
- from wsgiref.simple_server import make_server, WSGIRequestHandler
- if self.quiet:
- class QuietHandler(WSGIRequestHandler):
- def log_request(*args, **kw): pass
- self.options['handler_class'] = QuietHandler
- self.server = make_server(self.host, self.port, handler, **self.options)
- self.server.serve_forever()
-
- def stop(self):
- #sys.stderr.close()
- import threading
- threading.Thread(target=self.server.shutdown).start()
- #self.server.shutdown()
- self.server.server_close() #<--- alternative but causes bad fd exception
- print "# qpyhttpd stop"
-
-
- ######### BUILT-IN ROUTERS ###############
- @route('/__exit', method=['GET','HEAD'])
- def __exit():
- global server
- server.stop()
-
- @route('/assets/')
- def server_static(filepath):
- return static_file(filepath, root='/sdcard')
-
-
- ######### WEBAPP ROUTERS ###############
- @route('/')
- def home():
- return template('
Hello {{name}} !
'+ \
- 'View source',name='QPython')
-
-
- ######### WEBAPP ROUTERS ###############
- app = Bottle()
- app.route('/', method='GET')(home)
- app.route('/__exit', method=['GET','HEAD'])(__exit)
- app.route('/assets/', method='GET')(server_static)
-
- try:
- server = MyWSGIRefServer(host="127.0.0.1", port="8080")
- app.run(server=server,reloader=False)
- except Exception,ex:
- print "Exception: %s" % repr(ex)
-
-
-If you want the webapp could be close when you exit the webview, you have to define the *@route('/__exit', method=['GET','HEAD'])* method , for the qpython will request the *http://localhost:8080/__exit* when you exit the webview. So you can release other resource in this function.
-
-.. image:: ../_static/guide_program_pic1.png
- :alt: QPython WebApp Sample
-
-*Running screenshot*
-
-
-In the other part of the code, you could implement a webserver whish serve on localhost:8080 and make the URL /hello implement as your webapp's homepage.
-
-
-**Q mode**
-
-If you don't want the QPython display some UI, pelase try to use the QScript mode, it could run a script background, just insert the following header into your script:
-
-::
-
- #qpy:qpyapp
diff --git a/docs/_sources/en/qpypi.rst.txt b/docs/_sources/en/qpypi.rst.txt
deleted file mode 100644
index da142e5..0000000
--- a/docs/_sources/en/qpypi.rst.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-QPYPI
-======
-You can extend your QPython capabilities by installing packages.
-Because of different computer architectures, we cannot guarantee that QPYPI includes all packages in PYPI.
-If you want us to support a package that is not currently supported, you can raise an issue in the QPYPI project
-
-
-QPySLA Package
---------------
-
-qsl4ahelper
->>>>>>>>>>>>>>>
-It extends qpysl4a's APIs. Now the below project depends on it.
-https://github.com/qpython-android/qpy-calcount
-
-
-AIPY Packages
-----------------
-
-AIPY is a high-level AI learning app, based on related libraries like Numpy, Scipy, theano, keras, etc.... It was developed with a focus on helping you learn and practise AI programming well and fast.
-
-Numpy
->>>>>>>
-NumPy is the fundamental package needed for scientific computing with Python. This package contains:
-
-::
-
- a powerful N-dimensional array object
- sophisticated (broadcasting) functions
- basic linear algebra functions
- basic Fourier transforms
- sophisticated random number capabilities
- tools for integrating Fortran code
- tools for integrating C/C++ code
-
-
-Scipy
->>>>>>>>
-SciPy refers to several related but distinct entities:
-
-::
-
- The SciPy ecosystem, a collection of open source software for scientific computing in Python.
- The community of people who use and develop this stack.
- Several conferences dedicated to scientific computing in Python - SciPy, EuroSciPy and SciPy.in.
- The SciPy library, one component of the SciPy stack, providing many numerical routines.
-
-Other
-------
diff --git a/docs/_sources/en/qpython3.rst.txt b/docs/_sources/en/qpython3.rst.txt
deleted file mode 100644
index 291d604..0000000
--- a/docs/_sources/en/qpython3.rst.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-# About QPython 3L
-QPython is the Python engine for android. It contains some amazing features such as Python interpreter, runtime environment, editor and QPYI and integrated SL4A. It makes it easy for you to use Python on Android. And it's FREE.
-
-QPython already has millions of users worldwide and it is also an open source project.
-
-For different usage scenarios, QPython has two branches, namely QPython Ox and 3x.
-
-QPython Ox is mainly aimed at programming learners, and it provides more friendly features for beginners. QPython 3x is mainly for experienced Python users, and it provides some advanced technical features.
-
-This is the QPython 3L, it is the only Python interpreter which works under android 4.0 in google play.
-
-# Amazing Features
-- Offline Python 3 interpreter: no Internet is required to run Python programs
-- It supports running multiple types of projects, including: console program, SL4A program, webapp program
-- Convenient QR code reader for transferring codes to your phone
-- QPYPI and a custom repository for prebuilt wheel packages for enhanced scientific libraries, such as numpy, scipy, matplotlib, scikit-learn etc
-- Easy-to-use editor
-- INTEGRATED & EXTENDED SCRIPT LAYER FOR ANDROID LIBRARY (SL4A): IT LETS YOU DRIVE THE ANDROID WORK WITH PYTHON
-- Good documentation and customer support
-
-
-# SL4A Features
-With SL4A features, you can use Python programming to control Android work:
-
-- Android Apps API, such as: Application, Activity, Intent & startActivity, SendBroadcast, PackageVersion, System, Toast, Notify, Settings, Preferences, GUI
-- Android Resources Manager, such as: Contact, Location, Phone, Sms, ToneGenerator, WakeLock, WifiLock, Clipboard, NetworkStatus, MediaPlayer
-- Third App Integrations, such as: Barcode, Browser, SpeechRecongition, SendEmail, TextToSpeech
-- Hardwared Manager: Carmer, Sensor, Ringer & Media Volume, Screen Brightness, Battery, Bluetooth, SignalStrength, WebCam, Vibrate, NFC, USB
-
-[ API Documentation Link ]
-https://github.com/qpython-android/qpysl4a/blob/master/README.md
-
-[ API Samples ]
-https://github.com/qpython-android/qpysl4a/issues/1
-
-[ IMPORTANT NOTE ]
-IT MAY REQUIRE THE BLUETOOTH / LOCATION / READ_SMS / SEND_SMS / CALL_PHONE AND OTHER PERMISSIONS, SO THAT YOU CAN PROGRAM ITH THESE FEATURES. QPYTHON WILL NOT USE THESE PERMISSIONS IN BACKGROUND.
-
-IF YOU GET EXCEPTION IN RUNTIME WHILE USING SL4A API, PLEASE CHECK WHETHER THE RELEVANT PERMISSIONS IN THE SYSTEM SETTINGS ARE ENABLED.
-
-# How To Get Professional Customer Support
-Please follow the guide to get support https://github.com/qpython-android/qpython/blob/master/README.md
-
-[ QPython community ]
-https://www.facebook.com/groups/qpython
-
-[ FAQ ]
-A: Why can't I use the SMS API of SL4A
-Q: Because Google Play and some app stores have strict requirements on the permissions of apps, in QPython 3x, we use x to distinguish branches with different permissions or appstores. For example, L means LIMITED and S means SENSITIVE.
-Sometimes you cannot use the corresponding SL4A APIs because the version you installed does not have the corresponding permissions, so you can consider replace what you have installed with the right one.
-
-You can find other versions here:
-https://www.qpython.org/en/qpython_3x_featues.html
diff --git a/docs/_sources/en/qpython_3x_featues.rst.txt b/docs/_sources/en/qpython_3x_featues.rst.txt
deleted file mode 100644
index 0fc4578..0000000
--- a/docs/_sources/en/qpython_3x_featues.rst.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-QPython 3x featues
-==================
-
-QPython 3x, Previously it was QPython3.
-
-A: Why are there so many branches?
-
-Q: Because Google Play and some appstores have strict requirements for application permissions,
-they require different permissions, we use different branch codes, for example, 3 means it was QPython3,
-L means LIMITED, S means SENSITIVE permission is required.
-
-A: I know there was a QPython before, what is the difference between it and QPython 3x?
-
-Q: It is now called QPython Ox now, which is mainly aimed at programming learners, and
-it provides more friendly features for beginners. QPython 3x is mainly for experienced
-Python users, and it provides some advanced technical features.
-
-
-A: Where can I get different branches or versions ?
-
-Q: Take a look at `this link `_.
-
-WHAT'S NEW
------------
-
-QPython 3x v3.0.0 (Published on 2020/2/1)
->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-
-This is the first version after we restarting the QPython project
-
-- It added the `qsl4ahelper `_ as a built-in package
-- It added a `QPySL4A App project sample `_ into built-in editor, you can create QSLAApp by creating an project
-- It rearranged permissions
-- It fixed `ssl error `_ bugs
-
-App's Features
------------------
-
-- Offline Python 3 interpreter: no Internet is required to run Python programs
-- It supports running multiple types of projects, including: console program, SL4A program, webapp program
-- Convenient QR code reader for transferring codes to your phone
-- QPYPI and a custom repository for prebuilt wheel packages for enhanced scientific libraries, such as numpy, scipy, matplotlib, scikit-learn etc
-- Easy-to-use editor
-- INTEGRATED & EXTENDED SCRIPT LAYER FOR ANDROID LIBRARY (SL4A): IT LETS YOU DRIVE THE ANDROID WORK WITH PYTHON
-- Good documentation and customer support
-
-
-Android Permissions that QPython requires
-------------------------------------------
-
-QPython require the BLUETOOTH / LOCATION / BLUETOOTH and OTHER permissions, so that you can program using these FEATURES. AND WE WILL NOT USE THIS PERMISSIONS IN BACKGROUND.
-
-Both QPython 3S and 3L
->>>>>>>>>>>>>>>>>>>>>>
-
-- android.permission.INTERNET
-- android.permission.WAKE_LOCK
-- android.permission.ACCESS_NETWORK_STATE
-- android.permission.CHANGE_NETWORK_STATE
-- android.permission.ACCESS_WIFI_STATE
-- android.permission.CHANGE_WIFI_STATE
-- android.permission.RECEIVE_BOOT_COMPLETED
-- android.permission.CAMERA
-- android.permission.FLASHLIGHT
-- android.permission.VIBRATE
-- android.permission.RECEIVE_USER_PRESENT
-- com.android.vending.BILLING
-- com.android.launcher.permission.INSTALL_SHORTCUT
-- com.android.launcher.permission.UNINSTALL_SHORTCUT
-- android.permission.READ_EXTERNAL_STORAGE
-- android.permission.WRITE_EXTERNAL_STORAGE
-- android.permission.READ_MEDIA_STORAGE
-- android.permission.ACCESS_COARSE_LOCATION
-- android.permission.ACCESS_FINE_LOCATION
-- android.permission.FOREGROUND_SERVICE
-- android.permission.BLUETOOTH
-- android.permission.BLUETOOTH_ADMIN
-- android.permission.NFC
-- android.permission.RECORD_AUDIO
-- android.permission.ACCESS_NOTIFICATION_POLICY
-- android.permission.KILL_BACKGROUND_PROCESSES
-- net.dinglisch.android.tasker.PERMISSION_RUN_TASKS
-
-QPython 3S
->>>>>>>>>>>
-- android.permission.ACCESS_SUPERUSER
-- android.permission.READ_SMS
-- android.permission.SEND_SMS
-- android.permission.RECEIVE_SMS
-- android.permission.WRITE_SMS
-- android.permission.READ_PHONE_STATE
-- android.permission.CALL_PHONE
-- android.permission.READ_CALL_LOG
-- android.permission.PROCESS_OUTGOING_CALLS
-- android.permission.READ_CONTACTS
-- android.permission.GET_ACCOUNTS
-- android.permission.SYSTEM_ALERT_WINDOW
-
diff --git a/docs/_sources/en/qpython_ox_featues.rst.txt b/docs/_sources/en/qpython_ox_featues.rst.txt
deleted file mode 100644
index f30c15d..0000000
--- a/docs/_sources/en/qpython_ox_featues.rst.txt
+++ /dev/null
@@ -1,62 +0,0 @@
-QPython Ox featues
-======================
-
-Because google play and some appstores have strict requirements on the permissions of the app, we use different strategies in different appstores, which is why the branch name will be different. For example, L means Limited, and S means it contains Sensitive permissions.
-
-Python
----------
-- Python3 + Python2 basis
-- QRCode Reader
-- Editor
-- QPYPI
-- Ftp
-- Course
-
-Permissions
-----------------
-Both QPython OL and OS
->>>>>>>>>>>>>>>>>>>>>>>>>>>
-
-- android.permission.INTERNET
-- android.permission.WAKE_LOCK
-- android.permission.ACCESS_NETWORK_STATE
-- android.permission.CHANGE_NETWORK_STATE
-- android.permission.ACCESS_WIFI_STATE
-- android.permission.CHANGE_WIFI_STATE
-- android.permission.RECEIVE_BOOT_COMPLETED
-- android.permission.CAMERA
-- android.permission.FLASHLIGHT
-- android.permission.VIBRATE
-- android.permission.RECEIVE_USER_PRESENT
-- com.android.vending.BILLING
-- com.android.launcher.permission.INSTALL_SHORTCUT
-- com.android.launcher.permission.UNINSTALL_SHORTCUT
-- android.permission.READ_EXTERNAL_STORAGE
-- android.permission.WRITE_EXTERNAL_STORAGE
-- android.permission.READ_MEDIA_STORAGE
-- android.permission.ACCESS_COARSE_LOCATION
-- android.permission.ACCESS_FINE_LOCATION
-- android.permission.FOREGROUND_SERVICE
-- android.permission.BLUETOOTH
-- android.permission.BLUETOOTH_ADMIN
-- android.permission.NFC
-- android.permission.RECORD_AUDIO
-- android.permission.ACCESS_NOTIFICATION_POLICY
-- android.permission.KILL_BACKGROUND_PROCESSES
-- net.dinglisch.android.tasker.PERMISSION_RUN_TASKS
-
-QPython OS
->>>>>>>>>>>
-- android.permission.ACCESS_SUPERUSER
-- android.permission.SEND_SMS
-- android.permission.READ_SMS
-- android.permission.SEND_SMS
-- android.permission.RECEIVE_SMS
-- android.permission.WRITE_SMS
-- android.permission.READ_PHONE_STATE
-- android.permission.CALL_PHONE
-- android.permission.READ_CALL_LOG
-- android.permission.PROCESS_OUTGOING_CALLS
-- android.permission.READ_CONTACTS
-- android.permission.GET_ACCOUNTS
-- android.permission.SYSTEM_ALERT_WINDOW
diff --git a/docs/_sources/features/2018-09-28-dropbear-cn.rst.txt b/docs/_sources/features/2018-09-28-dropbear-cn.rst.txt
deleted file mode 100644
index 11491c4..0000000
--- a/docs/_sources/features/2018-09-28-dropbear-cn.rst.txt
+++ /dev/null
@@ -1,79 +0,0 @@
-如何在QPython 使用 SSH
-========================
-
-近来悄悄更新了不少好玩的包,但是我最喜欢的是今天介绍的这个特性,刚被集成到QPython中的dropbear SSH工具。
-
-Dropbear SSH 是很多嵌入式linux系统首选的ssh工具,结合qpython,能让你方便地进行编程来自动管理服务器或你的手机。
-
-如何远程登录 你的服务器?
-----------------------------
-
-.. image:: https://mmbiz.qpic.cn/mmbiz_jpg/tuObYW62d0iaJIF2ibzmISF2PBd92KzAPnZfLlIbyOglK3NOvD508VccuQafhhic036KuxGeiasAQDqb2YMDmHWo2w/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
- :alt: 1 Dashboard 长按Terminal, 选择Shell Terminal
-
-*1 Dashboard 长按Terminal, 选择Shell Terminal*
-
-.. image:: https://mmbiz.qpic.cn/mmbiz_jpg/tuObYW62d0iaJIF2ibzmISF2PBd92KzAPncIibPKFhA6RtwC5tQyia66nDWcnccv8aSrZJDNKzBiaduvy23rib1oLv5A/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
- :alt: 2 Shell中输入ssh @
-
-*2 Shell中输入ssh @*
-
-.. image:: https://mmbiz.qpic.cn/mmbiz_jpg/tuObYW62d0iaJIF2ibzmISF2PBd92KzAPnEpC5zNbJJejeGCvnNgEIHDKLX9S72GjVybShlqvtzvPATsh4Fg13Kw/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
- :alt: 3 已经登录到了远端服务器
-
-*3 已经登录到了远端服务器*
-
-
-除了从手机上登录服务器外,你还可以登录到你的手机。
-
-如何登录到你的手机?
------------------------
-
-这个功能适合高级玩家,因为一些权限的问题,在手机上开sshd服务需要root权限。
-第一次使用,需要从shell terminal中进行下初始化操作
-
-```
-su - #切换为root用户,
-
-mkdir dropbear # 在 /data/data/org.qpython.qpy/files下创建dropbear目录
-
-初始化对应的key
-
-dbkey -t dss -f dropbear/dropbear_dss_host_key
-
-dbkey -t rsa -f dropbear/dropbear_rsa_host_key
-
-dbkey -t ecdsa -f dropbear/dropbear_ecdsa_host_key
-
-```
-
-完成上述步骤之后,即可启动sshd服务。
-
-.. image:: https://mmbiz.qpic.cn/mmbiz_jpg/tuObYW62d0iaJIF2ibzmISF2PBd92KzAPnLL1eeZvpzyJXLfBLJT1hmbQEKs1QDodeugXPh8vOvJ77HNvHyT6sDg/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
- :alt: 启动sshd服务:sshd -p 8088 -P dropbear/db.pid -F # 前台启动,端口 8088
-
-*启动sshd服务:sshd -p 8088 -P dropbear/db.pid -F # 前台启动,端口 8088*
-
-接下来从你的电脑中就可以登录了你的手机了默认密码就是我们的app名字,你懂得。
-
-.. image:: https://mmbiz.qpic.cn/mmbiz_png/tuObYW62d0iaJIF2ibzmISF2PBd92KzAPn4FOhNFPVKEpZE8mCibia8Cgf4sUK41cldnFWYpqtaY62LfX6MiabwYquQ/640?wx_fmt=png&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1
- :alt: 从你的笔记本登录手机
-
-*从你的笔记本登录手机*
-
-**另外还支持下面高级特性:**
-
-- ssh 支持证书登录,借助dbconvert,可以把你的openssh证书转换过来,存到对应的目录,用 ssh -i 指定证书即可
-- sshd 支持 authorized_keys, 只需要把该文件保存到你的dropbear目录下,即可
-- scp,远程拷贝文件
-
-后续计划移植更多有用的工具
-
-其他
-------
-
-不想玩了记得kill掉sshd进程,之前需要指定pid文件就是方便你获得 pid
-
-kill `cat dropbear/db.pid`
-
-`获得QPython App `_
diff --git a/docs/_sources/zh/contributorshowto.rst.txt b/docs/_sources/zh/contributorshowto.rst.txt
deleted file mode 100644
index da17ec1..0000000
--- a/docs/_sources/zh/contributorshowto.rst.txt
+++ /dev/null
@@ -1,36 +0,0 @@
-
-QPython文档体系说明
----------------------
-
-QPython 文档体系分为 英文/中文 两部分,我们努力保持两种语言对应内容的准确和同步,其中内容其中又分为
-
-* 快速开始 (使用上的帮助)
-
-* 编程指南 (主要是用QPython来进行编程和开发的指南)
-
-* QPython黑客指南 (深入折腾的指导)
-
-* 贡献者指南 (QPython贡献者指南,分为在QPython team内的,和以外的)
-
-
-如何提交文档
--------------------------------
-文档非常重要,我们用sphinx来组织文档,并且文档会通过github page功能直接推到qpython.org网站中
-在想要贡献QPython文档之前仔细阅读我们的指南
-
-* git clone http://github.com/qpython-android/qpython
-
-* 进入到 项目的qpython-docs目录中
-
-* 按照sphinx规则编辑source中的文件即可
-
-* 最后cd到qpython-docs中并运行build.sh
-
-* 打开浏览器打开本地文件检查,
-
-* 如果检查无问题则可以提交,然后浏览qpython.org即可看到最新的更新
-
-
-如何提交翻译
--------------------------------
-QPython是一个支持多语言的应用,你可以通过以下方式来提交对应国家的翻译
diff --git a/docs/_sources/zh/howtostart.rst.txt b/docs/_sources/zh/howtostart.rst.txt
deleted file mode 100644
index 8a1ed07..0000000
--- a/docs/_sources/zh/howtostart.rst.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-快速开始
-=========
-
-* `QPython - 使用说明 `_
-* `QPython - 快速开始 `_
-* `“你好,世界!” `_
-
-编程指南
-============
-
-* `QPython - 开发 WEB APP `_
-* `QPython - Bottle 快速了解 `_
-
-QPython黑客指南
-=================
-
-* `QPython - 编程向导 `_
-* `QPython 黑客 `_
-
-贡献者指南
-=================
-欢迎加入 QPython 团队
-
-.. toctree::
- :maxdepth: 2
-
- contributorshowto
-
diff --git a/docs/_sources/zhindex.rst.txt b/docs/_sources/zhindex.rst.txt
deleted file mode 100644
index 6006633..0000000
--- a/docs/_sources/zhindex.rst.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-中文用户向导
-=============================================
-
-欢迎 !
-------------------------------
-QPython/QPython3 的最新版本1.3.2(QPython), 1.0.2(QPython3) 已经发布,它包含了许多惊艳的特性,请从应用市场安装
-
-
-QPython 起步
-------------------------
-.. toctree::
- :maxdepth: 2
-
- zh/howtostart
-
-
-更多链接
-------------------------------
-* `常见问题 `_
-* `在百度贴吧里讨论 `_
-* `在微博问我们问题 `_
-* `给我们发邮件 `_
-* `报告问题 `_
-
-QPython 用户开发组
-------------------------------
-* 请加入 `QPython 用户开发者组 `_ 来和全世界的 QPython 用户一块来玩转QPython。
-* 加入QPython QQ组(Q群:540717901)来和中国活跃的QPython 用户一起玩转 QPython
-
-如何贡献
----------
-想成为 QPython 的贡献者么?请 `给我们发邮件 `_
-
diff --git a/docs/agreement-cn.html b/docs/agreement-cn.html
deleted file mode 100644
index dbdf8b4..0000000
--- a/docs/agreement-cn.html
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
- 用户使用协议
-
-
-
-
1.1 In order to use this mobile application software and services, you should read and abide by the "User Agreement" (hereinafter referred to as "this Agreement"). Please be sure to carefully read and fully understand the contents of each clause, especially the clauses exempting or limiting liability, as well as separate agreements for agreeing to or using a certain service, and choose to accept or not accept it.
-
1.2 Unless you have read and accepted all the terms of this agreement, you have no right to download, install or use this software and related services. Your downloading, installation, use, account acquisition, login, etc. are deemed to have read and agreed to be bound by the above agreement.
-
1.3 QPYTHON (hereinafter referred to as "QPYTHON") agrees to provide Internet-based related services (hereinafter referred to as the "Service") in accordance with the provisions of this Agreement and its operating rules published from time to time. If you need to obtain this service, you (hereinafter referred to as "User") should agree to all the terms of this agreement and complete the entire application process according to the prompts on the page.
-
-
-
-
2. Scope of application of the agreement
- This agreement is an agreement between the user and the company regarding the user's downloading, installation, use, copying of this software, and use of the company's related services.
-
- The terms of service published by QPYTHON on the website and the enrollment plans and class agreements for courses attended by users are supplements to this agreement. If there is any conflict between this Agreement and the above content, this Agreement shall prevail. The content of this agreement also includes relevant agreements, business rules, etc. regarding this service that QPYTHON may publish from time to time. Once the above content is officially released, it will become an integral part of this agreement. Users must also abide by it if they continue to use the company's software and services.
-
-
3. Service content and authorized use scope
-
This software provides services based on the actual needs of users, such as programming tools and online QPYPI. QPYTHON reserves the right to change, interrupt or terminate part or all of this service at any time.
-
-
The authorized use scope of this software’s mobile application: Users can install, use, display, and run this software on their mobile phones.
-
-
Reserved rights: All other rights not expressly authorized are owned by our company.
-
-
3. Rules of use
-
Users must follow the following principles when using this software:
- Comply with the relevant laws and regulations of your country;
-
- This service system may not be used for any illegal purpose;
- Comply with all network protocols, regulations and procedures related to the Service;
- This software system may not be used to conduct any behavior that may adversely affect the normal operation of the Internet;
- You may not use this software service system to conduct any behavior that is detrimental to other users;
- If you discover any illegal use of user accounts or account security vulnerabilities, you should immediately notify QPYTHON officials.
-
-
-
4. Intellectual Property
-
The author of this software is Yan Hecun, and QPYTHON’s trademark rights, patent rights, trade secrets and other knowledge The property rights, as well as all information content related to this software (including but not limited to video courseware, text, pictures, audio, charts, interface design, layout framework, relevant data or electronic documents, etc.) belong to Beijing Youqutianxia Information authorized by River. Technology Co., Ltd. and Beijing Youqutianxia Information Technology Co., Ltd. enjoy the above intellectual property rights. Unless legally authorized by the company in advance, no one may use it in any form without authorization. Otherwise, we may immediately terminate the provision of products and services to the user, and Investigate its legal liability in accordance with the law and compensate QPYTHON for all losses.
We appreciate that you build a QPython topic community, you can invite us to join for answering any question about qpython by sending an email to us for telling how to join<support@qpython.org>.
We appreciate that you are willing to help with translate QPython / QPython3.
-
This repo is the localization project, you can post pull request and send en email to us<support@qpython.org>, then we will merge it and publish in next update.
-
If you don’t want to use git, you can just translate the words which do not contains translatable=”false” in the following files.
QPython is a script engine that runs Python on android devices. It lets your android device run Python scripts and projects. It contains the Python interpreter, console, editor, and the SL4A Library for Android. It’s Python on Android!
-
QPython has several millions users in the world already, it’s a great project for programming users, welcome to join us for contributing to this project NOW.
QPython project include the QPython and QPython3 applications.
-
QPython application is using the Python 2.7.2 , and QPython application is using the Python 3.2.2 .
-
QPython’s newest version is 1.3.2 (Released on 2017/5/12) , QPython3’s newest version is 1.0.2 (Released on 2017/3/29), New versions include many amazing features, please upgrade to the newest version as soon from google play, amazon appstore etc.
You need to root the android device first, then soure the env vars (Just like the qpython wiki link you mentioned) and execute the /data/data/org.qpython.qpy/bin/python or /data/data/org.qpython.qpy/bin/python-android5 (for android 5 above)
The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environment or ASE) is a library that allows the creation and running of scripts written in various scripting languages directly on Android devices. QPython start to extend the SL4A project and integrate it.
-
-
There are many SL4A APIs, if you found any issue, please report an issue.
Displays a notification that will be canceled when the user clicks on it
-
-
Parameters:
-
-
title (str) – title
-
message (str) – message
-
url(optional) (str) – url
-
-
-
-
-
-
-
::
import androidhelper
-droid = androidhelper.Android()
-droid.notify(‘Hello’,’QPython’,’http://qpython.org’) # you could set the 3rd parameter None also
Records video from the camera and saves it to the given location.
-Duration specifies the maximum duration of the recording session.
-If duration is 0 this method will return and the recording will only be stopped
-when recorderStop is called or when a scripts exits.
-Otherwise it will block for the time period equal to the duration argument.
-videoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.
Records video (and optionally audio) from the camera and saves it to the given location.
-Duration specifies the maximum duration of the recording session.
-If duration is not provided this method will return immediately and the recording will only be stopped
-when recorderStop is called or when a scripts exits.
-Otherwise it will block for the time period equal to the duration argument.
Recognizes user’s speech and returns the most likely result
-
-
Parameters:
-
-
prompt(optional) (str) – text prompt to show to the user when asking them to speak
-
language(optional) (str) – language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault()
-
languageModel(optional) (str) – informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent)
-
-
-
Returns:
-
An empty string in case the speech cannot be recongnized
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(),
-the resulting intent will contain SCRIPT_RESULT extra with the given value
Gets the scan mode for the local dongle.
-Return values:
--1 when Bluetooth is disabled.
-0 if non discoverable and non connectable.
-1 connectable non discoverable.
-3 connectable and discoverable.
Android device which has USB Host controller (and enabled in that firmware).
-
Android 4.0 (API14) or later.
-
USB Serial devices (see [Status](#Status)).
-
USB Serial devices were not handled by Android kernel.
-
> I heard some android phone handle USB Serial devices
-> make /dev/ttyUSB0 in kernel level.
-> In this case, Android does not be able to handle the device
-> from OS level.
-
please check Android Applications be able to grab the target USB Devices,
-such as USB Device Info.
QPython is keeping develop!
-If you are interested about what we are doing and want to make some contribution, follow this guide to make this project better!
If you find out any bugs or have any cool idea about QPython, please let us know about it.
-You could write down your suggestion or bug report on the community.
Can I install some packages which required pre-compiled ?
-Sure, you could install some pre-compiled packages from QPypi, you could find it through “Libraries” on dashboard.
-
-
If you couldn’t found the package here, you could send email to river@qpython.org .
Can I build an independent APK from QPython script?
-
Sure you can. now the service is in BETA, it’s a challenging thing. We will publish it as a online service, for we want to let the development process is simple, you don’t need to own the development environment set up when you want to build a application.
-
-
If you want to try it out or have some business proposal, please contact with us by sending email to river@qpython.org .
No wonder, it’s just similar to any other hello-world program. When executed, it just shows pop-up message on the screen (see screenshot on the top). Anyway, it’s a good example of QPython program.
It begins with import androidhelper — the most useful module in QPython, which encapsulates almost all interface with Android, available in Python. Any script developed in QPython starts with this statement (at least if it claims to communicate with user). Read more about Python library here and import statement here
-
By the way, if you’re going to make your script compatible with SL4A, you should replace the first line with the following code (and use android instead androidhelper further in the program):
We can display a simple dialog box with the title, prompt, edit field and buttons Ok and Cancel using dialogGetInput call. Replace the last line of your code and save it as hello1.py:
-
importandroidhelper
-droid=androidhelper.Android()
-respond=droid.dialogGetInput("Hello","What is your name?")
-
-
-
Well, I think it should return any respond, any user reaction. That’s why I wrote respond = …. But what the call actually returns? Let’s check. Just add print statement after the last line:
-
importandroidhelper
-droid=androidhelper.Android()
-respond=droid.dialogGetInput("Hello","What is your name?")
-printrespond
-
-
-
Then save and run it…
-
Oops! Nothing printed? Don’t worry. Just pull notification bar and you will see “QPython Program Output: hello1.py” — tap it!
-
As you can see, droid.dialogGetInput() returns a JSON object with three fields. We need only one — result which contains an actual input from user.
-
Let’s add script’s reaction:
-
importandroidhelper
-droid=androidhelper.Android()
-respond=droid.dialogGetInput("Hello","What is your name?")
-printrespond
-message='Hello, %s!'%respond.result
-droid.makeToast(message)
-
-
-
Last two lines (1) format the message and (2) show the message to the user in the toast. See Python docs if you still don’t know what % means.
-
Wow! It works! ;)
-
Now I’m going to add a bit of logic there. Think: what happen if the user clicks Cancel button, or clicks Ok leaving the input field blank?
-
You can play with the program checking what contains respond variable in every case.
-
First of all, I want to put text entered by user to a separate variable: name = respond.result. Then I’m going to check it, and if it contains any real text, it will be considered as a name and will be used in greeting. Otherwise another message will be shown. Replace fifth line message = ‘Hello, %s!’ % respond.result with the following code:
-
name=respond.result
-ifname:
- message='Hello, %s!'%name
-else:
- message="Hey! And you're not very polite, %Username%!"
-
-
-
Use < and > buttons on the toolbar to indent/unindent lines in if-statement (or just use space/backspace keys). You can read more about indentation in Python here; if-statement described here.
-
First of all, we put user input to the variable name. Then we check does name contain anything? In case the user left the line blank and clicked Ok, the return value is empty string ‘’. In case of Cancel button pressed, the return value is None. Both are treated as false in if-statement. So, only if name contans anything meaninful, then-statement is executed and greeting “Hello, …!” shown. In case of empty input the user will see “Hey! And you’re not very polite, %Username%!” message.
-
Ok, here is the whole program:
-
importandroidhelper
-droid=androidhelper.Android()
-respond=droid.dialogGetInput("Hello","What is your name?")
-printrespond
-name=respond.result
-ifname:
- message='Hello, %s!'%name
-else:
- message="Hey! And you're not very polite, %Username%!"
-droid.makeToast(message)
-
After you installed QPython, start it in the usual way by tapping its icon in the menu. Screenshot on the top of this post shows what you should see when QPython just started.
-
Start button
-
By tapping the big button with Python logo in the center of the screen you can
-
Launch your local script or project
-
Get script from QR code (funny brand new way to share and distribute your code, you can create QRCode through QPython’s QRCode generator
-
Now you can install many 3rd libaries ( pure python libraries mainly ) through pip_console.py script.
-
If you want QPython to run some script of project when you click the start button, you can make it by setting default program in setting activity.
-
Developer kit dashboard
-
If you swipe to the left instead of tapping, you will see another (second) main screen of QPython (Pic. 2). As for me, it is much more useful and comfortable for developer.
-
-
Tools available here:
-
-
Console — yes, it’s regular Python console, feel free to comunicate with interpreter directly
-
Editor — QPython has a nice text editor integrated with the rest, you can write code and run it without leaving the application
-
My QPython — here you can find your scripts and projects
-
System — maintain libraries and components: install and uninstall them
-
Package Index opens the page QPyPI in browser allowing to install packages listed there
-
Community leads to QPython.org page. Feel free to join or ask&answer questions in the QPython community.
-
-
By long clicking on the console or editor, you have chance to create the shortcut on desktop which allow you enter console or editor directly.
As I said before, there is an ordinary Python console. Many people usually use it to explore objects’ properties, consult about syntax and test their ideas. You can type your commands directly and Python interpreter will execute them. You can open additional consoles by tapping the plus button (1) and usedrop-down list on the upper left corner to switch between consoles (2). To close the console just tap the close button (3).
-
-
Please note, there will be notification in the notification bar unless you explicitly close the console and you always can reach the open console by tapping the notification.
-
-
The editor allows you obviously (hello Cap!) enter and modify text. Here you can develop your scripts, save them and execute. The editor supports Python syntax highlighting and shows line numbers (there is no ability to go to the line by number though). (above picture)
-
When typing, you can easily control indentation level (which is critical for Python code) using two buttons on the toolbar (1). Next buttons on the toolbar are Save and Save As (2), then goes Run (3), Undo, Search, Recent Files and Settings buttons. Also there are two buttons on the top: Open and New (5).
-
When saving, don’t forget to add .py estension to the file name since the editor don’t do it for you.
You can find the scripts or projects in My QPython. My QPython contains the scripts and Projects.
-
By long clicking on script or project, you have chance to create the shortcut for the script or project. Once you have created the shortcuts on desktop, you can directly run the script or project from desktop.
-
Scripts
-Scripts : A single script. The scripts are in the /sdcard/com.hipipal.qpyplus/scripts directory.
-If you want your script could be found in My QPython, please upload it to this directory.
-
When you click the script, you can choose the following actions:
-
-
Run : Run the script
-
Open : Edit the script with built-in editor
-
Rename : Rename the script
-
Delete : Delete the script
-
-
Projects
-Projects : A directory which should contain the main.py as the project’s default launch script, and you can put other dependency 3rd libraries or resources in the same directory, if you want your project could be found in My QPython, please upload them into this directory.
-
When you click on the project, you can choose the following actions:
By installing 3rd libraries, you can extend your qpython’s programming ability quickly. There are some ways to install libraries.
-
QPypi
-
You can install some pre-built libraries from QPypi, like numpy etc.
-
Pip console
-
You can install most pure python libraries through pip console.
-
Besides the two ways above, you could copy libraries into the /sdcard/qpython/lib/python2.7/site-packages in your device.
-
Notice:
-Some libraries mixed with c/c++ files could not be install through pip console for the android lacks the compiler environment, you could ask help from qpython developer team.
It will redirect to the QPython.org, including somthe source of this documentation, and there are some qpython user communities’ link, many questions of qpython usage or programming could be asked in the community.
QPython has a built-in script which is qedit4web.py, you could see it when you click the start button and choose “Run local script”.
-After run it, you could see the result.
-
-
Then, you could access the url from your PC/Laptop’s browser for developing, just like the below pics.
-
-
After choose some project or script, you could start to develop
-
-
With it’s help, you could write from browser and run from your android phone. It is very convenient.
To simplify QPython SL4A development in IDEs with a
-“hepler” class derived from the default Android class containing
-SL4A facade functions & API documentation
The smartphone is becomming people’s essential information & technical assitant, so an flexiable script engine could help people complete most jobs efficiently without complex development.
-
QPython offer an amazing developing experience, with it’s help, you could implement the program easily without complex installing IDE, compiling, package progress etc.
If your library require the opengl driver, you shoule declare the kivy mode header in your script, like the jnius.
-
NOTE: QPython3 didn’t support kivy mode yet, we have plan to support it in the future
-
WebApp mode
-
We recommend you implement WebApp with QPython for it offer the easy to accomplish UI and Take advantage of Python’s fast programming strong point.
-
WebApp will start a webview in front, and run a python web service background.
-You could use bottle*(QPython built-in library) to implement the web service, or you could install *django / flask framework also.
-
By insert into the following header in your script, you can let your script run with webapp mode.
-
#qpy:webapp:<app title>
-#qpy:<fullscreen or remove this line>
-#qpy://<ip:port:path>
-
The previous should start a webview which should load the http://localhost:8080/hello as the default page, and the webview will keep the titlebar which title is “Hello QPython”, if you add the #qpy:fullscreen it will hide the titlebar.
If you want the webapp could be close when you exit the webview, you have to define the @route(‘/__exit’, method=[‘GET’,’HEAD’]) method , for the qpython will request the http://localhost:8080/__exit when you exit the webview. So you can release other resource in this function.
-
-
Running screenshot
-
In the other part of the code, you could implement a webserver whish serve on localhost:8080 and make the URL /hello implement as your webapp’s homepage.
-
Q mode
-
If you don’t want the QPython display some UI, pelase try to use the QScript mode, it could run a script background, just insert the following header into your script:
You can extend your QPython capabilities by installing packages.
-Because of different computer architectures, we cannot guarantee that QPYPI includes all packages in PYPI.
-If you want us to support a package that is not currently supported, you can raise an issue in the QPYPI project
AIPY is a high-level AI learning app, based on related libraries like Numpy, Scipy, theano, keras, etc…. It was developed with a focus on helping you learn and practise AI programming well and fast.
# About QPython 3L
-QPython is the Python engine for android. It contains some amazing features such as Python interpreter, runtime environment, editor and QPYI and integrated SL4A. It makes it easy for you to use Python on Android. And it’s FREE.
-
QPython already has millions of users worldwide and it is also an open source project.
-
For different usage scenarios, QPython has two branches, namely QPython Ox and 3x.
-
QPython Ox is mainly aimed at programming learners, and it provides more friendly features for beginners. QPython 3x is mainly for experienced Python users, and it provides some advanced technical features.
-
This is the QPython 3L, it is the only Python interpreter which works under android 4.0 in google play.
-
# Amazing Features
-- Offline Python 3 interpreter: no Internet is required to run Python programs
-- It supports running multiple types of projects, including: console program, SL4A program, webapp program
-- Convenient QR code reader for transferring codes to your phone
-- QPYPI and a custom repository for prebuilt wheel packages for enhanced scientific libraries, such as numpy, scipy, matplotlib, scikit-learn etc
-- Easy-to-use editor
-- INTEGRATED & EXTENDED SCRIPT LAYER FOR ANDROID LIBRARY (SL4A): IT LETS YOU DRIVE THE ANDROID WORK WITH PYTHON
-- Good documentation and customer support
-
# SL4A Features
-With SL4A features, you can use Python programming to control Android work:
[ IMPORTANT NOTE ]
-IT MAY REQUIRE THE BLUETOOTH / LOCATION / READ_SMS / SEND_SMS / CALL_PHONE AND OTHER PERMISSIONS, SO THAT YOU CAN PROGRAM ITH THESE FEATURES. QPYTHON WILL NOT USE THESE PERMISSIONS IN BACKGROUND.
-
IF YOU GET EXCEPTION IN RUNTIME WHILE USING SL4A API, PLEASE CHECK WHETHER THE RELEVANT PERMISSIONS IN THE SYSTEM SETTINGS ARE ENABLED.
[ FAQ ]
-A: Why can’t I use the SMS API of SL4A
-Q: Because Google Play and some app stores have strict requirements on the permissions of apps, in QPython 3x, we use x to distinguish branches with different permissions or appstores. For example, L means LIMITED and S means SENSITIVE.
-Sometimes you cannot use the corresponding SL4A APIs because the version you installed does not have the corresponding permissions, so you can consider replace what you have installed with the right one.
Q: Because Google Play and some appstores have strict requirements for application permissions,
-they require different permissions, we use different branch codes, for example, 3 means it was QPython3,
-L means LIMITED, S means SENSITIVE permission is required.
-
A: I know there was a QPython before, what is the difference between it and QPython 3x?
-
Q: It is now called QPython Ox now, which is mainly aimed at programming learners, and
-it provides more friendly features for beginners. QPython 3x is mainly for experienced
-Python users, and it provides some advanced technical features.
-
A: Where can I get different branches or versions ?
QPython require the BLUETOOTH / LOCATION / BLUETOOTH and OTHER permissions, so that you can program using these FEATURES. AND WE WILL NOT USE THIS PERMISSIONS IN BACKGROUND.
Because google play and some appstores have strict requirements on the permissions of the app, we use different strategies in different appstores, which is why the branch name will be different. For example, L means Limited, and S means it contains Sensitive permissions.
- QPython integrates the Python interpreter, AI model engine and mobile development tool chain, supports Web development, scientific computing and intelligent application construction, provides a complete mobile programming solution, and provides developer courses and community resources to help continuous learning.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
What's NEW
-
-## v3.5.2 (2025/2/25)
-Achieve seamless integration with the open source LLM deployment tool Ollama and deepseek developed by DeepSeek! This means:
-✅ Zero threshold to run various large language models locally on mobile devices
-✅ Quickly deploy cutting-edge AI models such as DeepSeek
-✅ Enjoy a minimalist API calling experience
-✅ Build a completely offline intelligent programming environment
-
-With this update, you will be able to experience immediately:
-🔧 Load/manage LLM models directly on the mobile phone
-⚡ Real-time low-latency response based on local computing
-
-
-
We recommend that you download and install the latest version of QPython and its related resources from your mobile app store first. If you cannot get it from the app store, you can also download it from the following network disk.
-
-
-
-
-
-
-
-
-
Community & Feedback
-
Welcome to join the QPython community to learn and discuss with many QPythoneers.
We recommend that you contact us and provide feedback through the QPython community, which is a relatively convenient way. Of course, you can also share your feedback with us through the following channels.
QPython Team built the QPython/QPython3 apps and their related services.
-
This page is used to inform visitors regarding our policies with the collection, use, and
- disclosure of Personal Information if anyone decided to use our App and services.
-
If you choose to use our app and services, then you agree to the collection and use of information in relation
- to this policy. The Personal Information that we collect is used for providing and improving the
- App and service. We will not use or share your information with anyone except as described
- in this Privacy Policy.
-
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible
- at QPython/QPython3 unless otherwise defined in this Privacy Policy.
-
Information Collection and Use
-
For a better experience, while using our Service, we may require you to provide us with certain
- personally identifiable information, including but not limited to IP address. The information that we request will be retained on your device and is not collected by me in any way.
-
-
-
-
The app does use third party services that may collect information used to identify you.
Link to privacy policy of third party service providers used by the app
- The Application collects your device's location, which helps the Service Provider determine your approximate geographical location and make use of in below ways:
-
-Geolocation Services: The Service Provider utilizes location data to provide features such as personalized content, relevant recommendations, and location-based services.
-
Analytics and Improvements: Aggregated and anonymized location data helps the Service Provider to analyze user behavior, identify trends, and improve the overall performance and functionality of the Application.
-
Third-Party Services: Periodically, the Service Provider may transmit anonymized location data to external services. These services assist them in enhancing the Application and optimizing their offerings.
-
-
-
-
-
-
-
-
Log Data
We want to inform you that whenever you use my Service, in a case of an
- error in the app we collect data and information (through third party products) on your phone
- called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address,
- device name, operating system version, the configuration of the app when utilizing my Service,
- the time and date of your use of the Service, and other statistics.
-
-
-
-
-
Permissions
- To enable programming with some of Android’s features, QPython/QPythons requires the following permissions: Bluetooth, GPS, and others, etc.
-It doesn't require some permissions like access user account, access phone's status, meaning you cannot use some SL4A APIs.
- You can disable them from system's setting if you don't need them.
-
-
-
-
Cookies
Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These
- are sent to your browser from the websites that you visit and are stored on your device's internal memory.
-
This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries
- that use “cookies” to collect information and improve their services. You have the option to either
- accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to
- refuse our cookies, you may not be able to use some portions of this Service.
-
Service Providers
We may employ third-party companies and individuals due to the following reasons:
To facilitate our Service;
To provide the Service on our behalf;
To perform Service-related services; or
To assist us in analyzing how our Service is used.
We want to inform users of this Service that these third parties have access to your
- Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they
- are obligated not to disclose or use the information for any other purpose.
-
Security
We value your trust in providing us your Personal Information, thus we are striving
- to use commercially acceptable means of protecting it. But remember that no method of transmission over
- the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee
- its absolute security.
-
Links to Other Sites
This Service may contain links to other sites. If you click on a third-party link, you will be directed
- to that site. Note that these external sites are not operated by me. Therefore, we strongly
- advise you to review the Privacy Policy of these websites. We have no control over
- and assume no responsibility for the content, privacy policies, or practices of any third-party sites
- or services.
-
Children’s Privacy
These Services do not address anyone under the age of 13. We do not knowingly collect
- personally identifiable information from children under 13. In the case we discover that a child
- under 13 has provided me with personal information, we immediately delete this from
- our servers. If you are a parent or guardian and you are aware that your child has provided us with personal
- information, please contact me so that we will be able to do necessary actions.
-
Changes to This Privacy Policy
We may update our Privacy Policy from time to time. Thus, you are advised to review
- this page periodically for any changes. We will notify you of any changes by posting
- the new Privacy Policy on this page. These changes are effective immediately after they are posted on
- this page.
-
Contact Us (support at qpython.org)
If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact
- me.
-
QPython Team built the QLua apps and their related services.
-
This page is used to inform visitors regarding our policies with the collection, use, and
- disclosure of Personal Information if anyone decided to use our App and services.
-
If you choose to use our app and services, then you agree to the collection and use of information in relation
- to this policy. The Personal Information that we collect is used for providing and improving the
- App and service. We will not use or share your information with anyone except as described
- in this Privacy Policy.
-
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible
- at QLua unless otherwise defined in this Privacy Policy.
-
Information Collection and Use
For a better experience, while using our Service, we may require you to provide us with certain
- personally identifiable information, including but not limited to IP address. The information that we request will be retained on your device and is not collected by me in any way.
-
The app does use third party services that may collect information used to identify you.
Link to privacy policy of third party service providers used by the app
We want to inform you that whenever you use my Service, in a case of an
- error in the app we collect data and information (through third party products) on your phone
- called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address,
- device name, operating system version, the configuration of the app when utilizing my Service,
- the time and date of your use of the Service, and other statistics.
-
-
-
-
Permissions
- To enable programming with some of Android’s features, QLua requires the following permissions: Bluetooth, GPS, and others, etc.
-It doesn't require some permissions like access user account, access phone's status, meaning you cannot use some SL4A APIs.
- You can disable them from system's setting if you don't need them.
-
-
-
-
Cookies
Cookies are files with a small amount of data that are commonly used as anonymous unique identifiers. These
- are sent to your browser from the websites that you visit and are stored on your device's internal memory.
-
This Service does not use these “cookies” explicitly. However, the app may use third party code and libraries
- that use “cookies” to collect information and improve their services. You have the option to either
- accept or refuse these cookies and know when a cookie is being sent to your device. If you choose to
- refuse our cookies, you may not be able to use some portions of this Service.
-
Service Providers
We may employ third-party companies and individuals due to the following reasons:
To facilitate our Service;
To provide the Service on our behalf;
To perform Service-related services; or
To assist us in analyzing how our Service is used.
We want to inform users of this Service that these third parties have access to your
- Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they
- are obligated not to disclose or use the information for any other purpose.
-
Security
We value your trust in providing us your Personal Information, thus we are striving
- to use commercially acceptable means of protecting it. But remember that no method of transmission over
- the internet, or method of electronic storage is 100% secure and reliable, and we cannot guarantee
- its absolute security.
-
Links to Other Sites
This Service may contain links to other sites. If you click on a third-party link, you will be directed
- to that site. Note that these external sites are not operated by me. Therefore, we strongly
- advise you to review the Privacy Policy of these websites. We have no control over
- and assume no responsibility for the content, privacy policies, or practices of any third-party sites
- or services.
-
Children’s Privacy
These Services do not address anyone under the age of 13. We do not knowingly collect
- personally identifiable information from children under 13. In the case we discover that a child
- under 13 has provided me with personal information, we immediately delete this from
- our servers. If you are a parent or guardian and you are aware that your child has provided us with personal
- information, please contact me so that we will be able to do necessary actions.
-
Changes to This Privacy Policy
We may update our Privacy Policy from time to time. Thus, you are advised to review
- this page periodically for any changes. We will notify you of any changes by posting
- the new Privacy Policy on this page. These changes are effective immediately after they are posted on
- this page.
-
Contact Us (support at qpython.org)
If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact
- me.
-