Add support for NDN-FCH hub discovery
Change-Id: Iff39ef6667e7b6e69be7ae8205cc387015f44631
Refs: #4028
diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml
index 2fb1d1f..b0d48f1 100644
--- a/app/src/main/res/layout/fragment_main.xml
+++ b/app/src/main/res/layout/fragment_main.xml
@@ -26,6 +26,18 @@
android:text="@string/checking_on_nfd"
/>
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="5dp"/>
+
+ <Switch
+ android:id="@+id/connect_nearest_hub_switch"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:text="@string/connect_nearest_hub_automatically"
+ />
+
<LinearLayout android:id="@+id/status_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 5aa76b3..47032af 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -107,6 +107,9 @@
<string name="face_add_dialog_create_face">Create face</string>
<string name="route_add_dialog_create_route">Create route</string>
+ <string name="connect_nearest_hub_automatically">Connect to the nearest hub automatically</string>
+ <string name="ndn_fch_website">http://ndn-fch.named-data.net/</string>
+ <string name="fragment_route_list_toast_cannot_connect_hub">Cannot connect to the nearest hub</string>
<string name="fragment_route_details_title">Route Details</string>
<string name="fragment_route_details_next_hops">List of next hops</string>
<string name="fragment_route_route_name_title">Route Name</string>