summaryrefslogtreecommitdiff
path: root/src/tk/oxore/NativeArmv6/DummyAct.java
blob: 91b5ebf05fab0ecfea91b393f8e78ddd71b18d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package tk.oxore.NativeArmv6;

import android.util.Log;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class DummyAct extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        TextView tv = (TextView) findViewById(R.id.sample_text);
        try {
          tv.append(helloJni());
        } catch (Exception e) {
          Log.e("AAAAAAAAAAAAAAA", "a");
        }
    }

    static {
      System.loadLibrary("hello-jni");
    }
    public native String helloJni();
}