Android 如何使getLastKnownLocation在emulator上工作

Android 如何使getLastKnownLocation在emulator上工作,android,geolocation,Android,Geolocation,应用程序的要求是从移动设备获取lat、lon。我想在emulator上测试同样的东西。但是getLastKnownLocation提供空值。你能提出一些解决办法吗 也有同样的问题:

应用程序的要求是从移动设备获取lat、lon。我想在emulator上测试同样的东西。但是getLastKnownLocation提供空值。你能提出一些解决办法吗

也有同样的问题: