我的应用使用GPS数据,由于某种原因,我无法在logCat中对其进行纠正以检查它们(正确还是错误)。它只是不打印我的"receive GPS data: "
。 Myabe,您可以告诉我为什么:
public class NoteLocationListener implements LocationListener{
@Override
public void onLocationChanged(Location location) {
Log.d(GatherActivity.this.getClass().getSimpleName(), "receive GPS data:\n" + location.toString());
//textView_output = GatherActivity.this.findViewById(R.id.textview_output);
//textView_output.setText(textView_output.getText().toString() + "\nEmpfangene Geodaten:\n" + location.toString());
}
@Override
public void onStatusChanged(String provider, int status, Bundle extras) {
}
@Override
public void onProviderEnabled(String provider) {
}
@Override
public void onProviderDisabled(String provider) {
}
}
puhh。我想我坐在显示器前的时间太久了:D我只需要在onCreate()