android通过wifi进行粗略定位(google maps)操作办法

来源:互联网 发布:parsley.js 中文提示 编辑:程序博客网 时间:2024/05/01 09:22

android通过wifi进行粗略定位(google maps)操作办法  

2012-05-07 15:56:09|  分类:Android |  标签:android  wifi定位  android开发  |字号 订阅

Step 1
Please confirm that android system has been installed the applications GoogleServicesFramework.apk & NetworkLocation.apk & Google maps.apk

Step 2
Put the following content into your overlay files <device folder>/overlay/frameworks/base/core/res/res/values/config.xml.

    <!-- Component name of the service providing network location support. -->
    <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
    <!-- Component name of the service providing geocoder API support. -->
    <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string> 

Step 3
Check the following two options.
1 Settings => Location Services => Google's location service
Settings => Location Services => Location & Google search

原创粉丝点击