title: How to get Android Thread ID?
body: <p>This code throws a "Given thread does not exist" exception when I try to use it in a thread:</p>
  
  <pre><code>android.os.Process.getThreadPriority((int) Thread.currentThread().getId()));
  </code></pre>
  
  <p>Ditto if I try to use Process.setThreadPriority, using the java class Thread id. I've also noticed that this does not match the thread id displayed in the debugger. How do I get the Android specific thread id, in order to use this API?</p>