Android: how to get logs from device?
<p>For test app I want to add feature gather data and send it via email. I google a lot and found only this approach:</p>

<pre><code>    String cmd = String.format("logcat -d '%s:I' '*:S'", Schema.TAG);
    Process process = Runtime.getRuntime().exec(cmd);
    BufferedReader reader = new BufferedReader( 
            new InputStreamReader(process.getInputStream()));
    while((line = reader.readLine()) != null) {
        builder.append(line);
        builder.append(separator);
    }
</code></pre>

<p>But when I execute this command I get an empty string from inputstream. </p>

<p>Could you suggest how I can get a logs from device?</p>

<p>p.s. 
I want to avoud use a google analitycs</p>
