修改 frameworks/base/core/res/res/values/config.xml
view plaincopy to clipboardprint?
01.<!-- Component name of the service providing network location support. -->
02.<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
03.<!-- Component name of the service providing geocoder API support. -->
04.<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
把GoogleServicesFramework.apk和NetworkLocation.apk添加到 /system/app目录下.
功能:
NetworkLocationProvider,网络定位功能;
GeocodeProvider,坐标地址转换功能。
原作地址:http://blog.csdn.net/sunrock/archive/2011/06/10/6536996.aspx