forked from cory/tildefriends
Fixed apps not working most of the time. Ultimately, storing a pointer to the database using JS_NewInt64 was lossy and a bad idea. Also, remove use of JNI since we're only starting tildefriends as its own process now.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4215 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
versionName="0.0.4">
|
||||
<uses-sdk android:minSdkVersion="16"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<application android:label="Tilde Friends" android:usesCleartextTraffic="true">
|
||||
<application android:label="Tilde Friends" android:usesCleartextTraffic="true" android:debuggable="true">
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
@ -53,7 +53,11 @@ public class MainActivity extends Activity {
|
||||
Log.w("tildefriends", e.toString());
|
||||
}
|
||||
|
||||
ProcessBuilder builder = new ProcessBuilder(getFilesDir().toString() + "/tildefriends", "run", "-z", getPackageResourcePath().toString());
|
||||
ProcessBuilder builder = new ProcessBuilder(
|
||||
getFilesDir().toString() + "/tildefriends",
|
||||
"run",
|
||||
"-z",
|
||||
getPackageResourcePath().toString());
|
||||
Log.w("tildefriends", "files = " + getFilesDir().toString());
|
||||
builder.directory(getFilesDir());
|
||||
builder.inheritIO();
|
||||
@ -83,8 +87,4 @@ public class MainActivity extends Activity {
|
||||
|
||||
web.loadUrl("http://127.0.0.1:12345/~core/apps/");
|
||||
}
|
||||
|
||||
static {
|
||||
System.loadLibrary("tildefriends");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user