location is null - is it the same behavior in real device?
问题 Hey guys as far as i don't have real android phone I wanted to ask this question. in my MapActivity which is extended from LocationListener, the onCreate method initializes "location" element as following : location = locationManager.getLastKnownLocation(provider); When I start my app, the location is always null until I send points from DDMS. I wanted to know, in real device what would be the behavior? 回答1: getLastKnownLocation() only gets the location last returned by the GPS. If the gps