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());
|
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 {
|
||||||
@ -86,9 +84,9 @@ public class MainActivity extends Activity {
|
|||||||
Thread.sleep(1000);
|
Thread.sleep(1000);
|
||||||
} catch (java.lang.InterruptedException e) {
|
} catch (java.lang.InterruptedException e) {
|
||||||
}
|
}
|
||||||
web_view.getSettings().setJavaScriptEnabled(true);
|
web_view.getSettings().setJavaScriptEnabled(true);
|
||||||
web_view.getSettings().setDatabaseEnabled(true);
|
web_view.getSettings().setDatabaseEnabled(true);
|
||||||
web_view.getSettings().setDomStorageEnabled(true);
|
web_view.getSettings().setDomStorageEnabled(true);
|
||||||
|
|
||||||
web_view.setWebChromeClient(new WebChromeClient() {
|
web_view.setWebChromeClient(new WebChromeClient() {
|
||||||
@Override
|
@Override
|
||||||
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user