├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_car.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_car.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_car.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_car.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_car.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-hdpi-v11 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-hdpi-v9 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-mdpi-v11 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-mdpi-v9 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xhdpi-v9 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xxhdpi │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xhdpi-v11 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xxhdpi-v11 │ │ │ │ └── ic_trans_notifi.png │ │ │ ├── drawable-xxhdpi-v9 │ │ │ │ └── ic_trans_notifi.png │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── ic_car-web.png │ │ ├── java │ │ │ └── com │ │ │ │ └── marty │ │ │ │ └── track │ │ │ │ ├── BroadcastLocationChange.java │ │ │ │ ├── ConnectionDetector.java │ │ │ │ ├── UploadLocationService.java │ │ │ │ ├── ServiceCall.java │ │ │ │ ├── LocationJobService.java │ │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── marty │ │ │ └── track │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── marty │ │ └── track │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── settings.gradle ├── bgservice.jpeg ├── mainpage.jpeg ├── notification.jpeg ├── gradle └── wrapper │ └── gradle-wrapper.properties ├── .idea ├── libraries │ ├── android_android_27.xml │ ├── Gradle__android_android_27.xml │ ├── com_google_code_findbugs_jsr305_2_0_1_jar.xml │ ├── Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml │ ├── com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml │ ├── Gradle__com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml │ ├── com_android_support_support_v4_25_2_0.xml │ ├── junit_junit_4_12_jar.xml │ ├── Gradle__com_android_support_support_v4_25_2_0.xml │ ├── Gradle__junit_junit_4_12_jar.xml │ ├── com_google_android_gms_play_services_base_11_0_1.xml │ ├── com_google_android_gms_play_services_maps_11_0_1.xml │ ├── com_google_android_gms_play_services_tasks_11_0_1.xml │ ├── com_android_support_constraint_constraint_layout_1_0_2.xml │ ├── Gradle__com_google_android_gms_play_services_base_11_0_1.xml │ ├── Gradle__com_google_android_gms_play_services_maps_11_0_1.xml │ ├── com_google_android_gms_play_services_basement_11_0_1.xml │ ├── com_google_android_gms_play_services_location_11_0_1.xml │ ├── javax_inject_javax_inject_1_jar.xml │ ├── Gradle__com_android_support_constraint_constraint_layout_1_0_2.xml │ ├── Gradle__com_google_android_gms_play_services_tasks_11_0_1.xml │ ├── android_arch_core_common_1_0_0_jar.xml │ ├── com_squareup_javawriter_2_1_1_jar.xml │ ├── Gradle__com_google_android_gms_play_services_basement_11_0_1.xml │ ├── Gradle__com_google_android_gms_play_services_location_11_0_1.xml │ ├── Gradle__javax_inject_javax_inject_1_jar.xml │ ├── org_hamcrest_hamcrest_core_1_3_jar.xml │ ├── Gradle__android_arch_core_common_1_0_0_jar.xml │ ├── Gradle__com_squareup_javawriter_2_1_1_jar.xml │ ├── android_arch_lifecycle_common_1_0_3_jar.xml │ ├── Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml │ ├── org_hamcrest_hamcrest_library_1_3_jar.xml │ ├── Gradle__android_arch_lifecycle_common_1_0_3_jar.xml │ ├── Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml │ ├── org_hamcrest_hamcrest_integration_1_3_jar.xml │ ├── Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml │ ├── javax_annotation_javax_annotation_api_1_2_jar.xml │ ├── Gradle__javax_annotation_javax_annotation_api_1_2_jar.xml │ ├── com_android_support_support_annotations_27_0_2_jar.xml │ ├── Gradle__com_android_support_support_annotations_27_0_2_jar.xml │ ├── android_arch_lifecycle_runtime_1_0_3.xml │ ├── Gradle__android_arch_lifecycle_runtime_1_0_3.xml │ ├── com_android_support_appcompat_v7_27_0_2.xml │ ├── com_android_support_support_compat_27_0_2.xml │ ├── Gradle__com_android_support_appcompat_v7_27_0_2.xml │ ├── com_android_support_support_core_ui_27_0_2.xml │ ├── com_android_support_support_fragment_27_0_2.xml │ ├── Gradle__com_android_support_support_compat_27_0_2.xml │ ├── Gradle__com_android_support_support_core_ui_27_0_2.xml │ ├── com_android_support_support_core_utils_27_0_2.xml │ ├── Gradle__com_android_support_support_fragment_27_0_2.xml │ ├── Gradle__com_android_support_support_core_utils_27_0_2.xml │ ├── com_android_support_support_vector_drawable_27_0_2.xml │ ├── com_android_support_animated_vector_drawable_27_0_2.xml │ ├── Gradle__com_android_support_support_vector_drawable_27_0_2.xml │ ├── Gradle__com_android_support_animated_vector_drawable_27_0_2.xml │ ├── com_android_support_test_rules_0_5.xml │ ├── com_android_support_test_runner_0_5.xml │ ├── Gradle__com_android_support_test_rules_0_5.xml │ ├── Gradle__com_android_support_test_runner_0_5.xml │ ├── com_android_support_test_espresso_espresso_core_2_2_2.xml │ ├── com_android_support_support_media_compat_25_2_0.xml │ ├── Gradle__com_android_support_test_espresso_espresso_core_2_2_2.xml │ ├── Gradle__com_android_support_support_media_compat_25_2_0.xml │ ├── com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml │ ├── Gradle__com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml │ ├── com_android_support_test_exposed_instrumentation_api_publish_0_5.xml │ └── Gradle__com_android_support_test_exposed_instrumentation_api_publish_0_5.xml └── codeStyles │ └── Project.xml ├── local.properties ├── gradle.properties ├── tracking-location-provider-android.iml └── README.md /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /bgservice.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/bgservice.jpeg -------------------------------------------------------------------------------- /mainpage.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/mainpage.jpeg -------------------------------------------------------------------------------- /notification.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/notification.jpeg -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Track Demo 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/ic_car-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/ic_car-web.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-hdpi/ic_car.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-mdpi/ic_car.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xhdpi/ic_car.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_car.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_car.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-hdpi/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-mdpi/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xhdpi/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi-v11/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-hdpi-v11/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi-v9/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-hdpi-v9/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi-v11/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-mdpi-v11/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi-v9/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-mdpi-v9/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi-v9/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xhdpi-v9/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xxhdpi/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi-v11/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xhdpi-v11/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi-v11/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xxhdpi-v11/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi-v9/ic_trans_notifi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinraj/tracking-location-provider-android/HEAD/app/src/main/res/drawable-xxhdpi-v9/ic_trans_notifi.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jul 31 12:25:15 IST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 7 | -------------------------------------------------------------------------------- /.idea/libraries/android_android_27.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_android_27.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/com/marty/track/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.marty.track; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Sun Jan 21 02:08:51 IST 2018 11 | sdk.dir=C\:\\Users\\lenovo\\AppData\\Local\\Android\\Sdk 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_v4_25_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/marty/track/BroadcastLocationChange.java: -------------------------------------------------------------------------------- 1 | package com.marty.track; 2 | 3 | import android.app.IntentService; 4 | import android.content.Intent; 5 | import android.support.annotation.Nullable; 6 | 7 | /** 8 | * Created by Marty on 11/25/2017. 9 | */ 10 | 11 | class BroadcastLocationChange extends IntentService{ 12 | 13 | public BroadcastLocationChange(String name) { 14 | super(name); 15 | } 16 | 17 | @Override 18 | protected void onHandleIntent(@Nullable Intent intent) { 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_v4_25_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__junit_junit_4_12_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_android_gms_play_services_base_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_android_gms_play_services_maps_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_android_gms_play_services_tasks_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_constraint_constraint_layout_1_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_gms_play_services_base_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_gms_play_services_maps_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_android_gms_play_services_basement_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/com_google_android_gms_play_services_location_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_constraint_constraint_layout_1_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/android_arch_core_common_1_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_gms_play_services_basement_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_google_android_gms_play_services_location_11_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__javax_inject_javax_inject_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_core_common_1_0_0_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_squareup_javawriter_2_1_1_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/android_arch_lifecycle_common_1_0_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_common_1_0_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/javax_annotation_javax_annotation_api_1_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__javax_annotation_javax_annotation_api_1_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_annotations_27_0_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_annotations_27_0_2_jar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/libraries/android_arch_lifecycle_runtime_1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_appcompat_v7_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_compat_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_appcompat_v7_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_core_ui_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_fragment_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_compat_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_core_ui_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_core_utils_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_fragment_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_core_utils_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_vector_drawable_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_animated_vector_drawable_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_vector_drawable_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_animated_vector_drawable_27_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_test_rules_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_test_runner_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_rules_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_runner_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/marty/track/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.marty.track; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.marty.track", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_test_espresso_espresso_core_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_support_media_compat_25_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_espresso_espresso_core_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_support_media_compat_25_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in M:\android\studiosdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /app/src/main/java/com/marty/track/ConnectionDetector.java: -------------------------------------------------------------------------------- 1 | package com.marty.track; 2 | 3 | /** 4 | * Created by Marty on 8/25/2015. 5 | */ 6 | import android.content.Context; 7 | import android.net.ConnectivityManager; 8 | import android.net.NetworkInfo; 9 | 10 | public class ConnectionDetector { 11 | 12 | private Context _context; 13 | 14 | public ConnectionDetector(Context context){ 15 | this._context = context; 16 | } 17 | 18 | public boolean isConnectingToInternet(){ 19 | ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE); 20 | if (connectivity != null) 21 | { 22 | NetworkInfo networkInfo = connectivity.getActiveNetworkInfo(); 23 | if (networkInfo != null && networkInfo.isConnected()) { 24 | // Network is present and connected 25 | return true; 26 | }else{ 27 | return false; 28 | } 29 | } 30 | return false; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_espresso_espresso_idling_resource_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/com_android_support_test_exposed_instrumentation_api_publish_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.idea/libraries/Gradle__com_android_support_test_exposed_instrumentation_api_publish_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 27 5 | buildToolsVersion "27.0.1" 6 | defaultConfig { 7 | applicationId "com.marty.track" 8 | minSdkVersion 19 9 | targetSdkVersion 27 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 25 | exclude group: 'com.android.support', module: 'support-annotations' 26 | }) 27 | compile 'com.android.support:appcompat-v7:27.0.2' 28 | compile 'com.android.support.constraint:constraint-layout:1.0.2' 29 | compile 'com.google.android.gms:play-services-location:11.0.1' 30 | compile 'com.google.android.gms:play-services-maps:11.0.1' 31 | testCompile 'junit:junit:4.12' 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |