Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidJNI.DetachCurrentThread

static function DetachCurrentThread(): int;
static int DetachCurrentThread();
static def DetachCurrentThread() as int

Description

Detaches the current thread from a Java (Dalvik) VM.

A thread must be detached from the VM before exiting.

See Also: Java Native Interface Specification (Oracle)