Log.d不在LogCat中打印

问题描述 投票:0回答:1

我的应用使用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) {

        }

    }
android uri logcat
1个回答
0
投票

puhh。我想我坐在显示器前的时间太久了:D我只需要在onCreate()

中调用该方法
© www.soinside.com 2019 - 2024. All rights reserved.