forked from cory/tildefriends
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:
parent
bdac0c7879
commit
fbb657a85c
@ -68,12 +68,10 @@ public class MainActivity extends Activity {
|
||||
Log.w("tildefriends", e.toString());
|
||||
}
|
||||
|
||||
ProcessBuilder builder = new ProcessBuilder(
|
||||
getFilesDir().toString() + "/tildefriends",
|
||||
"run",
|
||||
"-z",
|
||||
getPackageResourcePath().toString());
|
||||
String exe = getFilesDir().toString() + "/tildefriends";
|
||||
ProcessBuilder builder = new ProcessBuilder(exe, "run", "-z", getPackageResourcePath().toString());
|
||||
Log.w("tildefriends", "files = " + getFilesDir().toString());
|
||||
Log.w("tildefriends", "exe = " + exe);
|
||||
builder.directory(getFilesDir());
|
||||
builder.inheritIO();
|
||||
try {
|
||||
@ -86,9 +84,9 @@ public class MainActivity extends Activity {
|
||||
Thread.sleep(1000);
|
||||
} catch (java.lang.InterruptedException e) {
|
||||
}
|
||||
web_view.getSettings().setJavaScriptEnabled(true);
|
||||
web_view.getSettings().setDatabaseEnabled(true);
|
||||
web_view.getSettings().setDomStorageEnabled(true);
|
||||
web_view.getSettings().setJavaScriptEnabled(true);
|
||||
web_view.getSettings().setDatabaseEnabled(true);
|
||||
web_view.getSettings().setDomStorageEnabled(true);
|
||||
|
||||
web_view.setWebChromeClient(new WebChromeClient() {
|
||||
@Override
|
||||
@ -131,7 +129,6 @@ public class MainActivity extends Activity {
|
||||
|
||||
web_view.loadUrl("http://127.0.0.1:12345/");
|
||||
|
||||
|
||||
Button refresh = (Button)findViewById(R.id.refresh);
|
||||
refresh.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View view) {
|
||||
|
Loading…
Reference in New Issue
Block a user