是否可以请求位于与调用startService的线程不同的线程中的服务内的位置更新?位置服务器内部服务
我曾尝试:
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
它不断给我的错误:
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
可以在在一个单独的线程,或做外景经理需要的服务中后台管理程序运行从活动中调用?
'Looper.getMainLooper()'做到了;确保在线程中使用它 – msysmilu 2015-04-14 14:48:30