Enable tracking service on main activity
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user