Nothing To Filter in the Logcat

+1 Kristian Vasilev · December 26, 2014
Hey. I just started with the android studio and the java language so this question my be stupid but anyway..

I'm watching the tutorial "Android App Development for Beginners - 10 - Running the State Changing Example". But when i get to 
6:14 when the messages of the filter has to appear - they dont. I only get at the all filter this messages and a error.


12-25 22:09:19.301    1697-2226/com.google.process.gapps W/Backup? [LegacyBackupAccountManager] No google accounts found!
12-25 22:09:19.322    1679-2227/com.google.android.gms D/PackageBroadcastService? Received broadcast action=android.intent.action.PACKAGE_CHANGED and uri=com.google.android.gms
12-25 22:09:19.322    1679-2227/com.google.android.gms I/PackageBroadcastService? Null package name or gms related package.  Ignoreing.
12-25 22:09:19.334    1679-2195/com.google.android.gms I/Icing? updateResources: need to parse e{com.google.android.gms}
12-25 22:09:19.356    1663-1663/com.google.process.location V/GmsNetworkLocationProvi? DISABLE
12-25 22:09:19.370    1663-1663/com.google.process.location I/GCoreNlp? shouldConfirmNlp, NLP off. Ensuring opt-in disabled
12-25 22:09:19.816    1228-1466/system_process I/ActivityManager? Delay finish: com.android.providers.calendar/.CalendarProviderBroadcastReceiver
12-25 22:09:19.825    1228-1242/system_process I/ActivityManager? Resuming delayed broadcast
12-25 22:13:14.881    1228-1241/system_process I/ActivityManager? Killing 1540:com.android.printspooler/u0a42 (adj 15): empty #17
12-25 22:13:14.894    1228-1466/system_process W/libprocessgroup? failed to open /acct/uid_10042/pid_1540/cgroup.procs: No such file or directory


Why i dont have no filters to display on my screen? Can anyone hellp me ? I copyed the whole code from the tutorial and pasted it.

Here is the code:




package com.example.zlotoftw.myapplication;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.util.Log;

public class MainActivity extends ActionBarActivity {

    private static final String TAG = "myMessage";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(TAG, "onCreate");
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG, "onStart");
    }


    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG, "onResume");
    }


    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG, "onPause");
    }


    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG, "onStop");
    }


    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(TAG, "onRestart");
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG, "onDestroy");
    }


    @Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        Log.i(TAG, "onSaveInstanceState");
    }


    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
        Log.i(TAG, "onRestoreInstanceState");
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_main, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}


Post a Reply

Replies

Oldest  Newest  Rating
0 Bruno Oliveira · February 17, 2015
I solve my problem.

Like can been see in the picture, I was clicking in the wrong icon. For use the logcat I must select the bug icon botton and not the play botton.
After this operation the logcat works fine.

/images/forum/upload/2015-02-17/19fe7acc56d81c5685f703f44daec4fe.JPG
0 Robert Howe · January 17, 2015
I had a very similar problem. I restarted the emulator and ran it again. That seemed to have fixed it for me.
0 Bruno Oliveira · February 5, 2015
I have a similar problem and represented by the line of code below.
02-05 21:29:06.770    1678-1678/? I/brunoMessage? onCreate


I think that the problem is related with the "?" mark.
Instead "?" doesn't must appear "com.example.bruno.myapplication"

How I remove that "?" mark?

I just restarted the emulator/ Android Studio and nothing
0 aaron banzhof · February 7, 2015
Bump. Same problem. Trying the restart now.
0 aaron banzhof · February 7, 2015
Same problem here. Trying restart now.
  • 1

Java / Android Development

107,076 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator