Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static void logThreadSignature(String name) { Log.d(name, getThreadSignature()); } public static String getThreadSignature() { Thread t = Thread.currentThread(); long id = t.getId(); String name = t.getName(); long pri = t.getPriority(); String gname = t.getThreadGroup().getName(); return (name + ":(id)" + id + ":(priority)" + pri + ":(group)" + gname); } }