FileDocCategorySizeDatePackage
JNIExample.javaAPI DocAndroid 1.5 API635Wed May 06 22:41:08 BST 2009com.example.jniexample

JNIExample

public class JNIExample extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)
Called when the activity is first created.

        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        int sum = Native.add(2, 3);
        tv.setText("Native Code test: 2 + 3 = " + Integer.toString(sum));
        setContentView(tv);