Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

AndroidJNI.GetObjectField

public static IntPtr GetObjectField(IntPtr obj, IntPtr fieldID);

Parameters

Description

This function returns the value of an instance (nonstatic) field of an object.

The result is a reference to a java.lang.Object, or a subclass thereof.

See Also: Java Native Interface Specification (Oracle)