lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1l, 1l,
this);
这个语句会开启GPS搜星代码
其中的this是一个LocationListener
关闭搜星图标时,只需: lm.removeUpdates(ll); ll就是this指代的那个LocationListener
this);
这个语句会开启GPS搜星代码
其中的this是一个LocationListener
关闭搜星图标时,只需: lm.removeUpdates(ll); ll就是this指代的那个LocationListener