Ugg, no actual change but I had to touch everything to get it working in the emulator again.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4231 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2023-03-17 23:48:54 +00:00
parent bdac0c7879
commit fbb657a85c

View File

@ -68,12 +68,10 @@ public class MainActivity extends Activity {
Log.w("tildefriends", e.toString()); Log.w("tildefriends", e.toString());
} }
ProcessBuilder builder = new ProcessBuilder( String exe = getFilesDir().toString() + "/tildefriends";
getFilesDir().toString() + "/tildefriends", ProcessBuilder builder = new ProcessBuilder(exe, "run", "-z", getPackageResourcePath().toString());
"run",
"-z",
getPackageResourcePath().toString());
Log.w("tildefriends", "files = " + getFilesDir().toString()); Log.w("tildefriends", "files = " + getFilesDir().toString());
Log.w("tildefriends", "exe = " + exe);
builder.directory(getFilesDir()); builder.directory(getFilesDir());
builder.inheritIO(); builder.inheritIO();
try { try {
@ -131,7 +129,6 @@ public class MainActivity extends Activity {
web_view.loadUrl("http://127.0.0.1:12345/"); web_view.loadUrl("http://127.0.0.1:12345/");
Button refresh = (Button)findViewById(R.id.refresh); Button refresh = (Button)findViewById(R.id.refresh);
refresh.setOnClickListener(new View.OnClickListener() { refresh.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) { public void onClick(View view) {