can't filter logcat in android app
<p>I am working on an app and have the following code to display the app in a textview, but the only command that it's displaying is <code>logcat -d</code>. </p>

<p>I want it to filter stuff that are tag with <code>dalvikvm</code>. I tried <code>logcat -s dalvikvm</code> but my app does not display any log information on the device. </p>

<p>Here is my code.</p>

<pre><code>    try {
        Process process = Runtime.getRuntime().exec("logcat -s dalvikvm");
        BufferedReader bufferedReader = new BufferedReader(
        new InputStreamReader(process.getInputStream()));

        StringBuilder log=new StringBuilder();
        String line;
        while ((line = bufferedReader.readLine()) != null) {
          log.append(line);
        }
        TextView tv = (TextView)findViewById(R.id.textlog);
        tv.setText(log.toString());
      } catch (IOException e) {
      }
    }
  }
</code></pre>
