Enable tracking service on main activity

This commit is contained in:
2020-05-08 21:42:06 +02:00
parent 4375eacf47
commit bb0a2a94ed
6 changed files with 46 additions and 58 deletions

View File

@@ -12,32 +12,13 @@
android:layout_height="wrap_content"
android:orientation="horizontal">
<EditText
android:id="@+id/port"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:hint="@string/main_activity_server_port"
android:inputType="number"
android:text="8080" />
<Button
android:id="@+id/run"
android:id="@+id/control_server_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:onClick="startServer"
android:onClick="controlServer"
android:text="@string/main_activity_run" />
<Button
android:id="@+id/stop"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="2"
android:onClick="stopServer"
android:text="@string/main_activity_stop" />
</LinearLayout>
<Button

View File

@@ -5,9 +5,6 @@
<string name="service_notification_title">Server is running</string>
<string name="service_notification_text">The HTTP server is listening on port %1$d</string>
<string name="server_toast_service_started">TTS-HTTP Server started</string>
<string name="server_toast_service_stopped">TTS-HTTP Server stopped</string>
<string name="main_activity_server_port">Server port</string>
<string name="main_activity_run">Run</string>
<string name="main_activity_stop">Stop</string>