使用Python创建Android的后台服务没有GUI [英] Creating android background service NO GUI in python
问题描述
这是基于我的previous问题,一个进一步的问题。 <一href=\"http://stackoverflow.com/questions/25410562/creating-an-android-service-to-run-in-the-background-using-python\">Creating一个机器人的服务,使用python 我已经看过提出的建议,但现在我不知道是否有可能它没有GUI,在Python中创建Android的后台服务,因此它几乎就像一个被动的服务在后台运行。任何帮助将大大AP preciated。
This is a further question based on one of my previous questions. Creating an android service to run in the background using python I have looked at the recommendations made but I now wonder if it is possible to create the background service in python for android with no gui so it is almost like a passive service. Any help will be greatly appreciated.
推荐答案
我不知道怎么用Python写一个服务为Android。但是你可以使用在启动time.You一个BroadcastReceiver可以注册您的广播接收器与Intent.ACTION_BOOT_COMPLETED过滤意图,也许开始你的服务。
I am not sure how to write a service for Android in Python. But you can maybe start your service using a BroadcastReceiver at boot time.You could register your broadcast receiver to filter intents with Intent.ACTION_BOOT_COMPLETED.
这篇关于使用Python创建Android的后台服务没有GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!