从 android 工作室通过按钮执行 python 脚本

Execute python script by button from android studio

我正在构建一个 IoT 应用程序,当我在 android 工作室中按下按钮时,我想 运行 在后端运行我的 python 脚本。

Note: The python script will just connect to the database and send it to arduino serial monitor.

如有任何想法,我们将不胜感激。谢谢!

尝试 Chaquopy – Python Android 的 SDK https://chaquo.com/chaquopy/