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