摘要:
http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A6%8F%E5%BB%BA&sensor=false
http://maps.googleapis.com/maps/api/geocode/xml?address=%E7%A6%8F%E5%BB%BA&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?latlng=31.02,117.12&sensor=false
http://maps.googleapis.com/maps/api/geocode/xml?latlng=31.02,117.12&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A6%8F%E5%BB%BA&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A
阅读全文
posted @ 2014-04-26 01:10
上校
阅读(1987)
推荐(0)
编辑
摘要:
private class ButtonListener implements OnClickListener
{
@Override
public void onClick(View v) {
//得到LocationManager对象
LocationManager locationManager=(LocationManager)MainActivity.this.getSystemService(Context.LOCATION_SERVICE);
//定义当前所使用的Location Provider
//第二个参数:隔多少秒更新一次 第三个参数:隔多少距离更新一次
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5000, new TestLocationListener());
阅读全文
posted @ 2014-04-26 01:08
上校
阅读(417)
推荐(0)
编辑
摘要:
package com.example.mars_3300_location02;
import java.net.ContentHandler;
import java.util.List;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.content.Context;
阅读全文
posted @ 2014-04-26 01:06
上校
阅读(336)
推荐(0)
编辑