├── .gitattributes ├── .gitignore ├── .idea └── .gitignore ├── LICENSE ├── LICENSE.md ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── ai │ │ └── a2i2 │ │ └── locationtracking │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── ai │ │ │ └── a2i2 │ │ │ └── locationtracking │ │ │ ├── AuditApplication.kt │ │ │ ├── BaseApplication.kt │ │ │ ├── data │ │ │ ├── LocationRepository.kt │ │ │ └── db │ │ │ │ ├── LocationDao.kt │ │ │ │ ├── LocationDatabase.kt │ │ │ │ ├── LocationEntity.kt │ │ │ │ └── LocationTypeConverters.kt │ │ │ ├── receiver │ │ │ └── LocationUpdatesBroadcastReceiver.kt │ │ │ ├── ui │ │ │ ├── LocationRationaleActivity.kt │ │ │ ├── history │ │ │ │ ├── LocationHistoryActivity.kt │ │ │ │ └── LocationHistoryFragment.kt │ │ │ └── main │ │ │ │ └── MainActivity.kt │ │ │ ├── utils │ │ │ ├── BackgroundLocationManager.kt │ │ │ ├── LocationUtils.kt │ │ │ ├── NotificationUtils.kt │ │ │ └── PermissionUtils.kt │ │ │ └── viewmodels │ │ │ ├── LocationHistoryViewModel.kt │ │ │ └── LocationUpdateViewModel.kt │ └── res │ │ ├── drawable │ │ ├── ic_access_denied.xml │ │ ├── ic_map_dark.xml │ │ ├── ic_not_listed_location.xml │ │ └── ic_permissions.xml │ │ ├── layout │ │ ├── activity_location_rationale.xml │ │ ├── activity_main.xml │ │ ├── location_history_activity.xml │ │ └── location_history_fragment.xml │ │ ├── menu │ │ └── main_menu.xml │ │ ├── mipmap-anydpi-v26 │ │ └── ic_launcher.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.png │ │ └── ic_launcher_foreground.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.png │ │ └── ic_launcher_foreground.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.png │ │ └── ic_launcher_foreground.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.png │ │ └── ic_launcher_foreground.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ ├── ic_launcher_background.png │ │ └── ic_launcher_foreground.png │ │ ├── values-night │ │ └── themes.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── themes.xml │ └── test │ └── java │ └── ai │ └── a2i2 │ └── locationtracking │ └── ExampleUnitTest.kt ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── images └── main-screen.png └── settings.gradle /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/LICENSE -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/README.md -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/androidTest/java/ai/a2i2/locationtracking/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/androidTest/java/ai/a2i2/locationtracking/ExampleInstrumentedTest.kt -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/AuditApplication.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/AuditApplication.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/BaseApplication.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/BaseApplication.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/data/LocationRepository.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/data/LocationRepository.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/data/db/LocationDao.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/data/db/LocationDao.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/data/db/LocationDatabase.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/data/db/LocationDatabase.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/data/db/LocationEntity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/data/db/LocationEntity.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/data/db/LocationTypeConverters.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/data/db/LocationTypeConverters.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/receiver/LocationUpdatesBroadcastReceiver.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/receiver/LocationUpdatesBroadcastReceiver.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/ui/LocationRationaleActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/ui/LocationRationaleActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/ui/history/LocationHistoryActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/ui/history/LocationHistoryActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/ui/history/LocationHistoryFragment.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/ui/history/LocationHistoryFragment.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/ui/main/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/ui/main/MainActivity.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/utils/BackgroundLocationManager.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/utils/BackgroundLocationManager.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/utils/LocationUtils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/utils/LocationUtils.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/utils/NotificationUtils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/utils/NotificationUtils.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/utils/PermissionUtils.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/utils/PermissionUtils.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/viewmodels/LocationHistoryViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/viewmodels/LocationHistoryViewModel.kt -------------------------------------------------------------------------------- /app/src/main/java/ai/a2i2/locationtracking/viewmodels/LocationUpdateViewModel.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/java/ai/a2i2/locationtracking/viewmodels/LocationUpdateViewModel.kt -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_access_denied.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/drawable/ic_access_denied.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_map_dark.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/drawable/ic_map_dark.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_not_listed_location.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/drawable/ic_not_listed_location.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_permissions.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/drawable/ic_permissions.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_location_rationale.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/layout/activity_location_rationale.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/location_history_activity.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/layout/location_history_activity.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/location_history_fragment.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/layout/location_history_fragment.xml -------------------------------------------------------------------------------- /app/src/main/res/menu/main_menu.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/menu/main_menu.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/values-night/themes.xml -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/values/dimens.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/themes.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/main/res/values/themes.xml -------------------------------------------------------------------------------- /app/src/test/java/ai/a2i2/locationtracking/ExampleUnitTest.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/app/src/test/java/ai/a2i2/locationtracking/ExampleUnitTest.kt -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/gradlew.bat -------------------------------------------------------------------------------- /images/main-screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/images/main-screen.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joostfunkekupper/background-location-sample-ktx/HEAD/settings.gradle --------------------------------------------------------------------------------