Replace all printfs with tf_printf, which redirects to android logging. Change into the files directory so that sqlite can do its thing. Getting closer.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4203 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-03-07 17:50:17 +00:00
parent 1c10768aa4
commit 61ff466908
16 changed files with 240 additions and 186 deletions

View File

@ -1,6 +1,7 @@
package com.unprompted.tildefriends;
import android.app.Activity;
import android.util.Log;
import android.os.Bundle;
import android.widget.TextView;
@ -10,10 +11,13 @@ public class MainActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView text = (TextView)findViewById(R.id.my_text);
Log.w("tildefriends", String.format("external files dir is %s", getFilesDir().toString()));
setFilesPath(getFilesDir().toString());
text.setText(getMessage());
}
public native String getMessage();
public native void setFilesPath(String path);
static {
System.loadLibrary("tildefriends");