Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AndroidJNI.SetObjectField

public static void SetObjectField(IntPtr obj, IntPtr fieldID, IntPtr val);

Description

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

The value to set is a reference to either a java.lang.Object, or a subclass thereof.

See Also: Java Native Interface Specification (Oracle)