我想基于long/lat得到一个地址.似乎这样的事情应该有效吗?
Geocoder myLocation = Geocoder(Locale.getDefault());
List myList = myLocation.getFromLocation(latPoint,lngPoint,1);
Run Code Online (Sandbox Code Playgroud)
问题是我不断得到:方法Geocoder(Locale)未定义类型savemaplocation
任何帮助都会有所帮助.谢谢.
谢谢,我尝试了上下文,首先是locale,然后失败并且正在查看其他一些构造函数(我曾经看过一个只提到locale).而不管,
它没有用,因为我仍然得到:方法Geocoder(Context,Locale)未定义类型savemaplocation
我有:import android.location.Geocoder;