Add permanent face and route management memchanism

Change-Id: I23e77358e89c49473445994b8bd0c2c425d0e1b0
Refs: #3443
diff --git a/app/src/main/res/layout/dialog_create_face.xml b/app/src/main/res/layout/dialog_create_face.xml
index 02d40a6..516c25a 100644
--- a/app/src/main/res/layout/dialog_create_face.xml
+++ b/app/src/main/res/layout/dialog_create_face.xml
@@ -9,7 +9,7 @@
         android:layout_height="wrap_content"
         style="@style/default_dialog_margin"
         android:textAppearance="?android:attr/textAppearanceMedium"
-        android:text="Enter FaceUri for the remote NDN daemon"
+        android:text="@string/dialog_add_face_edit_title"
         android:layout_gravity="center_horizontal"/>
 
     <EditText
@@ -17,7 +17,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         style="@style/default_dialog_margin"
-        android:hint="Face URI"
+        android:hint="@string/dialog_add_route_edit_face_uri_hint"
         android:inputType="text"
         android:focusable="true"
         android:focusableInTouchMode="true"
@@ -25,4 +25,12 @@
         <requestFocus />
      </EditText>
 
+    <CheckBox
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="@string/dialog_add_route_or_face_as_permanent"
+        android:id="@+id/permanent"
+        android:layout_gravity="center_horizontal"
+        android:checked="false" />
+
 </LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/layout/dialog_create_route.xml b/app/src/main/res/layout/dialog_create_route.xml
index 67c7677..5d8630d 100644
--- a/app/src/main/res/layout/dialog_create_route.xml
+++ b/app/src/main/res/layout/dialog_create_route.xml
@@ -9,7 +9,7 @@
         android:layout_height="wrap_content"
         style="@style/default_dialog_margin"
         android:textAppearance="?android:attr/textAppearanceMedium"
-        android:text="Enter prefix and FaceUri to register with NDN daemon"
+        android:text="@string/dialog_add_route_edit_title"
         android:layout_gravity="center_horizontal"/>
 
     <EditText
@@ -17,7 +17,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         style="@style/default_dialog_margin"
-        android:hint="Prefix"
+        android:hint="@string/dialog_add_route_edit_prefix_hint"
         android:inputType="text"
         android:focusable="true"
         android:focusableInTouchMode="true"
@@ -30,11 +30,18 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         style="@style/default_dialog_margin"
-        android:hint="Face URI"
+        android:hint="@string/dialog_add_route_edit_face_uri_hint"
         android:inputType="text"
         android:focusable="true"
         android:focusableInTouchMode="true"
         android:selectAllOnFocus="true">
      </EditText>
 
+    <CheckBox
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="@string/dialog_add_route_or_face_as_permanent"
+        android:id="@+id/permanent"
+        android:layout_gravity="center_horizontal" />
+
 </LinearLayout>
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index d25909a..ff141d1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -31,10 +31,15 @@
     <string name="route_list_list_of_routes_title">List of Routes</string>
     <string name="route_list_refresh_route_list">Refresh Route List</string>
     <string name="route_list_add_route">Add Route</string>
+    <string name="dialog_add_route_edit_title">Enter prefix and FaceUri to register with NDN daemon</string>
+    <string name="dialog_add_route_edit_prefix_hint">Prefix</string>
+    <string name="dialog_add_route_edit_face_uri_hint">Face URI</string>
+    <string name="dialog_add_route_or_face_as_permanent">Keep it permanent</string>
     <string name="face_list_actions_title">Face List Actions</string>
     <string name="face_list_refresh_face_list">Refresh Face List</string>
-    <string name="face_list_add_face">Add Face</string>
     <string name="face_list_list_of_faces_title">List of Faces</string>
+    <string name="face_list_add_face">Add Face</string>
+    <string name="dialog_add_face_edit_title">Enter FaceUri for the remote NDN daemon</string>
     <string name="fragment_face_details_title">Face Details</string>
     <string name="menu_item_delete_face_item">Delete</string>
     <string name="expire_never">Never</string>