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

Script language

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

AndroidJNI.SetStringField

public static void SetStringField(IntPtr obj, IntPtr fieldID, string val);

Description

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

This is a convenience function that calls SetObjectField() with the same parameters, but performs the necessary marshalling of the string value.

See Also: AndroidJNI.SetObjectField.

Did you find this page useful? Please give it a rating: