From c032e9f6422e60f9e47869b40b81abe4568fdb2e Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Fri, 1 Jan 2016 16:58:53 -0500 Subject: [PATCH] Allow parent device to pair to child via IP Address and port If mDNS fails to locate the child device, allow the parent device to enter an IP address and port to connect. --- NEWS | 3 + res/layout/activity_discover.xml | 88 +++++-------------- res/layout/activity_discover_address.xml | 83 +++++++++++++++++ res/layout/activity_discover_mdns.xml | 41 +++++++++ res/values/strings.xml | 7 +- src/protect/babymonitor/DiscoverActivity.java | 47 +++++++++- 6 files changed, 200 insertions(+), 69 deletions(-) create mode 100644 res/layout/activity_discover_address.xml create mode 100644 res/layout/activity_discover_mdns.xml diff --git a/NEWS b/NEWS index 4b2064c..c4b0622 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,9 @@ In development: * Improve and simplify audio playback to reduce dropped audio samples + * A parent device may pair with a child device by entering + the child's IP address and port. + Mon Dec 28, 2015: Release 0.1 diff --git a/res/layout/activity_discover.xml b/res/layout/activity_discover.xml index 2a2806b..03fa076 100644 --- a/res/layout/activity_discover.xml +++ b/res/layout/activity_discover.xml @@ -22,78 +22,38 @@ android:layout_width="match_parent" android:layout_height="15dip" /> - + android:text="@string/discoverChild" + android:textSize="17sp" /> + + - - - - - - - - - - + android:layout_width="match_parent" + android:layout_height="15dip" />