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

static function GetStaticStringField(clazz: IntPtr, fieldID: IntPtr): string;
static string GetStaticStringField(IntPtr clazz, IntPtr fieldID);
static def GetStaticStringField(clazz as IntPtr, fieldID as IntPtr) as string

Description

This function returns the value of a static field of an object.

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

See Also: AndroidJNI.GetStaticObjectField See Also: Java Native Interface Specification (Oracle)