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.GetStringField

static function GetStringField(obj: IntPtr, fieldID: IntPtr): string;
static string GetStringField(IntPtr obj, IntPtr fieldID);
static def GetStringField(obj as IntPtr, fieldID as IntPtr) as string

Description

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

This is a convenience function that calls GetObjectField() with the same parameters, but creates a managed string from the result.

See Also: AndroidJNI.GetObjectField.