get Process id - Android android.os

Android examples for android.os:Process

Description

get Process id

Demo Code

public class Main {

  private static int getPid() {
    return android.os.Process.myPid();
  }/*w  ww . j  av a 2  s. com*/

}

Related Tutorials