get Process id - Android Android OS

Android examples for Android OS:Process

Description

get Process id

Demo Code


//package com.java2s;

public class Main {
    private static int getPid() {
        return android.os.Process.myPid();
    }//from ww  w . j a  va  2  s .  c o m
}

Related Tutorials