GPS禁用功能
答
我不认为它不可能。
尝试这样:
LocationManager.removeUpdates(LocationListener);
我希望这是你在找什么。
答
你不必禁用什么,只是使用位置管理器中删除gpsupdate .. 这里为
(的LocationManager)getSystemService(Context.LOCATION_SERVICE).removeUpdates(mLocListener)代码;
答
您可以禁用GPS由给定code.It运作良好。
Intent intent = new Intent("android.location.GPS_ENABLED_CHANGE");
intent.putExtra("enabled", false);
sendBroadcast(intent);
我做过同样的事情。它的工作:) – Angel 2011-01-19 10:06:42