Commit Graph

16 Commits

Author SHA1 Message Date
Branden Archer
562a2bb164 Initial attempt at pairing with child device with address/port
On some networks or some mDNS implementations child discovery may not
work well. As an alternative, allow a parent to connect to a device
directly with an IP Address and port.
2016-01-01 16:20:24 -05:00
Branden Archer
7cb2138d13 Display IP Address and port of child device
Later, the parent will be able to use this information to pair
with the child device, as an alternative to using mDNS
2016-01-01 16:20:24 -05:00
Branden Archer
a4f8adf7a5 Use a ListView to store discovered child devices
The previous approach was to list buttons in a TableLayout.
However, this approach does not work well if there are more
items than can fit on the screen.

To allow scrolling of items, and also a better presentation
of said items, use a ListView.
2015-12-29 16:19:56 -05:00
Branden Archer
7f604c47ce Prevent child device from sleeping if listening
If the screen turns off, the child device will be unable to
record from the microphone. Keep the screen on in the monitor
activity to keep microphone on.
2015-12-27 20:50:25 -05:00
Branden Archer
2e9ca0de88 Improve listen activity layout with Linear Layout 2015-12-27 16:20:32 -05:00
Branden Archer
dd737c0be5 Improve layout of dicover activity with Linear Layout 2015-12-27 16:20:31 -05:00
Branden Archer
ea29a0f4eb Improve monitor activity with LinearLayout and helper text 2015-12-27 16:20:22 -05:00
Branden Archer
eb1eac8111 Improve start activity layout with LinearLayout and helper text 2015-12-27 15:29:59 -05:00
Branden Archer
eac8bfeed6 Mention name of connected device on ListenActivity 2015-12-26 18:54:56 -05:00
Branden Archer
b1a0044fda Simplify MonitorActivity to only list relevant text in tables 2015-12-26 18:54:09 -05:00
Branden Archer
592c55c156 Simply StartActivity to two buttons 2015-12-26 18:53:29 -05:00
Branden Archer
f2a13c9160 Change terminology to child and parent devices
The "monitor" and "connect to monitor" descriptions may
have been confusing. Changing the terminology to refer to
a child and parent device.
2015-12-26 18:50:01 -05:00
Branden Archer
2e164c0fb2 Add ListenActivity for playing audio from ProtectBabyMonitor services
This activity will eventually receive audio from the MonitorActivity
of another Android device and play it.
2015-12-26 17:51:21 -05:00
Branden Archer
eb9cd75c3a Add DiscoverActivity - lists of baby monitors on the network
This is the stub of the DiscoverActivity, which is responsible for
discovering all available ProtectBabyMonitor services on the
local network.
2015-12-26 17:51:21 -05:00
Branden Archer
11bf3822b6 Add MonitorActivity - for registering on network and sending audio
This commit adds the shell of the MonitorActivity. This activity
will register its service on the local network, wait for a connection,
then send audio data.
2015-12-26 15:49:12 -05:00
Branden Archer
7bd19f2325 Add StartActivity - landing page of baby monitor
The StartActivity is the first activity which will be launched
in the baby monitor, and in the future will list the two main
options: become a monitor or a listener.
2015-12-26 15:48:42 -05:00