有关问题的一个非常简单的答案就是使用的服务。这将允许您执行各种任务,而在背景是,是你***的赌注的发送您的位置到服务器的悄无声息。
A very simple answer for your problem is to use Service. It will allow you to perform variety of tasks while being in background and is your best bet for sending your location to server silently.
阅读这接听求助。