FileDocCategorySizeDatePackage
SimpleJNI.javaAPI DocAndroid 1.5 API1360Wed May 06 22:41:08 BST 2009com.example.android.simplejni

SimpleJNI

public class SimpleJNI 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("2 + 3 = " + Integer.toString(sum));
        setContentView(tv);