diff --git a/AirKoality/app/app.iml b/AirKoality/app/app.iml
index e1cae17..60b7707 100644
--- a/AirKoality/app/app.iml
+++ b/AirKoality/app/app.iml
@@ -17,7 +17,8 @@
-
+
+
@@ -92,6 +93,7 @@
+
@@ -102,24 +104,24 @@
-
-
+
+
-
-
+
+
@@ -141,18 +143,22 @@
+
+
+
+
@@ -165,15 +171,19 @@
+
+
+
+
\ No newline at end of file
diff --git a/AirKoality/app/build.gradle b/AirKoality/app/build.gradle
index b781b68..328516d 100644
--- a/AirKoality/app/build.gradle
+++ b/AirKoality/app/build.gradle
@@ -22,13 +22,18 @@ android {
}
}
+
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
+ implementation 'com.android.support:support-media-compat:28.0.0'
implementation 'com.android.support:design:28.0.0'
+ implementation 'com.android.support:support-v4:28.0.0'
+ implementation 'com.google.android.gms:play-services-maps:16.1.0'
+ implementation 'android.arch.persistence.room:runtime:1.1.1'
+ implementation 'com.google.android.gms:play-services-location:16.0.0'
+ annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- implementation 'android.arch.persistence.room:runtime:1.1.1'
- annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
}
diff --git a/AirKoality/app/src/main/AndroidManifest.xml b/AirKoality/app/src/main/AndroidManifest.xml
index 4ed3681..fd63772 100644
--- a/AirKoality/app/src/main/AndroidManifest.xml
+++ b/AirKoality/app/src/main/AndroidManifest.xml
@@ -5,6 +5,7 @@
+
@@ -24,6 +25,8 @@
+
+
{
+ List locations = database.locationDAO().getAll();
+ getActivity().runOnUiThread(() -> {
+ map.clear();
+ for (Location location : locations) {
+ MarkerOptions markerOptions = new MarkerOptions()
+ .title(location.getLocation())
+ .snippet(location.getCity() + ", " + location.getCountry())
+ .position(new LatLng(location.getLatitude(), location.getLongitude()));
+
+ map.addMarker(markerOptions);
+ }
+ });
+ }).start();
+ }
+ }
+
+
+
+
+ @Override
+ public void onMapReady(GoogleMap googleMap) {
+ map = googleMap;
+ map.setOnInfoWindowClickListener(this);
+ enableMyLocation();
+ }
+
+
+ @Override
+ public void onInfoWindowClick(Marker marker) {
+ Intent intent = new Intent(getContext(), MeasurementActivity.class);
+ intent.putExtra("location_name", marker.getTitle());
+ startActivity(intent);
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ mapView.onResume();
+ }
+
+ @Override
+ public void onPause() {
+ super.onPause();
+ mapView.onPause();
+ }
+
+ @Override
+ public void onLowMemory() {
+ super.onLowMemory();
+ mapView.onLowMemory();
+ }
+
+ @Override
+ public void onDestroy() {
+ mapView.onDestroy();
+ super.onDestroy();
}
}
diff --git a/AirKoality/app/src/main/res/drawable/ic_refresh_black_24dp.xml b/AirKoality/app/src/main/res/drawable/ic_refresh_black_24dp.xml
new file mode 100644
index 0000000..2d8b923
--- /dev/null
+++ b/AirKoality/app/src/main/res/drawable/ic_refresh_black_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/AirKoality/app/src/main/res/layout/fragment_map.xml b/AirKoality/app/src/main/res/layout/fragment_map.xml
index 3fb1bcb..1cd4e2d 100644
--- a/AirKoality/app/src/main/res/layout/fragment_map.xml
+++ b/AirKoality/app/src/main/res/layout/fragment_map.xml
@@ -3,13 +3,10 @@
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
-
+
diff --git a/AirKoality/app/src/main/res/menu/main_menue.xml b/AirKoality/app/src/main/res/menu/main_menue.xml
index 0768208..3e69523 100644
--- a/AirKoality/app/src/main/res/menu/main_menue.xml
+++ b/AirKoality/app/src/main/res/menu/main_menue.xml
@@ -6,6 +6,7 @@
+
\ No newline at end of file
diff --git a/AirKoality/app/src/main/res/values/strings.xml b/AirKoality/app/src/main/res/values/strings.xml
index 1085fde..13b6926 100644
--- a/AirKoality/app/src/main/res/values/strings.xml
+++ b/AirKoality/app/src/main/res/values/strings.xml
@@ -7,4 +7,5 @@
City:
Country:
Latest measurements:
+ AIzaSyBQhcmDlyP01yNwTd4RTlatQIAJH3wJHw0
diff --git a/AirKoality/build.gradle b/AirKoality/build.gradle
index 3c23acc..02199bb 100644
--- a/AirKoality/build.gradle
+++ b/AirKoality/build.gradle
@@ -7,7 +7,7 @@ buildscript {
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.3.1'
+ classpath 'com.android.tools.build:gradle:3.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
diff --git a/AirKoality/gradle/wrapper/gradle-wrapper.properties b/AirKoality/gradle/wrapper/gradle-wrapper.properties
index 4382491..29e0e64 100644
--- a/AirKoality/gradle/wrapper/gradle-wrapper.properties
+++ b/AirKoality/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Fri Mar 01 16:44:03 CET 2019
+#Fri May 17 19:19:06 CEST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
diff --git a/README.md b/README.md
index 6d838d1..4c7bdbc 100644
--- a/README.md
+++ b/README.md
@@ -87,4 +87,9 @@ Service wird im Manifest deklariert
Um einen Foregroundservice zu starten muss das innerhalb von 5 Sekunden nach "start Service" (Intent)
-Notifications benötigen immer einen Channel (ab Android O verfügbar)
\ No newline at end of file
+Notifications benötigen immer einen Channel und Channel ID (ab Android O verfügbar)
+
+
+## 17.05.2019 - Online
+
+## 18.05.2019 - Online
\ No newline at end of file