几乎在任何时候都能完美工作,如果手机所在的位置没有任何可用的位置提供商(GPS、Wi-Fi、蜂窝),则会出现问题。很长一段时间(例如在地下室、车库……)。startService(new Intent(this, GPSService.class));public class GPSService extends Service implementsclients
public class LocalBinder exte
android.location.LocationManager.requestLocationUpdates(LocationManager.java:630)at com.mobile.sales.GPSService$AllGPSTimer.run(GPSService.java:140)
at java.util.Timer那么在服务类的Activity类中有没有</em
当我使用LocationManager.GPS_PROVIDER应用程序时,工作时间很短,然后开始没有响应(ANR)。当我只使用LocationManager.NETWORK时,一切都很好。; public void onCreate() { service = new GPSServiceonLocationUpdate(double lat, double lon) {
// TODO Auto-gen
在尝试启动服务时,我得到了一个没有发现异常的活动。我在申报单上登记了这项服务。添加我认为相关的代码和LogCat。如果你还需要看的话请告诉我。android.content.ActivityNotFoundException: Unable to find explicit activity class {drvr.drvlog/drvr.drvlog.GPSServiceutil;DataBaseHelper db;
//emp