JNI 方法

<div class="Blog_tit4 Blog_tit5" style="word-wrap: break-word; border-bottom-width: 0px; padding: 0px 0px 11px;"> <a target=_blank href="http://blog.chinaunix.net/uid-22028680-id-3429721.html" style="word-wrap: break-word; text-decoration: none; color: rgb(25, 89, 155); font-family: 微软雅黑, 黑体, Verdana; font-size: 20px;">JNI 方法</a> <span style="word-wrap: break-word; margin-left: 22px; color: rgb(187, 186, 186); font-family: Arial;">2012-12-04 14:31:31</span></div><div class="Blog_con2" style="word-wrap: break-word; color: rgb(102, 102, 102); line-height: 26px;"><div class="Blog_con3" style="word-wrap: break-word; margin-top: 10px; line-height: 22px;"><p style="word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; color: rgb(25, 89, 155);">分类: <span style="word-wrap: break-word; color: rgb(187, 186, 186); margin-right: 25px;">Java</span></p><p style="word-wrap: break-word; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; color: rgb(25, 89, 155);"></p></div><div class="Blog_wz1" style="word-wrap: break-word; font-size: 16px;"><span style="word-wrap: break-word; color: rgb(255, 0, 0);">1、AndroidJNI.AllocObject 分配对象</span><br style="word-wrap: break-word;" />static function AllocObject (clazz : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Allocates a new Java object without invoking any of the constructors for the object.<br style="word-wrap: break-word;" />分配新 Java 对象而不调用该对象的任何构造函数。返回该对象的引用。<br style="word-wrap: break-word;" />clazz 参数务必不要引用数组类。<br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">2、AndroidJNI.AttachCurrentThread 附加当前线程</span><br style="word-wrap: break-word;" />static function AttachCurrentThread () : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Attaches the current thread to a Java (Dalvik) VM.<br style="word-wrap: break-word;" />附加当前线程到一个Java(Dalvik)虚拟机。<br style="word-wrap: break-word;" />A thread must be attached to the VM before any other JNI calls can be made.<br style="word-wrap: break-word;" />一个线程必须附加到虚拟机,在任何其他JNI可调用之前。<br style="word-wrap: break-word;" />Returns 0 on success; returns a negative number on failure.<br style="word-wrap: break-word;" />成功返回0,失败返回一个负数。<br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">3、AndroidJNI.CallBooleanMethod 调用布尔方法</span><br style="word-wrap: break-word;" />static function CallBooleanMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">4、AndroidJNI.CallByteMethod 调用字节方法</span><br style="word-wrap: break-word;" />static function CallByteMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : Byte<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" /><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;">调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。</p><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;"><br style="word-wrap: break-word;" /></p><span style="word-wrap: break-word; color: rgb(255, 0, 0);">5、AndroidJNI.CallCharMethod 调用字符方法</span><br style="word-wrap: break-word;" />static function CallCharMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : Char<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">6、AndroidJNI.CallDoubleMethod 调用双精度浮点数方法</span><br style="word-wrap: break-word;" />static function CallDoubleMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : double<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">7、AndroidJNI.CallFloatMethod 调用浮点数方法</span><br style="word-wrap: break-word;" />static function CallFloatMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : float<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">8、AndroidJNI.CallIntMethod 调用整数方法</span><br style="word-wrap: break-word;" />static function CallObjectMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">9、AndroidJNI.CallLongMethod 调用长整数方法</span><br style="word-wrap: break-word;" />static function CallLongMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">10、AndroidJNI.CallObjectMethod 调用对象方法</span><br style="word-wrap: break-word;" />static function CallObjectMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" />This method returns a reference to a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />这个方法返回一个引用到java.lang.Object,或者其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">11、AndroidJNI.CallShortMethod 调用短整数方法</span><br style="word-wrap: break-word;" />static function CallShortMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : Int16<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">12、AndroidJNI.CallStaticBooleanMethod 调用静态布尔方法</span><br style="word-wrap: break-word;" />static function CallStaticBooleanMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">13、AndroidJNI.CallStaticByteMethod 调用静态字节方法</span><br style="word-wrap: break-word;" />static function CallStaticByteMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : Byte<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">14、AndroidJNI.CallStaticCharMethod 调用静态字符方法</span><br style="word-wrap: break-word;" />static function CallStaticCharMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : Char<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">15、AndroidJNI.CallStaticDoubleMethod 调用静态双精度浮点数方法</span><br style="word-wrap: break-word;" />static function CallStaticDoubleMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : double<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">16、AndroidJNI.CallStaticFloatMethod 调用静态浮点数方法</span><br style="word-wrap: break-word;" />static function CallStaticFloatMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : float<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">17、AndroidJNI.CallStaticIntMethod 调用静态整数方法</span><br style="word-wrap: break-word;" />static function CallStaticIntMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : Int32<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">18、AndroidJNI.CallStaticLongMethod 调用静态长整数方法</span><br style="word-wrap: break-word;" />static function CallStaticLongMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">19、AndroidJNI.CallStaticObjectMethod 调用静态对象方法</span><br style="word-wrap: break-word;" />static function CallStaticObjectMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" />This method returns a reference to a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />这个方法返回一个java.lang.Object的引用,或者其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">20、AndroidJNI.CallStaticShortMethod 调用静态短整数方法</span><br style="word-wrap: break-word;" />static function CallStaticShortMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : Int16<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">21、AndroidJNI.CallStaticStringMethod 调用静态字符串方法</span><br style="word-wrap: break-word;" />static function CallStaticStringMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : string<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。<br style="word-wrap: break-word;" />This is a convenience function that calls CallStaticObjectMethod() with the same parameters, but creates a managed string from the result.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的CallStaticObjectMethod(),但从该结果创建一个托管字符串。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">22、AndroidJNI.CallStaticVoidMethod 调用静态无类型方法</span><br style="word-wrap: break-word;" />static function CallStaticVoidMethod (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Invokes a static method on a Java object, according to the specified methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" /><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;">在一个Java对象调用一个静态方法,根据指定的methodID,可选传递参数(args)的数组到该方法。</p><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;"><br style="word-wrap: break-word;" /></p><span style="word-wrap: break-word; color: rgb(255, 0, 0);">23、AndroidJNI.CallStringMethod 调用字符串方法</span><br style="word-wrap: break-word;" />static function CallStringMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : string<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" />This is a convenience function that calls CallObjectMethod() with the same parameters, but creates a managed string from the result.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的CallObjectMethod(),但从整个结果创建一个托管字符串。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">24、AndroidJNI.CallVoidMethod 调用无类型方法</span><br style="word-wrap: break-word;" />static function CallVoidMethod (obj : IntPtr, methodID : IntPtr, args : jvalue[]) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Calls an instance (nonstatic) Java method defined by methodID, optionally passing an array of arguments (args) to the method.<br style="word-wrap: break-word;" />调用一个由methodID定义的实例的Java方法,可选择传递参数(args)的数组到这个方法。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">25、AndroidJNI.DeleteGlobalRef 删除全局引用</span><br style="word-wrap: break-word;" />static function DeleteGlobalRef (obj : IntPtr) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Deletes the global reference pointed to by obj.<br style="word-wrap: break-word;" />删除 obj 所指向的全局引用。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">26、AndroidJNI.DeleteLocalRef 删除局部引用</span><br style="word-wrap: break-word;" />static function DeleteLocalRef (obj : IntPtr) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Deletes the local reference pointed to by obj.<br style="word-wrap: break-word;" />删除 obj 所指向的局部引用。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">27、AndroidJNI.DetachCurrentThread 分离当前线程</span><br style="word-wrap: break-word;" />static function DetachCurrentThread () : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Detaches the current thread from a Java (Dalvik) VM.<br style="word-wrap: break-word;" />从一个Java(Dalvik)虚拟机,分类当前线程。<br style="word-wrap: break-word;" />A thread must be detached from the VM before exiting.<br style="word-wrap: break-word;" />从退出虚拟机之前,一个线程必须被分类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">28、AndroidJNI.EnsureLocalCapacity 确保局部性能</span><br style="word-wrap: break-word;" />static function EnsureLocalCapacity (capacity : int) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Ensures that at least a given number of local references can be created in the current thread.<br style="word-wrap: break-word;" />在当前线程确保至少一个可以被创建的给定局部引用数。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">29、AndroidJNI.ExceptionClear 清除异常</span><br style="word-wrap: break-word;" />static function ExceptionClear () : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Clears any exception that is currently being thrown.<br style="word-wrap: break-word;" />清除当前抛出的任何异常。如果当前无异常,则此例程不产生任何效果。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">30、AndroidJNI.ExceptionDescribe 描述异常</span><br style="word-wrap: break-word;" />static function ExceptionDescribe () : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Prints an exception and a backtrace of the stack to the logcat<br style="word-wrap: break-word;" />将异常及堆栈的回溯输出到系统错误报告信道。该例程可便利调试操作。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">31、AndroidJNI.ExceptionOccurred 发生异常</span><br style="word-wrap: break-word;" />static function ExceptionOccurred () : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Determines if an exception is being thrown<br style="word-wrap: break-word;" />确定是否某个异常正被抛出。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">32、AndroidJNI.FatalError 致命错误</span><br style="word-wrap: break-word;" />static function FatalError (message : string) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Raises a fatal error and does not expect the VM to recover. This function does not return.<br style="word-wrap: break-word;" />抛出致命错误并且不希望虚拟机进行修复。该函数无返回值。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">33、AndroidJNI.FindClass 查找类</span><br style="word-wrap: break-word;" />static function FindClass (name : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function loads a locally-defined class.<br style="word-wrap: break-word;" />这个函数加载一个本地定义的类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">34、AndroidJNI.FromBooleanArray 从布尔数组</span><br style="word-wrap: break-word;" />static function FromBooleanArray (array : IntPtr) : Boolean[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of boolean to a managed array of System.Boolean.<br style="word-wrap: break-word;" />转换一个Java布尔数组到一个托管System.Boolean数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">35、AndroidJNI.FromByteArray 从字节数组</span><br style="word-wrap: break-word;" />static function FromByteArray (array : IntPtr) : Byte[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of byte to a managed array of System.Byte.<br style="word-wrap: break-word;" />转换一个Java字节数组到一个托管的System.Byte数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">36、AndroidJNI.FromCharArray 从字符数组</span><br style="word-wrap: break-word;" />static function FromCharArray (array : IntPtr) : Char[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of char to a managed array of System.Char.<br style="word-wrap: break-word;" />转换一个Java字符数组到一个托管的System.Char数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">37、AndroidJNI.FromDoubleArray 从双精度浮点数数组</span><br style="word-wrap: break-word;" />static function FromDoubleArray (array : IntPtr) : double[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of double to a managed array of System.Double.<br style="word-wrap: break-word;" />转换一个Java双精度浮点数数组到一个托管的System.Double数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">38、AndroidJNI.FromFloatArray 从浮点数数组</span><br style="word-wrap: break-word;" />static function FromFloatArray (array : IntPtr) : float[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of float to a managed array of System.Single.<br style="word-wrap: break-word;" />转换一个Java浮点数数组到一个托管的System.Single数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">39、AndroidJNI.FromIntArray 从整数数组</span><br style="word-wrap: break-word;" />static function FromIntArray (array : IntPtr) : Int32[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of int to a managed array of System.Int32.<br style="word-wrap: break-word;" />转换一个Java整数数组到一个托管的System.Int32数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">40、AndroidJNI.FromLongArray 从整长数数组</span><br style="word-wrap: break-word;" />static function FromLongArray (array : IntPtr) : Int64[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of long to a managed array of System.Int64.<br style="word-wrap: break-word;" />转换一个Java长整数数组到一个托管的System.Int64数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">41、AndroidJNI.FromObjectArray 从对象数组</span><br style="word-wrap: break-word;" />static function FromObjectArray (array : IntPtr) : IntPtr[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of java.lang.Object to a managed array of System.IntPtr, representing Java objects<br style="word-wrap: break-word;" />转换一个Java的java.lang.Object数组到一个托管的System.IntPtr数组,表示Java对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">42、AndroidJNI.FromReflectedField 来自反射的域</span><br style="word-wrap: break-word;" />static function FromReflectedField (refField : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Converts a java.lang.reflect.Field to a field ID.<br style="word-wrap: break-word;" />转换一个java.lang.reflect.Field到一个域ID。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">43、AndroidJNI.FromReflectedMethod 来自反射的方法</span><br style="word-wrap: break-word;" />static function FromReflectedMethod (refMethod : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Converts a java.lang.reflect.Method or java.lang.reflect.Constructor object to a method ID.<br style="word-wrap: break-word;" />转换一个java.lang.reflect.Method或java.lang.reflect.Constructor对象到一个方法ID。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">44、AndroidJNI.FromShortArray 从短整数数组</span><br style="word-wrap: break-word;" />static function FromShortArray (array : IntPtr) : Int16[]<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a Java array of short to a managed array of System.Int16.<br style="word-wrap: break-word;" /><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;">转换一个Java短整数数组到一个托管的System.Int16数组。</p><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;"><br style="word-wrap: break-word;" /></p><span style="word-wrap: break-word; color: rgb(255, 0, 0);">45、AndroidJNI.GetArrayLength 获取数组长度</span><br style="word-wrap: break-word;" />static function GetArrayLength (array : IntPtr) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the number of elements in the array.<br style="word-wrap: break-word;" />返回数组的元素数。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">46、AndroidJNI.GetBooleanArrayElement 获取布尔数组元素</span><br style="word-wrap: break-word;" />static function GetBooleanArrayElement (array : IntPtr, index : int) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetBooleanArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetBooleanArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">47、AndroidJNI.GetBooleanField 获取布尔域</span><br style="word-wrap: break-word;" />static function GetBooleanField (obj : IntPtr, fieldID : IntPtr) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">48、AndroidJNI.GetByteArrayElement 获取字节数组元素</span><br style="word-wrap: break-word;" />static function GetByteArrayElement (array : IntPtr, index : int) : Byte<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetByteArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetByteArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">49、AndroidJNI.GetByteField 获取字节域</span><br style="word-wrap: break-word;" />static function GetByteField (obj : IntPtr, fieldID : IntPtr) : Byte<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">50、AndroidJNI.GetCharArrayElement 获取字符数组元素</span><br style="word-wrap: break-word;" />static function GetCharArrayElement (array : IntPtr, index : int) : Char<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetCharArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetCharArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">51、AndroidJNI.GetCharField 获取字符域</span><br style="word-wrap: break-word;" />static function GetCharField (obj : IntPtr, fieldID : IntPtr) : Char<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">52、AndroidJNI.GetDoubleArrayElement 获取双精度浮点数数组元素</span><br style="word-wrap: break-word;" />static function GetDoubleArrayElement (array : IntPtr, index : int) : double<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetDoubleArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetDoubleArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">53、AndroidJNI.GetDoubleField 获取双精度浮点数域</span><br style="word-wrap: break-word;" />static function GetDoubleField (obj : IntPtr, fieldID : IntPtr) : double<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">54、AndroidJNI.GetFieldID 获取域ID</span><br style="word-wrap: break-word;" />static function GetFieldID (clazz : IntPtr, name : string, sig : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the field ID for an instance (nonstatic) field of a class.<br style="word-wrap: break-word;" />返回类的实例(非静态)域的域 ID。该域由其名称及签名指定。<br style="word-wrap: break-word;" />GetFieldID() 将未初始化的类初始化。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">55、AndroidJNI.GetFloatArrayElement 获取浮点数数组元素</span><br style="word-wrap: break-word;" />static function GetFloatArrayElement (array : IntPtr, index : int) : float<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetFloatArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetFloatArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">56、AndroidJNI.GetFloatField 获取浮点数域</span><br style="word-wrap: break-word;" />static function GetFloatField (obj : IntPtr, fieldID : IntPtr) : float<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">57、AndroidJNI.GetIntArrayElement 获取整数数组元素</span><br style="word-wrap: break-word;" />static function GetIntArrayElement (array : IntPtr, index : int) : Int32<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetIntArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetIntArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">58、AndroidJNI.GetIntField 获取整数域</span><br style="word-wrap: break-word;" />static function GetIntField (obj : IntPtr, fieldID : IntPtr) : Int32<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">59、AndroidJNI.GetLongArrayElement 获取长整数数组元素</span><br style="word-wrap: break-word;" />static function GetLongArrayElement (array : IntPtr, index : int) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetLongArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetLongArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">60、AndroidJNI.GetLongField 获取长整数域</span><br style="word-wrap: break-word;" />static function GetLongField (obj : IntPtr, fieldID : IntPtr) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">61、AndroidJNI.GetMethodID 获取方法ID</span><br style="word-wrap: break-word;" />static function GetMethodID (clazz : IntPtr, name : string, sig : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the method ID for an instance (nonstatic) method of a class or interface.<br style="word-wrap: break-word;" />返回类或接口实例(非静态)方法的方法 ID。方法可在某个 clazz 的超类中定义,也可从 clazz 继承。该方法由其名称和签名决定。<br style="word-wrap: break-word;" />GetMethodID() 可使未初始化的类初始化。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">62、AndroidJNI.GetObjectArrayElement 获取对象数组元素</span><br style="word-wrap: break-word;" />static function GetObjectArrayElement (array : IntPtr, index : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns an element of an Object array.<br style="word-wrap: break-word;" />返回一个对象数组的一个元素。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">63、AndroidJNI.GetObjectClass 获取对象类</span><br style="word-wrap: break-word;" />static function GetObjectClass (obj : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the class of an object.<br style="word-wrap: break-word;" />返回一个对象的类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">64、AndroidJNI.GetObjectField 获取对象域</span><br style="word-wrap: break-word;" />static function GetObjectField (obj : IntPtr, fieldID : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" />The result is a reference to a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />其结果是对一个java.lang.Object的引用,或者其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">65、AndroidJNI.GetShortArrayElement 获取短整数数组元素</span><br style="word-wrap: break-word;" />static function GetShortArrayElement (array : IntPtr, index : int) : Int16<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the value of one element of a primitive array.<br style="word-wrap: break-word;" />返回一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of GetShortArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的GetShortArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">66、AndroidJNI.GetShortField 获取短整数域</span><br style="word-wrap: break-word;" />static function GetShortField (obj : IntPtr, fieldID : IntPtr) : Int16<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">67、AndroidJNI.GetStaticBooleanField 获取静态布尔域</span><br style="word-wrap: break-word;" />static function GetStaticBooleanField (clazz : IntPtr, fieldID : IntPtr) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">68、AndroidJNI.GetStaticByteField 获取静态字节域</span><br style="word-wrap: break-word;" />static function GetStaticByteField (clazz : IntPtr, fieldID : IntPtr) : Byte<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">69、AndroidJNI.GetStaticCharField 获取静态字符域</span><br style="word-wrap: break-word;" />static function GetStaticCharField (clazz : IntPtr, fieldID : IntPtr) : Char<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">70、AndroidJNI.GetStaticDoubleField 获取静态双精度浮点数域</span><br style="word-wrap: break-word;" />static function GetStaticDoubleField (clazz : IntPtr, fieldID : IntPtr) : double<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">71、AndroidJNI.GetStaticFieldID 获取静态域ID</span><br style="word-wrap: break-word;" />static function GetStaticFieldID (clazz : IntPtr, name : string, sig : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the field ID for a static field of a class.<br style="word-wrap: break-word;" />返回类的静态域的域 ID。域由其名称和签名指定。<br style="word-wrap: break-word;" />GetStaticFieldID() 将未初始化的类初始化。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">72、AndroidJNI.GetStaticFloatField 获取静态浮点数域</span><br style="word-wrap: break-word;" />static function GetStaticFloatField (clazz : IntPtr, fieldID : IntPtr) : float<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">73、AndroidJNI.GetStaticIntField 获取静态整数域</span><br style="word-wrap: break-word;" />static function GetStaticIntField (clazz : IntPtr, fieldID : IntPtr) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">74、AndroidJNI.GetStaticLongField 获取静态长整数域</span><br style="word-wrap: break-word;" />static function GetStaticLongField (clazz : IntPtr, fieldID : IntPtr) : Int64<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">75、AndroidJNI.GetStaticMethodID 获取静态方法ID</span><br style="word-wrap: break-word;" />static function GetStaticMethodID (clazz : IntPtr, name : string, sig : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the method ID for a static method of a class.<br style="word-wrap: break-word;" />返回类的静态方法的方法 ID。方法由其名称和签名指定。<br style="word-wrap: break-word;" />GetStaticMethodID() 将未初始化的类初始化。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">76、AndroidJNI.GetStaticObjectField 获取静态对象域</span><br style="word-wrap: break-word;" />static function GetStaticObjectField (clazz : IntPtr, fieldID : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" />The result is a reference to a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />该结果是一个java.lang.Object的引用,或者其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">77、AndroidJNI.GetStaticShortField 获取静态短整数域</span><br style="word-wrap: break-word;" />static function GetStaticShortField (clazz : IntPtr, fieldID : IntPtr) : Int16<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">78、AndroidJNI.GetStaticStringField 获取静态字符串域</span><br style="word-wrap: break-word;" />static function GetStaticStringField (clazz : IntPtr, fieldID : IntPtr) : string<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象静态域的值。<br style="word-wrap: break-word;" />This is a convenience function that calls GetStaticObjectField() with the same parameters, but creates a managed string from the result.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的GetStaticObjectField(),但从该结果创建一个托管字符串。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">79、AndroidJNI.GetStringField 获取字符串域</span><br style="word-wrap: break-word;" />static function GetStringField (obj : IntPtr, fieldID : IntPtr) : string<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function returns the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数返回一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" />This is a convenience function that calls GetObjectField() with the same parameters, but creates a managed string from the result.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的GetObjectField(),但从结果创建一个托管字符串。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">80、AndroidJNI.GetStringUTFChars 获取字符串UTF的字</span>符<br style="word-wrap: break-word;" />static function GetStringUTFChars (str : IntPtr) : string<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns a managed string object representing the string in modified UTF-8 encoding.<br style="word-wrap: break-word;" />返回由UTF-8修改的托管的字符串对象。<br style="word-wrap: break-word;" />另解,返回指向字符串的 UTF-8 字符数组的指针。<br style="word-wrap: break-word;" />This method is a modification of the original GetStringUTFChars, which returns a pointer to an array of bytes.<br style="word-wrap: break-word;" />这个方法是原始GetStringUTFChars的修改,返回指向字节的数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">81、AndroidJNI.GetStringUTFLength 获取字符串UTF的长度</span><br style="word-wrap: break-word;" />static function GetStringUTFLength (str : IntPtr) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the length in bytes of the modified UTF-8 representation of a string.<br style="word-wrap: break-word;" />以字节为单位返回字符串的 UTF-8 长度。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">82、AndroidJNI.GetSuperclass 获取超类</span><br style="word-wrap: break-word;" />static function GetSuperclass (clazz : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />If clazz represents any class other than the class Object, then this function returns the object that represents the superclass of the class specified by clazz.<br style="word-wrap: break-word;" />如果 clazz 代表类而非类 object,则该函数返回由 clazz 所指定的类的超类。 <br style="word-wrap: break-word;" />If clazz specifies the class Object, or clazz represents an interface, this function returns NULL.<br style="word-wrap: break-word;" />如果 clazz 指定类 Object,或代表某个接口,则该函数返回 NULL。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">83、AndroidJNI.GetVersion 获取版本</span><br style="word-wrap: break-word;" />static function GetVersion () : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Returns the version of the native method interface.<br style="word-wrap: break-word;" />返回本地方法接口的版本。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">84、AndroidJNI.IsAssignableFrom 是否可赋值</span><br style="word-wrap: break-word;" />static function IsAssignableFrom (clazz1 : IntPtr, clazz2 : IntPtr) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Determines whether an object of clazz1 can be safely cast to clazz2.<br style="word-wrap: break-word;" />确定 clazz1 的对象是否可安全地强制转换为 clazz2。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">85、AndroidJNI.IsInstanceOf 是否某类的实例</span><br style="word-wrap: break-word;" />static function IsInstanceOf (obj : IntPtr, clazz : IntPtr) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Tests whether an object is an instance of a class.<br style="word-wrap: break-word;" />测试对象是否为某个类的实例。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">86、AndroidJNI.IsSameObject 是否同一对象</span><br style="word-wrap: break-word;" />static function IsSameObject (obj1 : IntPtr, obj2 : IntPtr) : bool<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Tests whether two references refer to the same Java object.<br style="word-wrap: break-word;" />测试两个引用是否引用同一 Java 对象。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">87、AndroidJNI.NewBooleanArray 新建布尔数组</span><br style="word-wrap: break-word;" />static function NewBooleanArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">88、AndroidJNI.NewByteArray 新建字节数组</span><br style="word-wrap: break-word;" />static function NewByteArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">89、AndroidJNI.NewCharArray 新建字符数组</span><br style="word-wrap: break-word;" />static function NewCharArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">90、AndroidJNI.NewDoubleArray 新建双精度浮点数数组</span><br style="word-wrap: break-word;" />static function NewDoubleArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">91、AndroidJNI.NewFloatArray 新建浮点数数组</span><br style="word-wrap: break-word;" />static function NewFloatArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">92、AndroidJNI.NewGlobalRef 新建全局引用</span><br style="word-wrap: break-word;" />static function NewGlobalRef (obj : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Creates a new global reference to the object referred to by the obj argument.<br style="word-wrap: break-word;" />创建 obj 参数所引用对象的新全局引用。全局引用通过调用 DeleteGlobalRef() 来显式撤消。<br style="word-wrap: break-word;" />返回全局引用。如果系统内存不足则返回 NULL。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">93、AndroidJNI.NewIntArray 新建整数数组</span><br style="word-wrap: break-word;" />static function NewIntArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">94、AndroidJNI.NewLocalRef 新建局部引用</span><br style="word-wrap: break-word;" />static function NewLocalRef (obj : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Creates a new local reference that refers to the same object as obj.<br style="word-wrap: break-word;" />创建 obj 参数对象的新局部引用。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word; color: rgb(255, 0, 0);" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">95、AndroidJNI.NewLongArray 新建长整数数组</span><br style="word-wrap: break-word;" />static function NewLongArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" /><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;">构造一个新的基本数组对象。</p><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">96、AndroidJNI.NewObjectArray 新建对象数组</span><br style="word-wrap: break-word;" />static function NewObjectArray (size : int, clazz : IntPtr, obj : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Constructs a new array holding objects in class clazz. All elements are initially set to obj.<br style="word-wrap: break-word;" />构造新的数组,它将保存在类 clazz 中的对象。所有元素初始值均设为 obj。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">97、AndroidJNI.NewObject 新建对象</span><br style="word-wrap: break-word;" />static function NewObject (clazz : IntPtr, methodID : IntPtr, args : jvalue[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with as the method name and void (V) as the return type.<br style="word-wrap: break-word;" />构造新的 Java 对象。方法 ID指示应调用的构造函数方法。该 ID 必须通过调用 GetMethodID() 获得,且调用时的方法名必须为 <init>,而返回类型必须为 void (V)。<br style="word-wrap: break-word;" />clazz 参数务必不要引用数组类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">98、AndroidJNI.NewShortArray 新建短整数数组</span><br style="word-wrap: break-word;" />static function NewShortArray (size : int) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Construct a new primitive array object.<br style="word-wrap: break-word;" />构造一个新的基本数组对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">99、AndroidJNI.NewStringUTF 新建UTF字符串</span><br style="word-wrap: break-word;" />static function NewStringUTF (bytes : string) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Constructs a new java.lang.String object from an array of characters in modified UTF-8 encoding.<br style="word-wrap: break-word;" />利用 UTF-8 字符数组构造新的 java.lang.String 对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">100、AndroidJNI.PopLocalFrame 弹出局部帧</span><br style="word-wrap: break-word;" />static function PopLocalFrame (result : IntPtr) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Pops off the current local reference frame, frees all the local references, and returns a local reference in the previous local reference frame for the given result object.<br style="word-wrap: break-word;" />弹出关闭当前局部引用帧,释放所有的本地引用,并返回一个局部引用,在前一个局部引用帧,用于给定的结果对象。<br style="word-wrap: break-word;" />    PushLocalFrame为一定数量的局部引用创建了一个使用堆栈,而PopLocalFrame负责销毁堆栈顶端的引用。<br style="word-wrap: break-word;" />    Push/PopLocalFrame函数对提供了对局部引用的生命周期更方便的管理。<br style="word-wrap: break-word;" />    在管理局部引用的生命周期中,Push/PopLocalFrame是非常方便的。你可以在本地函数的入口处调用PushLocalFrame,然后在出 口处调用PopLocalFrame,这样的话,在函数对中间任何位置创建的局部引用都会被释放。而且,这两个函数是非常高效的。<br style="word-wrap: break-word;" />    如果你在函数的入口处调用了PushLocalFrame,记住在所有的出口(有return出现的地方)调用PopLocalFrame。<br style="word-wrap: break-word;" />    大量的局部引用创建会浪费不必要的内存。一个局部引用会导致它本身和它所指向的对象都得不到回收。尤其要注意那些长时间运行的方法、创建局部引用的循环和工具函数,充分得利用Pus/PopLocalFrame来高效地管理局部引用。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">101、AndroidJNI.PushLocalFrame 压入局部帧</span><br style="word-wrap: break-word;" />static function PushLocalFrame (capacity : int) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Creates a new local reference frame, in which at least a given number of local references can be created.<br style="word-wrap: break-word;" />创建一个新的局部引入帧,至少一个给定的局部引用可以被创建的数。<br style="word-wrap: break-word;" />    PushLocalFrame为一定数量的局部引用创建了一个使用堆栈,而PopLocalFrame负责销毁堆栈顶端的引用。<br style="word-wrap: break-word;" />    Push/PopLocalFrame函数对提供了对局部引用的生命周期更方便的管理。<br style="word-wrap: break-word;" />    在管理局部引用的生命周期中,Push/PopLocalFrame是非常方便的。你可以在本地函数的入口处调用PushLocalFrame,然后在出 口处调用PopLocalFrame,这样的话,在函数对中间任何位置创建的局部引用都会被释放。而且,这两个函数是非常高效的。<br style="word-wrap: break-word;" />    如果你在函数的入口处调用了PushLocalFrame,记住在所有的出口(有return出现的地方)调用PopLocalFrame。<br style="word-wrap: break-word;" />    大量的局部引用创建会浪费不必要的内存。一个局部引用会导致它本身和它所指向的对象都得不到回收。尤其要注意那些长时间运行的方法、创建局部引用的循环和工具函数,充分得利用Pus/PopLocalFrame来高效地管理局部引用。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">102、AndroidJNI.SetBooleanArrayElement 设置布尔数组数组元素</span><br style="word-wrap: break-word;" />static function SetBooleanArrayElement (array : IntPtr, index : int, val : byte) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetBooleanArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetBooleanArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">103、AndroidJNI.SetBooleanField 设置布尔域</span><br style="word-wrap: break-word;" />static function SetBooleanField (obj : IntPtr, fieldID : IntPtr, val : bool) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">104、AndroidJNI.SetByteArrayElement 设置字节数组元素</span><br style="word-wrap: break-word;" />static function SetByteArrayElement (array : IntPtr, index : int, val : sbyte) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetByteArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetByteArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">106、AndroidJNI.SetByteField 设置字节域</span><br style="word-wrap: break-word;" />static function SetByteField (obj : IntPtr, fieldID : IntPtr, val : Byte) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">107、AndroidJNI.SetCharArrayElement 设置字符数组元素</span><br style="word-wrap: break-word;" />static function SetCharArrayElement (array : IntPtr, index : int, val : Char) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetCharArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetCharArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">108、AndroidJNI.SetCharField 设置字符域</span><br style="word-wrap: break-word;" />static function SetCharField (obj : IntPtr, fieldID : IntPtr, val : Char) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">109、AndroidJNI.SetDoubleArrayElement 设置双精度浮点数数组元素</span><br style="word-wrap: break-word;" />static function SetDoubleArrayElement (array : IntPtr, index : int, val : double) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetDoubleArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetDoubleArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">110、AndroidJNI.SetDoubleField 设置双精度浮点数域</span><br style="word-wrap: break-word;" />static function SetDoubleField (obj : IntPtr, fieldID : IntPtr, val : double) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">111、AndroidJNI.SetFloatArrayElement 设置浮点数数组元素</span><br style="word-wrap: break-word;" />static function SetFloatArrayElement (array : IntPtr, index : int, val : float) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetFloatArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetFloatArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">112、AndroidJNI.SetFloatField 设置浮点数域</span><br style="word-wrap: break-word;" />static function SetFloatField (obj : IntPtr, fieldID : IntPtr, val : float) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">113、AndroidJNI.SetIntArrayElement 设置整数数组元素</span><br style="word-wrap: break-word;" />static function SetIntArrayElement (array : IntPtr, index : int, val : Int32) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetIntArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetIntArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word; color: rgb(255, 0, 0);" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">114、AndroidJNI.SetIntField 设置整数域</span><br style="word-wrap: break-word;" />static function SetIntField (obj : IntPtr, fieldID : IntPtr, val : Int32) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">115、AndroidJNI.SetLongArrayElement 设置长整数数组元素</span><br style="word-wrap: break-word;" />static function SetLongArrayElement (array : IntPtr, index : int, val : Int64) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetLongArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetLongArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">116、AndroidJNI.SetLongField 设置长整数域</span><br style="word-wrap: break-word;" />static function SetLongField (obj : IntPtr, fieldID : IntPtr, val : Int64) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">117、AndroidJNI.SetObjectArrayElement 设置对象数组元素</span><br style="word-wrap: break-word;" />static function SetObjectArrayElement (array : IntPtr, index : int, obj : IntPtr) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets an element of an Object array.<br style="word-wrap: break-word;" />设置一个对象数组的一个元素。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">118、AndroidJNI.SetObjectField 设置对象域</span><br style="word-wrap: break-word;" />static function SetObjectField (obj : IntPtr, fieldID : IntPtr, val : IntPtr) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" />The value to set is a reference to either a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />要设置的值无论是一个java.lang.Object的引用,或者其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">119、AndroidJNI.SetShortArrayElement 设置短整数数组元素</span><br style="word-wrap: break-word;" />static function SetShortArrayElement (array : IntPtr, index : int, val : Int16) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Sets the value of one element in a primitive array.<br style="word-wrap: break-word;" />设置一个基本数组一个元素的值。<br style="word-wrap: break-word;" />This function is a special case of SetShortArrayRegion(), called with region size set to 1.<br style="word-wrap: break-word;" />这个函数是一个特殊情况的SetShortArrayRegion(),就是region大小设置为1时。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">120、AndroidJNI.SetShortField 设置短整数域</span><br style="word-wrap: break-word;" />static function SetShortField (obj : IntPtr, fieldID : IntPtr, val : Int16) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">121、AndroidJNI.SetStaticBooleanField 设置静态布尔域</span><br style="word-wrap: break-word;" />static function SetStaticBooleanField (clazz : IntPtr, fieldID : IntPtr, val : bool) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">122、AndroidJNI.SetStaticByteField 设置静态字节域</span><br style="word-wrap: break-word;" />static function SetStaticByteField (clazz : IntPtr, fieldID : IntPtr, val : Byte) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">123、AndroidJNI.SetStaticCharField 设置静态字符域</span><br style="word-wrap: break-word;" />static function SetStaticCharField (clazz : IntPtr, fieldID : IntPtr, val : Char) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">124、AndroidJNI.SetStaticDoubleField 设置静态双精度浮点数域</span><br style="word-wrap: break-word;" />static function SetStaticDoubleField (clazz : IntPtr, fieldID : IntPtr, val : double) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">125、AndroidJNI.SetStaticFloatField 设置静态浮点数域</span><br style="word-wrap: break-word;" />static function SetStaticFloatField (clazz : IntPtr, fieldID : IntPtr, val : float) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">126、AndroidJNI.SetStaticIntField 设置静态整数域</span><br style="word-wrap: break-word;" />static function SetStaticIntField (clazz : IntPtr, fieldID : IntPtr, val : Int32) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">127、AndroidJNI.SetStaticLongField 设置静态长整数域</span><br style="word-wrap: break-word;" />static function SetStaticLongField (clazz : IntPtr, fieldID : IntPtr, val : Int64) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">128、AndroidJNI.SetStaticObjectField 设置静态对象域</span><br style="word-wrap: break-word;" />static function SetStaticObjectField (clazz : IntPtr, fieldID : IntPtr, val : IntPtr) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" />The value to set is a reference to either a java.lang.Object, or a subclass thereof.<br style="word-wrap: break-word;" />设置该值不管是一个java.lang.Object的引用,或是其子类。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">129、AndroidJNI.SetStaticShortField 设置静态短整数域</span><br style="word-wrap: break-word;" />static function SetStaticShortField (clazz : IntPtr, fieldID : IntPtr, val : Int16) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">130、AndroidJNI.SetStaticStringField 设置静态字符串域</span><br style="word-wrap: break-word;" />static function SetStaticStringField (clazz : IntPtr, fieldID : IntPtr, val : string) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function ets the value of a static field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象的静态域的值。<br style="word-wrap: break-word;" />This is a convenience function that calls SetStaticObjectField() with the same parameters, but performs the necessary marshalling of the string value.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的SetStaticObjectField(),但执行需要字符串的值编组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">131、AndroidJNI.SetStringField 设置字符串域</span><br style="word-wrap: break-word;" />static function SetStringField (obj : IntPtr, fieldID : IntPtr, val : string) : void<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />This function sets the value of an instance (nonstatic) field of an object.<br style="word-wrap: break-word;" />这个函数设置一个对象实例(非静态)域的值。<br style="word-wrap: break-word;" />This is a convenience function that calls SetObjectField() with the same parameters, but performs the necessary marshalling of the string value.<br style="word-wrap: break-word;" />这是一个方便的函数,调用带有相同参数的SetObjectField(),但执行字符串的值需要编组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">132、AndroidJNI.ThrowNew 新的抛出</span><br style="word-wrap: break-word;" />static function ThrowNew (clazz : IntPtr, message : string) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Constructs an exception object from the specified class with the message specified by message and causes that exception to be thrown.<br style="word-wrap: break-word;" />利用指定类的消息(由 message 指定)构造异常对象并抛出该异常。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">133、AndroidJNI.Throw 抛出</span><br style="word-wrap: break-word;" />static function Throw (obj : IntPtr) : int<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Causes a java.lang.Throwable object to be thrown.<br style="word-wrap: break-word;" /><p style="word-wrap: break-word; margin-top: 5px; margin-bottom: 5px; padding-top: 0px; padding-bottom: 0px;">导致一个java.lang.Throwable的对象被抛出。</p><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">134、AndroidJNI.ToBooleanArray 到布尔数组</span><br style="word-wrap: break-word;" />static function ToBooleanArray (array : Boolean[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Boolean to a Java array of boolean.<br style="word-wrap: break-word;" />转换一个System.Boolean的托管数组到一个Java布尔数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">135、AndroidJNI.ToByteArray 到字节数组</span><br style="word-wrap: break-word;" />static function ToByteArray (array : Byte[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Byte to a Java array of byte.<br style="word-wrap: break-word;" />转换一个System.Byte的托管数组到一个Java的字节数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">136、AndroidJNI.ToCharArray 到字符数组</span><br style="word-wrap: break-word;" />static function ToCharArray (array : Char[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Char to a Java array of char.<br style="word-wrap: break-word;" />转换一个System.Char的托管数组到一个Java的字符数组。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">137、AndroidJNI.ToDoubleArray 到双精度浮点数数组</span><br style="word-wrap: break-word;" />static function ToDoubleArray (array : double[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Double to a Java array of double.<br style="word-wrap: break-word;" />转换一个System.Double的托管数组到一个Java的双精度浮点数数组。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">138、AndroidJNI.ToFloatArray 到浮点数数组</span><br style="word-wrap: break-word;" />static function ToFloatArray (array : float[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Single to a Java array of float.<br style="word-wrap: break-word;" />转换一个System.Single的托管数组到一个Java的浮点数数组。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">139、AndroidJNI.ToIntArray 到整数数组</span><br style="word-wrap: break-word;" />static function ToIntArray (array : Int32[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Int32 to a Java array of int.<br style="word-wrap: break-word;" />转换一个System.Int32的托管数组到一个Java的整数数组。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">140、AndroidJNI.ToLongArray 到长整数数组</span><br style="word-wrap: break-word;" />static function ToLongArray (array : Int64[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Int64 to a Java array of long.<br style="word-wrap: break-word;" />转换一个System.Int64的托管数组到一个Java的长整数数组。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">141、AndroidJNI.ToObjectArray 到对象数组</span><br style="word-wrap: break-word;" />static function ToObjectArray (array : IntPtr[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.IntPtr, representing Java objects, to a Java array of java.lang.Object.<br style="word-wrap: break-word;" />转换一个System.IntPtr的托管数组,表示Java对象,到一个Java的java.lang.Object数组。 <br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">142、AndroidJNI.ToReflectedField 到反射的域</span><br style="word-wrap: break-word;" />static function ToReflectedField (clazz : IntPtr, fieldID : IntPtr, isStatic : bool) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Converts a field ID derived from cls to a java.lang.reflect.Field object.<br style="word-wrap: break-word;" />转换一个取自clazz的域ID到一个java.lang.reflect.Field对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">143、AndroidJNI.ToReflectedMethod 到反射的方法</span><br style="word-wrap: break-word;" />static function ToReflectedMethod (clazz : IntPtr, methodID : IntPtr, isStatic : bool) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Converts a method ID derived from clazz to a java.lang.reflect.Method or java.lang.reflect.Constructor object.<br style="word-wrap: break-word;" />转换一个取自clazz的方法ID到一个java.lang.reflect.Method 或 java.lang.reflect.Constructor对象。<br style="word-wrap: break-word;" /><br style="word-wrap: break-word;" /><span style="word-wrap: break-word; color: rgb(255, 0, 0);">144、AndroidJNI.ToShortArray 到短整数数组</span><br style="word-wrap: break-word;" />static function ToShortArray (array : Int16[]) : IntPtr<br style="word-wrap: break-word;" />Description描述<br style="word-wrap: break-word;" />Convert a managed array of System.Int16 to a Java array of short.<br style="word-wrap: break-word;" />转换一个System.Int16的托管数组到一个Java的短整数数组。 <br style="word-wrap: break-word;" /></div><div class="Blog_con2_1 Blog_con3_2" style="word-wrap: break-word; margin-top: 50px; position: relative; line-height: 22px;"><div style="word-wrap: break-word; height: 30px;"><div class="bdsharebuttonbox bdshare-button-style0-16" data-bd-bind="1453712819384" style="word-wrap: break-word; zoom: 1; height: 30px;"><a target=_blank class="bds_more" href="http://blog.chinaunix.net/uid-22028680-id-3429721.html#" data-cmd="more" style="word-wrap: break-word; text-decoration: none; color: rgb(51, 51, 51); float: left; padding-left: 17px; line-height: 16px; height: 16px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=ba7acbd3.png); cursor: pointer; margin: 6px 6px 6px 0px; font-family: 宋体, Arial; background-position: 0px 0px; background-repeat: no-repeat no-repeat;"></a><a target=_blank class="bds_qzone" title="分享到QQ空间" href="http://blog.chinaunix.net/uid-22028680-id-3429721.html#" data-cmd="qzone" style="word-wrap: break-word; text-decoration: none; color: rgb(25, 89, 155); float: left; padding-left: 17px; line-height: 16px; height: 16px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=ba7acbd3.png); cursor: pointer; margin: 6px 6px 6px 0px; font-family: 宋体, Arial; background-position: 0px -52px; background-repeat: no-repeat no-repeat;"></a><a target=_blank class="bds_tsina" title="分享到新浪微博" href="http://blog.chinaunix.net/uid-22028680-id-3429721.html#" data-cmd="tsina" style="word-wrap: break-word; text-decoration: none; color: rgb(25, 89, 155); float: left; padding-left: 17px; line-height: 16px; height: 16px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=ba7acbd3.png); cursor: pointer; margin: 6px 6px 6px 0px; font-family: 宋体, Arial; background-position: 0px -104px; background-repeat: no-repeat no-repeat;"></a><a target=_blank class="bds_tqq" title="分享到腾讯微博" href="http://blog.chinaunix.net/uid-22028680-id-3429721.html#" data-cmd="tqq" style="word-wrap: break-word; text-decoration: none; color: rgb(25, 89, 155); float: left; padding-left: 17px; line-height: 16px; height: 16px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=ba7acbd3.png); cursor: pointer; margin: 6px 6px 6px 0px; font-family: 宋体, Arial; background-position: 0px -260px; background-repeat: no-repeat no-repeat;"></a><a target=_blank class="bds_renren" title="分享到人人网" href="http://blog.chinaunix.net/uid-22028680-id-3429721.html#" data-cmd="renren" style="word-wrap: break-word; text-decoration: none; color: rgb(25, 89, 155); float: left; padding-left: 17px; line-height: 16px; height: 16px; background-image: url(http://bdimg.share.baidu.com/static/api/img/share/icons_0_16.png?v=ba7acbd3.png); cursor: pointer; margin: 6px 6px 6px 0px; font-family: 宋体, Arial; background-position: 0px -208px; background-repeat: no-repeat no-repeat;"></a></div></div></div></div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值