2
嗨我想写在服务的融合位置连续在后台运行。在那里我可以编写发送位置到服务器的代码。我已经在Activity中实现它了,现在我想在Service中实现它。请帮助我。如何融合位置在后台服务中连续运行
嗨我想写在服务的融合位置连续在后台运行。在那里我可以编写发送位置到服务器的代码。我已经在Activity中实现它了,现在我想在Service中实现它。请帮助我。如何融合位置在后台服务中连续运行
您可以扩展服务和implemetns方法
public class BackgroundLocationService extends Service implements GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, LocationListener
检查这个代码执行Background location services.
记得只是删除正确更新自己的位置。否则服务不会停止通过调用stopService方法
private LocationClient mLocationClient;方法现已弃用 – Rana
我需要最新的代码。 – Rana
你检查了链接吗? – Ameer