FileDocCategorySizeDatePackage
JNITest.javaAPI DocAndroid 1.5 API1352Wed May 06 22:41:54 BST 2009android.debug

JNITest

public class JNITest extends Object
Simple JNI verification test.

Fields Summary
Constructors Summary
public JNITest()

    
Methods Summary
private native intpart1(int intArg, double doubleArg, java.lang.String stringArg, int[] arrayArg)

private intpart2(double doubleArg, int fromArray, java.lang.String stringArg)

        int result;

        System.out.println(stringArg + " : " + (float) doubleArg + " : " +
            fromArray);
        result = part3(stringArg);

        return result + 6;
    
private static native intpart3(java.lang.String stringArg)

public inttest(int intArg, double doubleArg, java.lang.String stringArg)

        int[] intArray = { 42, 53, 65, 127 };

        return part1(intArg, doubleArg, stringArg, intArray);