diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 8f3b8bc..bbf726b 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -23,11 +23,11 @@
android:label="@string/title_activity_startup"
android:launchMode="singleInstance"
android:theme="@style/AppTheme.NoActionBar">
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/BaseActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/BaseActivity.java
index ae60de9..b68740e 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/BaseActivity.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/BaseActivity.java
@@ -20,7 +20,7 @@ public abstract class BaseActivity
super.onCreate(savedInstanceState);
setContentView(getContentViewId());
- navigationView = (BottomNavigationView) findViewById(R.id.navigation);
+ navigationView = findViewById(R.id.navigation);
navigationView.setOnNavigationItemSelectedListener(this);
}
diff --git a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java
index b7ac239..ff13d96 100644
--- a/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java
+++ b/app/src/main/java/com/uam/wmi/findmytutor/activity/MapActivity.java
@@ -1,8 +1,70 @@
package com.uam.wmi.findmytutor.activity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+
+import com.mapbox.mapboxsdk.Mapbox;
+import com.mapbox.mapboxsdk.maps.MapView;
import com.uam.wmi.findmytutor.R;
+import static com.mapbox.mapboxsdk.Mapbox.getApplicationContext;
+
+
public class MapActivity extends BaseActivity {
+ private MapView mapView;
+ String tag = "LifeCycleEvents";
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ Mapbox.getInstance(this, getString(R.string.access_token));
+ mapView = findViewById(R.id.mapView);
+ mapView.onCreate(savedInstanceState);
+ }
+
+
+ @Override
+ public void onStart()
+ {
+ super.onStart();
+ mapView.onStart();
+ Log.d(tag, "In the onStart() event");
+ }
+ @Override
+ public void onRestart()
+ {
+ super.onRestart();
+ Log.d(tag, "In the onRestart() event");
+ }
+ @Override
+
+ public void onResume()
+ {
+ super.onResume();
+ mapView.onResume();
+ Log.d(tag, "In the onResume() event");
+ }
+ @Override
+ public void onPause()
+ {
+ super.onPause();
+ mapView.onPause();
+ Log.d(tag, "In the onPause() event");
+ }
+ @Override
+ public void onStop()
+ {
+ super.onStop();
+ mapView.onStop();
+ Log.d(tag, "In the onStop() event");
+ }
+
+ @Override
+ protected void onSaveInstanceState(Bundle outState) {
+ super.onSaveInstanceState(outState);
+ mapView.onSaveInstanceState(outState);
+ }
@Override
protected int getContentViewId() {
diff --git a/app/src/main/res/layout/activity_map.xml b/app/src/main/res/layout/activity_map.xml
index a4f7163..7af4e8e 100644
--- a/app/src/main/res/layout/activity_map.xml
+++ b/app/src/main/res/layout/activity_map.xml
@@ -1,17 +1,31 @@
+
+
+
+
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_notifications.xml b/app/src/main/res/layout/activity_notifications.xml
index 7bfe5a9..4020763 100644
--- a/app/src/main/res/layout/activity_notifications.xml
+++ b/app/src/main/res/layout/activity_notifications.xml
@@ -12,6 +12,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- />
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_profile.xml b/app/src/main/res/layout/activity_profile.xml
index f17c373..49b6e9b 100644
--- a/app/src/main/res/layout/activity_profile.xml
+++ b/app/src/main/res/layout/activity_profile.xml
@@ -12,6 +12,6 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- />
+ app:layout_constraintBottom_toBottomOf="parent" />
\ No newline at end of file