2010-02-05 73 views
0

我的Android手机上的GPS上,由事实的支持:GPS是对的,但的LocationManager返回null

location_manager.isProviderEnabled(LocationManager.GPS_PROVIDER) 

返回true。

然而,下面一行:

Location location = location_manager.getLastKnownLocation(LocationManager.GPS_PROVIDER) ; 

返回null。

可能是什么原因?

谢谢。

回答

3

您应该请求位置更新并等待第一个。