get Thread Id - Android java.lang

Android examples for java.lang:Thread

Description

get Thread Id

Demo Code


//package com.java2s;

public class Main {
    public static long getThreadId() {
        return Thread.currentThread().getId();
    }//from  www .j av a2s.c  o  m
}

Related Tutorials