forked from cory/tildefriends
Hook up android version numbers, too.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4331 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.unprompted.tildefriends"
|
||||
versionCode="1"
|
||||
versionName="0.0.4">
|
||||
<uses-sdk android:minSdkVersion="16"/>
|
||||
versionCode="8"
|
||||
versionName="0.0.8">
|
||||
<uses-sdk android:minSdkVersion="26"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<application android:label="Tilde Friends" android:usesCleartextTraffic="true" android:debuggable="true">
|
||||
<meta-data android:name="android.max_aspect" android:value="2.1"/>
|
||||
|
@ -82,6 +82,8 @@ public class MainActivity extends Activity {
|
||||
String port_file_path = getFilesDir().toString() + "/port.txt";
|
||||
base_url = "http://127.0.0.1:12345/";
|
||||
|
||||
MainActivity activity = this;
|
||||
|
||||
new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
@ -98,7 +100,9 @@ public class MainActivity extends Activity {
|
||||
if (event.context().toString().equals("port.txt")) {
|
||||
Log.w("tildefriends", "Observed file write: " + event.context().toString());
|
||||
base_url = "http://127.0.0.1:" + String.valueOf(read_port(port_file_path)) + "/";
|
||||
web_view.loadUrl(base_url);
|
||||
activity.runOnUiThread(() -> {
|
||||
web_view.loadUrl(base_url);
|
||||
});
|
||||
watcher.close();
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user