forked from cory/tildefriends
Make a JNI call.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4200 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -10,6 +10,12 @@ public class MainActivity extends Activity {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
TextView text = (TextView)findViewById(R.id.my_text);
|
||||
text.setText("Hello, world!");
|
||||
text.setText(getMessage());
|
||||
}
|
||||
|
||||
public native String getMessage();
|
||||
|
||||
static {
|
||||
System.loadLibrary("tildefriends");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user