なんとかしてこの機能を停止したい「GPSを使用する」
private void localizacion() {
progressDialog = ProgressDialog.show(
actUsarGPS.this, "Por favor espere", "BUSCANDO", true);
handler = new Handler();
final Runnable runInUIThread = new Runnable() {
public void run() {
LocationManager mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
LocationListener mlocListener = new MyLocationListener();
mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, mlocListener);
}
};
new Thread() {
@Override
public void run() {
//handler.post(runInUIThread);
handler.postDelayed(runInUIThread,1000);
}
}.start();
}
ダイアログにキャンセル ボタンまたは戻るボタンがあること
そして彼を止めようとしたが無駄だった。それらをagradecere多く..
よろしく