问题描述
我想让我的应用程序运行在这样的运行总是一个过程的背景。
I want to make my app run in the background like a process that runs always.
我需要它,因为我想获得位置更新GPS每2分钟(经度,纬度),并在方法中使用的信息。
I need it because I want to get locations update for GPS every 2 minutes (longitude, latitude) and to use the information in a method.
有关,我需要为应用程序在运行的时候,手机是睡着了还是没有,换句话说,我需要的应用程序将始终运行该应用程序的UI。
For that I need for the app to be running when the phone is asleep or not in the UI of the app in other words I need the app will run always.
我敢肯定,有一种方法可以做到,我还是谢谢你任何答案:)
I'm sure that there is a way to make it , thanks anyway for any answers :)
推荐答案
这只是第一次谷歌搜索结果我发现:
This was just the first google search result I found:http://www.vogella.com/articles/AndroidServices/article.html
这里的答案是使用,如果本教程缺乏有6.4十亿人。
The answer here is to use a service, if this tutorial is lacking there are 6.4 billion others.
这篇关于我怎样才能让我的应用程序运行作为后台进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!