创建一个机器人服务在后台使用python运行

编程入门 行业动态 更新时间:2024-10-26 18:26:23
本文介绍了创建一个机器人服务在后台使用python运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道是否有可能在后台运行的机器人服务(和可能在启动),而不生根设备,使用Python和SL4A如果是的话我怎么会去这样做。

I would like to know if it is possible to run an android service in the background (and possibly on boot) without rooting the device, using python and sl4a and if so how would i go about doing that.

推荐答案

有关在后台或启动运行的服务,你必须定义一个广播接收器,这将基本启动该服务。

For running a service in background or on boot you have to define a Broadcast Receiver which will basically start the service.

请参考以下问题的答案提到的code片段。

Please refer code snippets mentioned in the answer of below question.

Android的广播接收器在启动时

我看到有关的pythoncentral蟒蛇开发一些信息,但使用python / SL4A我从来没有开发的服务。

I have seen some information about developing in python on pythoncentral but I have never developed a service using python/sl4a.

更多推荐

创建一个机器人服务在后台使用python运行

本文发布于:2023-11-06 21:49:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564773.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:创建一个   机器人   后台   python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!