android - 安卓版基维

标签 android python kivy

在系统中使用PyJius编写脚本需要安装哪些包?

无论如何,我可以在 Android 手机上运行这些 python 脚本吗?

什么是 K ivy Launcher for android?它对执行我的脚本有帮助吗?

Kivy 实际上是如何工作的(在我想使用脚本打开蓝牙时详细说明,这是通过这样做调用 K ivy 架构中的东西?)

我需要的是在计算机上编写脚本,然后将这些脚本发送到我的手机后,然后我需要从手机上执行我的脚本。在手机上获取结果并将这些结果发送到系统。

最佳答案

What are the packages which need to be installed for writing scripts using PyJius in system ?

我不确定你在这里的意思。要运行 pyjnius,您只需要...pyjnius。它是一个单独的模块,不是 kivy 本身的一部分,尽管 kivy 在 android 上使用它。当您构建 android apk 时,Kivy 的移动构建工具会自动打包它。

What is K ivy Launcher for android ? Will it be helpful for executing my scripts ?

一个可以从您的用户数据目录动态打开 kivy 应用程序的应用程序。您可以使用它在您的设备上上传和运行 kivy 脚本/应用程序。

它对快速测试最有用,而不是作为分发应用程序的方式。为此,构建您自己的 apk 非常容易,这为您所做的事情和打包的内容提供了更大的灵 active 。

How actually Kivy works ( in detail say in I want to switch on Bluetooth using scripts, which are the things in the K ivy architecture gets invoked by doing so ? )

我不确定你在这里问什么。 Kivy 是 python 的图形框架,使用优化的 opengl 界面...您可以用它编写 python gui 应用程序。

对于 android 上的蓝牙之类的东西,您可以使用 pyjnius(或者更简单的包装项目,例如提供抽象 python api 的 plyer,尽管我认为 plyer 还没有蓝牙)。这通常不是很难,我以前见过蓝牙。

Kivy 本身是一个图形框架,这些其他工具是姊妹项目,但独立于图形。

What i need is to write scripts on computer and then after sending those scripts to my phone, then i need to execute my scripts from phone. Get the results on the phone and send those results to system.

您当然可以使用 kivy 来做到这一点,方法是将脚本放入您运行的应用程序中。网络通信也不难——它独立于 kivy 本身,但您可以访问所有可能使用的普通 python 模块。

关于android - 安卓版基维,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22578624/

相关文章:

android - 如何为导航栏图标设置边距?

Android - ExoPlayer2 字幕

python - 在Python中写入文本文件的特定列

python - pd.read_sql_query 单/双引号格式

python - kivy python按钮行为on_press禁用

python - 从字节变量设置 Kivy 图像

python - Kivy BoxLayout - 将小部件移动到顶部

android - 大疆Spark : missing support for FlightController. setMaxFlightHeight() FlightController.setMaxFlightRadius()

python - df.columns 和 df2.columns 是同一个对象吗?

android - 调试 Android 包管理器 API