├── README.md ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_menu_del.png │ │ │ │ ├── ic_menu_edit.png │ │ │ │ ├── ic_action_add.png │ │ │ │ ├── ic_action_clock.png │ │ │ │ ├── ic_action_date.png │ │ │ │ ├── ic_action_map.png │ │ │ │ ├── ic_action_range.png │ │ │ │ ├── ic_action_notify.png │ │ │ │ ├── ic_action_location.png │ │ │ │ └── ic_drawable_marker.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_menu_del.png │ │ │ │ ├── ic_menu_edit.png │ │ │ │ ├── ic_action_add.png │ │ │ │ ├── ic_action_clock.png │ │ │ │ ├── ic_action_date.png │ │ │ │ ├── ic_action_map.png │ │ │ │ ├── ic_action_range.png │ │ │ │ ├── ic_action_notify.png │ │ │ │ ├── ic_action_location.png │ │ │ │ └── ic_drawable_marker.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_menu_del.png │ │ │ │ ├── ic_action_add.png │ │ │ │ ├── ic_action_date.png │ │ │ │ ├── ic_action_map.png │ │ │ │ ├── ic_menu_edit.png │ │ │ │ ├── ic_action_clock.png │ │ │ │ ├── ic_action_notify.png │ │ │ │ ├── ic_action_range.png │ │ │ │ ├── ic_action_location.png │ │ │ │ └── ic_drawable_marker.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_action_add.png │ │ │ │ ├── ic_action_map.png │ │ │ │ ├── ic_menu_del.png │ │ │ │ ├── ic_menu_edit.png │ │ │ │ ├── ic_action_clock.png │ │ │ │ ├── ic_action_date.png │ │ │ │ ├── ic_action_range.png │ │ │ │ ├── ic_action_location.png │ │ │ │ ├── ic_action_notify.png │ │ │ │ └── ic_drawable_marker.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── layout │ │ │ │ ├── activity_date_time.xml │ │ │ │ ├── content_main.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── task_item.xml │ │ │ │ ├── activity_maps.xml │ │ │ │ └── activity_add_item.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── drawable │ │ │ │ └── ic_launcher_background.xml │ │ ├── ic_launcher_done-web.png │ │ ├── java │ │ │ └── chhabra │ │ │ │ └── shriya │ │ │ │ └── mytasks │ │ │ │ ├── db │ │ │ │ ├── Consts.java │ │ │ │ ├── TaskDatabaseHelper.java │ │ │ │ └── Tables │ │ │ │ │ └── TaskTable.java │ │ │ │ ├── Services │ │ │ │ └── MyService.java │ │ │ │ ├── Models │ │ │ │ └── Task.java │ │ │ │ ├── MainActivity.java │ │ │ │ ├── Adapters │ │ │ │ ├── EmptyRecyclerView.java │ │ │ │ └── TaskRecyclerAdapter.java │ │ │ │ ├── MapsActivity.java │ │ │ │ └── AddItemActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── chhabra │ │ │ └── shriya │ │ │ └── mytasks │ │ │ └── ExampleUnitTest.java │ ├── release │ │ └── res │ │ │ └── values │ │ │ └── google_maps_api.xml │ ├── androidTest │ │ └── java │ │ │ └── chhabra │ │ │ └── shriya │ │ │ └── mytasks │ │ │ └── ExampleInstrumentedTest.java │ └── debug │ │ └── res │ │ └── values │ │ └── google_maps_api.xml ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew.bat └── gradlew /README.md: -------------------------------------------------------------------------------- 1 | "# myTasks" 2 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/ic_launcher_done-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/ic_launcher_done-web.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_menu_del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_menu_del.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_menu_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_menu_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_menu_del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_menu_del.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_menu_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_menu_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_menu_del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_menu_del.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_add.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_clock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_date.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_map.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_range.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_range.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_add.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_clock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_date.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_map.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_range.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_range.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_add.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_date.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_map.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_menu_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_menu_edit.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_add.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_map.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_menu_del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_menu_del.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_menu_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_menu_edit.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/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/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_notify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_notify.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_notify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_notify.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_clock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_notify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_notify.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_range.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_range.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_clock.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_date.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_range.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_range.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_action_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_drawable_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-hdpi/ic_drawable_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_action_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_drawable_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-mdpi/ic_drawable_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_action_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_drawable_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xhdpi/ic_drawable_marker.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_location.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_notify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_notify.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_drawable_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/drawable-xxhdpi/ic_drawable_marker.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devaar100/Task-Manager/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | My Tasks 3 | Settings 4 | Map 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 09 19:12:42 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.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #009688 7 | #EBEBEB 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/chhabra/shriya/mytasks/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks; 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 | } -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/db/Consts.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.db; 2 | 3 | /** 4 | * Created by LENOVO on 1/12/2018. 5 | */ 6 | 7 | public interface Consts { 8 | 9 | String COMMA = " , "; 10 | String LBR = " ( "; 11 | String RBR = " ) "; 12 | String SEMI = " ; "; 13 | 14 | String CMD_CREATE_TABLE_INE = " CREATE TABLE IF NOT EXISTS "; 15 | 16 | String TYPE_INT = " INTEGER "; 17 | String TYPE_DOUBLE=" REAL "; 18 | String TYPE_TEXT = " TEXT "; 19 | String TYPE_BOOLEAN = " BOOLEAN "; 20 | String TYPE_PK_AI = " PRIMARY KEY AUTOINCREMENT "; 21 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_date_time.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/release/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | YOUR_KEY_HERE 20 | 21 | -------------------------------------------------------------------------------- /app/src/androidTest/java/chhabra/shriya/mytasks/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks; 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 | * Instrumented 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("chhabra.shriya.mytasks", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/db/TaskDatabaseHelper.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.db; 2 | 3 | import android.content.Context; 4 | import android.database.sqlite.SQLiteDatabase; 5 | import android.database.sqlite.SQLiteOpenHelper; 6 | import android.util.Log; 7 | 8 | import chhabra.shriya.mytasks.db.Tables.TaskTable; 9 | 10 | /** 11 | * Created by LENOVO on 1/12/2018. 12 | */ 13 | 14 | public class TaskDatabaseHelper extends SQLiteOpenHelper { 15 | 16 | public static final String DB_NAME = "todo.db"; 17 | public static final int DB_VER = 1; 18 | 19 | public TaskDatabaseHelper(Context context) { 20 | super(context, DB_NAME,null, DB_VER); 21 | } 22 | 23 | @Override 24 | public void onCreate(SQLiteDatabase sqLiteDatabase) { 25 | sqLiteDatabase.execSQL(TaskTable.CMD_CREATE_TABLE); 26 | } 27 | 28 | @Override 29 | public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) { 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 14 | 15 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 17 | 18 | 25 | 26 | -------------------------------------------------------------------------------- /app/src/debug/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | 23 | 24 | AIzaSyCozO7t0TmFTYBj4zoCCrrHDL587dwv1r0 25 | 26 | 27 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | defaultConfig { 6 | applicationId "chhabra.shriya.mytasks" 7 | minSdkVersion 21 8 | targetSdkVersion 26 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(dir: 'libs', include: ['*.jar']) 23 | implementation 'com.android.support:appcompat-v7:26.1.0' 24 | implementation 'com.android.support.constraint:constraint-layout:1.0.2' 25 | implementation 'com.android.support:design:26.1.0' 26 | implementation 'com.google.android.gms:play-services-maps:11.8.0' 27 | implementation 'com.google.android.gms:play-services-places:11.8.0' 28 | implementation 'com.google.android.gms:play-services-location:11.8.0' 29 | testImplementation 'junit:junit:4.12' 30 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 31 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 17 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 32 | 35 | 36 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/Services/MyService.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.Services; 2 | 3 | import android.app.Service; 4 | import android.content.Intent; 5 | import android.os.IBinder; 6 | 7 | import android.app.IntentService; 8 | import android.app.NotificationManager; 9 | import android.content.Context; 10 | import android.graphics.Color; 11 | import android.support.v4.app.NotificationCompat; 12 | 13 | import chhabra.shriya.mytasks.Models.Task; 14 | import chhabra.shriya.mytasks.R; 15 | import chhabra.shriya.mytasks.db.Tables.TaskTable; 16 | import chhabra.shriya.mytasks.db.TaskDatabaseHelper; 17 | 18 | public class MyService extends IntentService { 19 | 20 | public MyService() { 21 | super("MyService"); 22 | } 23 | 24 | @Override 25 | protected void onHandleIntent(Intent intent) { 26 | TaskDatabaseHelper helper=new TaskDatabaseHelper(this); 27 | Task evnt= TaskTable.getTask(helper.getReadableDatabase(),intent.getStringExtra("name")); 28 | 29 | NotificationCompat.Builder builder = new NotificationCompat.Builder(this); 30 | 31 | // Define the notification settings. 32 | builder.setSmallIcon(R.mipmap.ic_launcher) 33 | .setColor(Color.RED) 34 | .setContentTitle("Task Notifier : Task proximity reminder") 35 | .setContentText(evnt.getTaskName()+'\n'+evnt.getPlaceAddress()); 36 | // Dismiss notification once the user touches it. 37 | builder.setAutoCancel(true); 38 | 39 | // Get an instance of the Notification manager 40 | NotificationManager mNotificationManager = 41 | (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); 42 | 43 | // Issue the notification 44 | mNotificationManager.notify(0, builder.build()); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/task_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 19 | 24 | 30 | 35 | 36 | 37 | 43 | 48 | 52 | 53 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/Models/Task.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.Models; 2 | 3 | /** 4 | * Created by LENOVO on 1/10/2018. 5 | */ 6 | 7 | public class Task { 8 | private String taskName; 9 | private String placeAddress; 10 | private int radius; 11 | private double latitude; 12 | private double longitude; 13 | private boolean notification; 14 | private boolean done; 15 | 16 | public Task(){} 17 | public Task(String taskName, String placeAddress, int radius, double latitude,double longitude, boolean notify,boolean done) { 18 | this.taskName=taskName; 19 | this.placeAddress=placeAddress; 20 | this.radius=radius; 21 | this.latitude=latitude; 22 | this.longitude=longitude; 23 | this.notification=notify; 24 | this.done = done; 25 | } 26 | 27 | public String getTaskName() { 28 | return taskName; 29 | } 30 | 31 | public String getPlaceAddress() { 32 | return placeAddress; 33 | } 34 | 35 | public int getRadius() { 36 | return radius; 37 | } 38 | 39 | public double getLatitude() { 40 | return latitude; 41 | } 42 | 43 | public double getLongitude() { 44 | return longitude; 45 | } 46 | 47 | public boolean getNotification() { 48 | return notification; 49 | } 50 | 51 | public boolean isDone() { 52 | return done; 53 | } 54 | 55 | public void setDone(boolean done) { 56 | this.done = done; 57 | } 58 | 59 | public void setTaskName(String taskName) { 60 | this.taskName = taskName; 61 | } 62 | 63 | public void setPlaceAddress(String placeAddress) { 64 | this.placeAddress = placeAddress; 65 | } 66 | 67 | public void setRadius(int radius) { 68 | this.radius = radius; 69 | } 70 | 71 | public void setLatitude(double latitude) { 72 | this.latitude = latitude; 73 | } 74 | 75 | public void setLongitude(double longitude) { 76 | this.longitude = longitude; 77 | } 78 | 79 | public void setNotification(boolean notification) { 80 | this.notification = notification; 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/MainActivity.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks; 2 | 3 | import android.content.Intent; 4 | import android.database.sqlite.SQLiteDatabase; 5 | import android.os.Bundle; 6 | import android.support.design.widget.FloatingActionButton; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.support.v7.widget.LinearLayoutManager; 9 | import android.support.v7.widget.RecyclerView; 10 | import android.support.v7.widget.Toolbar; 11 | import android.util.Log; 12 | import android.view.View; 13 | 14 | import java.util.ArrayList; 15 | 16 | import chhabra.shriya.mytasks.Adapters.EmptyRecyclerView; 17 | import chhabra.shriya.mytasks.Adapters.TaskRecyclerAdapter; 18 | import chhabra.shriya.mytasks.Models.Task; 19 | import chhabra.shriya.mytasks.db.Tables.TaskTable; 20 | import chhabra.shriya.mytasks.db.TaskDatabaseHelper; 21 | 22 | public class MainActivity extends AppCompatActivity { 23 | public static ArrayList tasks=new ArrayList<>(); 24 | SQLiteDatabase readDb; 25 | TaskRecyclerAdapter tra; 26 | @Override 27 | protected void onCreate(Bundle savedInstanceState) { 28 | super.onCreate(savedInstanceState); 29 | setContentView(R.layout.activity_main); 30 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 31 | setSupportActionBar(toolbar); 32 | 33 | FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); 34 | fab.setOnClickListener(new View.OnClickListener() { 35 | @Override 36 | public void onClick(View view) { 37 | Intent i= new Intent(MainActivity.this,AddItemActivity.class); 38 | startActivity(i); 39 | } 40 | }); 41 | 42 | TaskDatabaseHelper myDbHelper= new TaskDatabaseHelper(this); 43 | readDb = myDbHelper.getReadableDatabase(); 44 | 45 | EmptyRecyclerView rv=findViewById(R.id.rv); 46 | tra= new TaskRecyclerAdapter(this,tasks,rv); 47 | rv.setLayoutManager(new LinearLayoutManager(this)); 48 | rv.setAdapter(tra); 49 | rv.setEmptyView(findViewById(R.id.empty)); 50 | } 51 | 52 | @Override 53 | protected void onStart() { 54 | super.onStart(); 55 | tasks = TaskTable.getAllTasks(readDb); 56 | tra.setArray(tasks); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/Adapters/EmptyRecyclerView.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.Adapters; 2 | 3 | /** 4 | * Created by aarnavjindal on 14/01/18. 5 | */ 6 | import android.content.Context; 7 | import android.support.v7.widget.RecyclerView; 8 | import android.util.AttributeSet; 9 | import android.view.View; 10 | 11 | /** 12 | * Created by aarnavjindal on 23/12/17. 13 | */ 14 | public class EmptyRecyclerView extends RecyclerView { 15 | 16 | private View emptyView; 17 | 18 | final private AdapterDataObserver observer = new AdapterDataObserver() { 19 | @Override 20 | public void onChanged() { 21 | checkIfEmpty(); 22 | } 23 | 24 | @Override 25 | public void onItemRangeInserted(int positionStart, int itemCount) { 26 | checkIfEmpty(); 27 | } 28 | 29 | @Override 30 | public void onItemRangeRemoved(int positionStart, int itemCount) { 31 | checkIfEmpty(); 32 | } 33 | }; 34 | 35 | public EmptyRecyclerView(Context context) { 36 | super(context); 37 | } 38 | 39 | public EmptyRecyclerView(Context context, AttributeSet attrs) { 40 | super(context, attrs); 41 | } 42 | 43 | public EmptyRecyclerView(Context context, AttributeSet attrs, 44 | int defStyle) { 45 | super(context, attrs, defStyle); 46 | } 47 | 48 | void checkIfEmpty() { 49 | if (emptyView != null && getAdapter() != null) { 50 | final boolean emptyViewVisible = 51 | getAdapter().getItemCount() == 0; 52 | emptyView.setVisibility(emptyViewVisible ? VISIBLE : GONE); 53 | setVisibility(emptyViewVisible ? GONE : VISIBLE); 54 | } 55 | } 56 | 57 | @Override 58 | public void setAdapter(Adapter adapter) { 59 | final Adapter oldAdapter = getAdapter(); 60 | if (oldAdapter != null) { 61 | oldAdapter.unregisterAdapterDataObserver(observer); 62 | } 63 | super.setAdapter(adapter); 64 | if (adapter != null) { 65 | adapter.registerAdapterDataObserver(observer); 66 | } 67 | 68 | checkIfEmpty(); 69 | } 70 | 71 | public void setEmptyView(View emptyView) { 72 | this.emptyView = emptyView; 73 | checkIfEmpty(); 74 | } 75 | } -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/java/chhabra/shriya/mytasks/Adapters/TaskRecyclerAdapter.java: -------------------------------------------------------------------------------- 1 | package chhabra.shriya.mytasks.Adapters; 2 | 3 | import android.content.Context; 4 | import android.content.Intent; 5 | import android.graphics.Paint; 6 | import android.support.v7.widget.RecyclerView; 7 | import android.util.Log; 8 | import android.view.LayoutInflater; 9 | import android.view.View; 10 | import android.view.ViewGroup; 11 | import android.widget.TextView; 12 | 13 | import java.util.ArrayList; 14 | 15 | import chhabra.shriya.mytasks.MapsActivity; 16 | import chhabra.shriya.mytasks.Models.Task; 17 | import chhabra.shriya.mytasks.R; 18 | 19 | /** 20 | * Created by LENOVO on 1/10/2018. 21 | */ 22 | 23 | public class TaskRecyclerAdapter extends EmptyRecyclerView.Adapter{ 24 | private Context context; 25 | private ArrayList tasks; 26 | private View.OnClickListener ocl; 27 | 28 | public TaskRecyclerAdapter(final Context context,final ArrayList task,final RecyclerView recyclerView) { 29 | this.context=context; 30 | this.tasks=task; 31 | ocl = new View.OnClickListener() { 32 | @Override 33 | public void onClick(View view) { 34 | final int pos = recyclerView.getChildAdapterPosition(view); 35 | Intent i = new Intent(context,MapsActivity.class); 36 | i.putExtra("name",tasks.get(pos).getTaskName()); 37 | context.startActivity(i); 38 | } 39 | }; 40 | } 41 | 42 | public void setArray(ArrayList tasks){ 43 | this.tasks = tasks; 44 | notifyDataSetChanged(); 45 | } 46 | 47 | @Override 48 | public CourseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 49 | LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 50 | View itemView = li.inflate(viewType, parent, false); 51 | itemView.setOnClickListener(ocl); 52 | return new CourseViewHolder(itemView); 53 | } 54 | 55 | @Override 56 | public int getItemViewType(int position) { 57 | return R.layout.task_item; 58 | } 59 | 60 | @Override 61 | public void onBindViewHolder(CourseViewHolder holder, int position) { 62 | Task currtask=tasks.get(position); 63 | holder.TaskName.setText(currtask.getTaskName()); 64 | Log.d("TAG",currtask.getTaskName()+" "+currtask.isDone()); 65 | if(currtask.isDone()) 66 | holder.TaskName.setPaintFlags(holder.TaskName.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); 67 | holder.TaskPlace.setText(currtask.getPlaceAddress()); 68 | } 69 | 70 | @Override 71 | public int getItemCount() { 72 | return tasks.size(); 73 | } 74 | 75 | 76 | public class CourseViewHolder extends RecyclerView.ViewHolder { 77 | TextView TaskName,TaskPlace; 78 | 79 | public CourseViewHolder(View itemView) { 80 | super(itemView); 81 | TaskName=itemView.findViewById(R.id.task_item_name); 82 | TaskPlace=itemView.findViewById(R.id.task_item_place); 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_maps.xml: -------------------------------------------------------------------------------- 1 | 8 | 14 | 18 | 25 | 32 | 33 | 39 | 43 | 49 | 55 | 56 | 66 |