diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index f4ed822..a666bab 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -29,6 +29,11 @@
android:label="@string/app_name"
android:parentActivityName="protect.babymonitor.StartActivity"
/>
+
diff --git a/res/layout/activity_discover.xml b/res/layout/activity_discover.xml
new file mode 100644
index 0000000..44bc30f
--- /dev/null
+++ b/res/layout/activity_discover.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/protect/babymonitor/DiscoverActivity.java b/src/protect/babymonitor/DiscoverActivity.java
new file mode 100644
index 0000000..5d37725
--- /dev/null
+++ b/src/protect/babymonitor/DiscoverActivity.java
@@ -0,0 +1,43 @@
+/**
+ * This file is part of the Protect Baby Monitor.
+ *
+ * Protect Baby Monitor is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Protect Baby Monitor is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Protect Baby Monitor. If not, see .
+ */
+package protect.babymonitor;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.util.Log;
+
+public class DiscoverActivity extends Activity
+{
+ final String TAG = "BabyMonitor";
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState)
+ {
+ Log.i(TAG, "Baby monitor start");
+
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_discover);
+ }
+
+ @Override
+ protected void onDestroy()
+ {
+ Log.i(TAG, "Baby monitoring stop");
+
+ super.onDestroy();
+ }
+}
diff --git a/src/protect/babymonitor/StartActivity.java b/src/protect/babymonitor/StartActivity.java
index 209750b..9a5eef2 100644
--- a/src/protect/babymonitor/StartActivity.java
+++ b/src/protect/babymonitor/StartActivity.java
@@ -47,5 +47,18 @@ public class StartActivity extends Activity
startActivity(i);
}
});
+
+ final Button connectButton = (Button) findViewById(R.id.connectMonitorButton);
+ connectButton.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v)
+ {
+ Log.i(TAG, "Starting connection activity");
+
+ Intent i = new Intent(getApplicationContext(), DiscoverActivity.class);
+ startActivity(i);
+ }
+ });
}
}