Use statically assigned IP for the VM
Ideally, we will use mDNS to resolve the IP address of the Debian OS VM.
However, currently, mDNS doesn't seem to work on tethered network.
Until then, let's statically assign IP to the VM. The assumption here is
that no multiple VMs with network access exist, which is a valid
assumption at least for now.
The Terminal app now doesn't wait to the message from the guest agent.
Instead, it waits for the static IP to become reachable, and also
retries when the terminal service fails to load.
In addition, the WebView is invisible in the beginning and becomes
visible only after the page is fully loaded.
Bug: N/A
Test: run the app.
Change-Id: Ibf084a9c6e15835394bf404ed1ddbcbd1e3b463c
diff --git a/android/TerminalApp/res/values/strings.xml b/android/TerminalApp/res/values/strings.xml
index c3a3348..821a2ef 100644
--- a/android/TerminalApp/res/values/strings.xml
+++ b/android/TerminalApp/res/values/strings.xml
@@ -17,9 +17,9 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name">Terminal</string>
- <string name="vm_creation_message">Virtual machine is booting. Please wait.</string>
- <string name="vm_stop_message">Virtual machine is stopped. Exiting.</string>
- <string name="vm_error_message">Virtual machine crashed. Exiting.</string>
+ <string name="vm_creation_message">Preparing terminal.</string>
+ <string name="vm_stop_message">Stopping terminal.</string>
+ <string name="vm_error_message">Terminal crashed.</string>
<string name="settings_disk_resize_title">Disk Resize</string>
<string name="settings_disk_resize_sub_title">Resize / Rootfs</string>