安卓 Python 编程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4185061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 14:40:49  来源:igfitidea点击:

Android Python Programming

pythonandroid

提问by user225312

Can I program for Android using Python? I seem to have stumbled upon many links while searching... however neither of them is concrete.

我可以使用 Python 为 Android 编程吗?我似乎在搜索时偶然发现了许多链接……但是它们都不是具体的。

Any suggestions? I want to write apps for Android but really don't want to get into Java for all this.

有什么建议?我想为 Android 编写应用程序,但真的不想为这一切而进入 Java。

PS: My question is whether I can write proper, full fledged apps for Android.

PS:我的问题是我是否可以为 Android 编写适当的、成熟的应用程序。

回答by Klark

Yep, you can. Check ASE

是的,你可以。检查ASE

Edit: Ok, after comments: I haven't read the question properly. No you can't write write proper, full fledged apps for Android, but anyway check ASE. It is really cool project.

编辑:好的,评论后:我没有正确阅读问题。不,您无法为 Android 编写适当的、成熟的应用程序,但无论如何请检查 ASE。这真是一个很酷的项目。

回答by Daniel Roseman

No, not currently. ASE (Android Scripting Environment) allows you to do simple script apps, but you can only write proper Android apps in Java.

不,目前没有。ASE(Android Scripting Environment)允许你做简单的脚本应用程序,但你只能用 Java 编写合适的 Android 应用程序。

回答by Aras

Checkout Kivy. They have done a really great job so far, and I am a big fan of their work. It is still lacking some providers, but they keep adding new stuff to it everyday. First thing you need to do is to check your requirement against what they can offer based on their documentation. They have create an amazing framework for input such as multi-touch or pen handling. They use OpenGL ES internally, as a result complex graphics and visualizations can run very fast when interacting with the the application. Their process for creating an apk is also very straight forward.

结帐基维。到目前为止,他们做得非常出色,我是他们工作的忠实粉丝。它仍然缺乏一些提供者,但他们每天都在不断地添加新的东西。您需要做的第一件事是根据他们的文档可以提供的内容来检查您的要求。他们为输入创建了一个惊人的框架,例如多点触控或笔处理。他们在内部使用 OpenGL ES,因此在与应用程序交互时,复杂的图形和可视化可以非常快地运行。他们创建 apk 的过程也非常简单。

回答by tito

Check the new Python for Androidproject.

检查新的Python for Android项目。

Edit: This is not Kivy, this is a seperate project, intended to be a toolchain usable for other toolkit. The architecture is modular, and you can include new recipe for including new python extensions (as brew, macports, cygwin etc.).

编辑:这不是 Kivy,这是一个单独的项目,旨在成为可用于其他工具包的工具链。该架构是模块化的,您可以包含新的配方以包含新的 Python 扩展(如 brew、macports、cygwin 等)。

Edit: This is not Py4A, but python-for-android.

编辑:这不是 Py4A,而是 python-for-android。