title: Android: determinine my app's process ID?
body: <p>Is there a way within a java app that's running under Android to determine that app's process ID ("PID")?</p>
  
  <p>The reason I want this is that I am writing an app which reads and processes lines from logcat, and I want to be able to ignore all logcat lines that have been written by this app, itself.</p>
  
  <p>I know I can do this by using a unique tag for my app in all the Log.*() calls and then ignoring logcat lines with this tag, but it seems to me that it would be cleaner if I could simply ignore all logcat lines which have been written by my own app's PID.</p>
  
  <p>I've searched, but I couldn't find anything which explains how to determine the PID of a running Android app, from within that app, itself.</p>
  
  <p>Thanks in advance for any suggestions or pointers to docs.</p>