diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..69fca43
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+Networking-in-Android
\ No newline at end of file
diff --git a/.idea/Networking-in-Android.iml b/.idea/Networking-in-Android.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/.idea/Networking-in-Android.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..9fe2e42
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..6ad68ae
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..53e6e41
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1483039223024
+
+ 1483039223024
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.gitignore b/MyApplication2/.gitignore
new file mode 100644
index 0000000..c6cbe56
--- /dev/null
+++ b/MyApplication2/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/MyApplication2/.idea/.name b/MyApplication2/.idea/.name
new file mode 100644
index 0000000..c4b4927
--- /dev/null
+++ b/MyApplication2/.idea/.name
@@ -0,0 +1 @@
+MyApplication2
\ No newline at end of file
diff --git a/MyApplication2/.idea/compiler.xml b/MyApplication2/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/MyApplication2/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/copyright/profiles_settings.xml b/MyApplication2/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/MyApplication2/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/gradle.xml b/MyApplication2/.idea/gradle.xml
new file mode 100644
index 0000000..1bbc21d
--- /dev/null
+++ b/MyApplication2/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/misc.xml b/MyApplication2/.idea/misc.xml
new file mode 100644
index 0000000..c60d22d
--- /dev/null
+++ b/MyApplication2/.idea/misc.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/modules.xml b/MyApplication2/.idea/modules.xml
new file mode 100644
index 0000000..7ffac15
--- /dev/null
+++ b/MyApplication2/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/runConfigurations.xml b/MyApplication2/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/MyApplication2/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/.idea/vcs.xml b/MyApplication2/.idea/vcs.xml
new file mode 100644
index 0000000..6564d52
--- /dev/null
+++ b/MyApplication2/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MyApplication2/app/.gitignore b/MyApplication2/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/MyApplication2/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/MyApplication2/app/build.gradle b/MyApplication2/app/build.gradle
new file mode 100644
index 0000000..e78a699
--- /dev/null
+++ b/MyApplication2/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion "23.0.2"
+
+ defaultConfig {
+ applicationId "com.example.williamtygret.networkinglab"
+ minSdkVersion 19
+ targetSdkVersion 23
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:appcompat-v7:23.1.1'
+}
diff --git a/MyApplication2/app/proguard-rules.pro b/MyApplication2/app/proguard-rules.pro
new file mode 100644
index 0000000..3f053f4
--- /dev/null
+++ b/MyApplication2/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/williamtygret/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/MyApplication2/app/src/androidTest/java/com/example/williamtygret/networkinglab/ApplicationTest.java b/MyApplication2/app/src/androidTest/java/com/example/williamtygret/networkinglab/ApplicationTest.java
new file mode 100644
index 0000000..949c776
--- /dev/null
+++ b/MyApplication2/app/src/androidTest/java/com/example/williamtygret/networkinglab/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.example.williamtygret.networkinglab;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/MyApplication2/app/src/main/AndroidManifest.xml b/MyApplication2/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..5447346
--- /dev/null
+++ b/MyApplication2/app/src/main/AndroidManifest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MyApplication2/app/src/main/java/com/example/williamtygret/networkinglab/MainActivity.java b/MyApplication2/app/src/main/java/com/example/williamtygret/networkinglab/MainActivity.java
new file mode 100644
index 0000000..1d4e6b2
--- /dev/null
+++ b/MyApplication2/app/src/main/java/com/example/williamtygret/networkinglab/MainActivity.java
@@ -0,0 +1,147 @@
+package com.example.williamtygret.networkinglab;
+
+import android.os.AsyncTask;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.ArrayAdapter;
+import android.widget.Button;
+import android.widget.ListView;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.ArrayList;
+
+public class MainActivity extends AppCompatActivity {
+
+ Button mButtonCereal;
+ Button mButtonChocolate;
+ Button mButtonTea;
+ private ListView mListView;
+ private ArrayList mStringArray;
+ private ArrayAdapter mAdapter;
+
+ private String urlStringCereal;
+ private String urlStringChocolate;
+ private String urlStringTea;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+
+ mListView = (ListView)findViewById(R.id.listView);
+ mStringArray = new ArrayList();
+ mAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1,mStringArray);
+ mListView.setAdapter(mAdapter);
+
+ urlStringCereal = "http://api.walmartlabs.com/v1/search?query=cereal&format=json&apiKey=3edm9cvfgkubxv4wg3gc59jv";
+ urlStringChocolate = "http://api.walmartlabs.com/v1/search?query=chocolate&format=json&apiKey=3edm9cvfgkubxv4wg3gc59jv";
+ urlStringTea = "http://api.walmartlabs.com/v1/search?query=tea&format=json&apiKey=3edm9cvfgkubxv4wg3gc59jv";
+
+ mButtonCereal = (Button)findViewById(R.id.buttonCereal);
+ mButtonCereal.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ DownloadAsyncWalmart downloadAsyncWalmart = new DownloadAsyncWalmart();
+ downloadAsyncWalmart.execute(urlStringCereal);
+ }
+ });
+
+ mButtonChocolate = (Button)findViewById(R.id.buttonChocolate);
+ mButtonChocolate.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ DownloadAsyncWalmart downloadAsyncWalmart = new DownloadAsyncWalmart();
+ downloadAsyncWalmart.execute(urlStringChocolate);
+ }
+ });
+
+ mButtonTea = (Button)findViewById(R.id.buttonTea);
+ mButtonTea.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ DownloadAsyncWalmart downloadAsyncWalmart = new DownloadAsyncWalmart();
+ downloadAsyncWalmart.execute(urlStringTea);
+ }
+ });
+
+ }
+
+
+ public class DownloadAsyncWalmart extends AsyncTask {
+
+ String data;
+
+ @Override
+ protected String doInBackground(String... urls) {
+ try {
+ URL url = new URL(urls[0]);
+ HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+ connection.connect();
+
+ InputStream inStream = connection.getInputStream();
+
+ data = getInputData(inStream);
+ Log.d("StupidGuy","we got the data "+data);
+
+ } catch (Throwable thro) {
+ thro.printStackTrace();
+ }
+
+
+ try {
+ JSONObject dataObject = new JSONObject(data);
+ JSONArray itemsArray = dataObject.getJSONArray("items");
+ mStringArray.clear();
+
+ for(int counter=0;counter
+
+
+
+
+
+
+
+
+
+
diff --git a/MyApplication2/app/src/main/res/mipmap-hdpi/ic_launcher.png b/MyApplication2/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/MyApplication2/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/MyApplication2/app/src/main/res/mipmap-mdpi/ic_launcher.png b/MyApplication2/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/MyApplication2/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/MyApplication2/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/MyApplication2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/MyApplication2/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/MyApplication2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/MyApplication2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/MyApplication2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/MyApplication2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/MyApplication2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/MyApplication2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/MyApplication2/app/src/main/res/values-w820dp/dimens.xml b/MyApplication2/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/MyApplication2/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/MyApplication2/app/src/main/res/values/colors.xml b/MyApplication2/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/MyApplication2/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/MyApplication2/app/src/main/res/values/dimens.xml b/MyApplication2/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/MyApplication2/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/MyApplication2/app/src/main/res/values/strings.xml b/MyApplication2/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..3f464f6
--- /dev/null
+++ b/MyApplication2/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ NetworkingLab
+
diff --git a/MyApplication2/app/src/main/res/values/styles.xml b/MyApplication2/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/MyApplication2/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/MyApplication2/app/src/test/java/com/example/williamtygret/networkinglab/ExampleUnitTest.java b/MyApplication2/app/src/test/java/com/example/williamtygret/networkinglab/ExampleUnitTest.java
new file mode 100644
index 0000000..65c0603
--- /dev/null
+++ b/MyApplication2/app/src/test/java/com/example/williamtygret/networkinglab/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package com.example.williamtygret.networkinglab;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * To work on unit tests, switch the Test Artifact in the Build Variants view.
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/MyApplication2/build.gradle b/MyApplication2/build.gradle
new file mode 100644
index 0000000..e0b366a
--- /dev/null
+++ b/MyApplication2/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.5.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/MyApplication2/gradle.properties b/MyApplication2/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/MyApplication2/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/MyApplication2/gradle/wrapper/gradle-wrapper.jar b/MyApplication2/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..05ef575
Binary files /dev/null and b/MyApplication2/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/MyApplication2/gradle/wrapper/gradle-wrapper.properties b/MyApplication2/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..f23df6e
--- /dev/null
+++ b/MyApplication2/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Oct 21 11:34:03 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
diff --git a/MyApplication2/gradlew b/MyApplication2/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/MyApplication2/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/MyApplication2/gradlew.bat b/MyApplication2/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/MyApplication2/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/MyApplication2/settings.gradle b/MyApplication2/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/MyApplication2/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/TripleDouble2/.gitignore b/TripleDouble2/.gitignore
new file mode 100644
index 0000000..c6cbe56
--- /dev/null
+++ b/TripleDouble2/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/TripleDouble2/.idea/.name b/TripleDouble2/.idea/.name
new file mode 100644
index 0000000..d634d85
--- /dev/null
+++ b/TripleDouble2/.idea/.name
@@ -0,0 +1 @@
+TripleDouble2
\ No newline at end of file
diff --git a/TripleDouble2/.idea/compiler.xml b/TripleDouble2/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/TripleDouble2/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/copyright/profiles_settings.xml b/TripleDouble2/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/TripleDouble2/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/gradle.xml b/TripleDouble2/.idea/gradle.xml
new file mode 100644
index 0000000..1bbc21d
--- /dev/null
+++ b/TripleDouble2/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/misc.xml b/TripleDouble2/.idea/misc.xml
new file mode 100644
index 0000000..c60d22d
--- /dev/null
+++ b/TripleDouble2/.idea/misc.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/modules.xml b/TripleDouble2/.idea/modules.xml
new file mode 100644
index 0000000..47953ec
--- /dev/null
+++ b/TripleDouble2/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/runConfigurations.xml b/TripleDouble2/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/TripleDouble2/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/.idea/vcs.xml b/TripleDouble2/.idea/vcs.xml
new file mode 100644
index 0000000..6564d52
--- /dev/null
+++ b/TripleDouble2/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble2/app/.gitignore b/TripleDouble2/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/TripleDouble2/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/TripleDouble2/app/build.gradle b/TripleDouble2/app/build.gradle
new file mode 100644
index 0000000..6b39fb0
--- /dev/null
+++ b/TripleDouble2/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion "23.0.2"
+
+ defaultConfig {
+ applicationId "com.williamtygret.tripledouble2"
+ minSdkVersion 18
+ targetSdkVersion 23
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:appcompat-v7:23.2.1'
+}
diff --git a/TripleDouble2/app/proguard-rules.pro b/TripleDouble2/app/proguard-rules.pro
new file mode 100644
index 0000000..3f053f4
--- /dev/null
+++ b/TripleDouble2/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/williamtygret/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/TripleDouble2/app/src/androidTest/java/com/williamtygret/tripledouble2/ApplicationTest.java b/TripleDouble2/app/src/androidTest/java/com/williamtygret/tripledouble2/ApplicationTest.java
new file mode 100644
index 0000000..1d9e64b
--- /dev/null
+++ b/TripleDouble2/app/src/androidTest/java/com/williamtygret/tripledouble2/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.williamtygret.tripledouble2;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble2/app/src/main/AndroidManifest.xml b/TripleDouble2/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..e6281ca
--- /dev/null
+++ b/TripleDouble2/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble2/app/src/main/java/com/williamtygret/tripledouble2/MainActivity.java b/TripleDouble2/app/src/main/java/com/williamtygret/tripledouble2/MainActivity.java
new file mode 100644
index 0000000..e88c7bf
--- /dev/null
+++ b/TripleDouble2/app/src/main/java/com/williamtygret/tripledouble2/MainActivity.java
@@ -0,0 +1,138 @@
+package com.williamtygret.tripledouble2;
+
+import android.os.AsyncTask;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.widget.ArrayAdapter;
+import android.widget.Button;
+import android.widget.ListView;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.lang.reflect.Array;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+public class MainActivity extends AppCompatActivity {
+
+ Button mButtonUpdate;
+ private ListView mListView;
+ private ArrayList mStringArray;
+ private ArrayAdapter mAdapter;
+
+ private String urlStringGames;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ mListView = (ListView)findViewById(R.id.listView);
+ mStringArray = new ArrayList();
+ mAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1,mStringArray);
+ mListView.setAdapter(mAdapter);
+
+ urlStringGames = "http://api.sportradar.us/nba-t3/games/2016/12/27/schedule.json?api_key=q297t7wfs2knu5nqkbybeksd";
+
+ mButtonUpdate = (Button)findViewById(R.id.button);
+ mButtonUpdate.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ DownloadAsyncWalmart downloadAsyncWalmart = new DownloadAsyncWalmart();
+ downloadAsyncWalmart.execute(urlStringGames);
+ }
+ });
+
+ }
+
+
+ public class DownloadAsyncWalmart extends AsyncTask {
+
+ String data;
+
+ @Override
+ protected String doInBackground(String... urls) {
+ try {
+ URL url = new URL(urls[0]);
+ HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+ connection.connect();
+
+ InputStream inStream = connection.getInputStream();
+
+ data = getInputData(inStream);
+ Log.d("StupidGuy", "we got the data " + data);
+
+ } catch (Throwable thro) {
+ thro.printStackTrace();
+ }
+
+
+ try {
+ JSONObject dataObject = new JSONObject(data);
+ JSONArray itemsArray = dataObject.getJSONArray("games");
+ mStringArray.clear();
+
+ for(int counter=0;counter aliasArray = new ArrayList();
+ aliasArray.add(alias);
+ Log.d("alias", "we got: " + aliasArray);
+ int okcPosition = aliasArray.indexOf("OKC");
+ Log.d("position","the position is: "+okcPosition);
+
+
+
+ //implement if position = 0 get
+
+ }
+ //research iterators
+
+
+ } catch (JSONException e) {
+ e.printStackTrace();
+ }
+
+
+ return data;
+ }
+
+ @Override
+ protected void onPostExecute(String data) {
+ super.onPostExecute(data);
+
+ mAdapter.notifyDataSetChanged();
+
+ }
+
+ private String getInputData(InputStream inStream) throws IOException {
+ StringBuilder builder = new StringBuilder();
+ BufferedReader reader = new BufferedReader(new InputStreamReader(inStream));
+
+ String data;
+
+ while((data = reader.readLine()) != null){
+ builder.append(data);
+ }
+
+ reader.close();
+
+ return builder.toString();
+ }
+ }
+
+}
diff --git a/TripleDouble2/app/src/main/res/layout/activity_main.xml b/TripleDouble2/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..50baada
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble2/app/src/main/res/mipmap-hdpi/ic_launcher.png b/TripleDouble2/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/TripleDouble2/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/TripleDouble2/app/src/main/res/mipmap-mdpi/ic_launcher.png b/TripleDouble2/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/TripleDouble2/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/TripleDouble2/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/TripleDouble2/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/TripleDouble2/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/TripleDouble2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/TripleDouble2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/TripleDouble2/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/TripleDouble2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/TripleDouble2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/TripleDouble2/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/TripleDouble2/app/src/main/res/values-w820dp/dimens.xml b/TripleDouble2/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/TripleDouble2/app/src/main/res/values/colors.xml b/TripleDouble2/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/TripleDouble2/app/src/main/res/values/dimens.xml b/TripleDouble2/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/TripleDouble2/app/src/main/res/values/strings.xml b/TripleDouble2/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..e88967d
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ TripleDouble2
+
diff --git a/TripleDouble2/app/src/main/res/values/styles.xml b/TripleDouble2/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/TripleDouble2/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/TripleDouble2/app/src/test/java/com/williamtygret/tripledouble2/ExampleUnitTest.java b/TripleDouble2/app/src/test/java/com/williamtygret/tripledouble2/ExampleUnitTest.java
new file mode 100644
index 0000000..b57bb47
--- /dev/null
+++ b/TripleDouble2/app/src/test/java/com/williamtygret/tripledouble2/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package com.williamtygret.tripledouble2;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * To work on unit tests, switch the Test Artifact in the Build Variants view.
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble2/build.gradle b/TripleDouble2/build.gradle
new file mode 100644
index 0000000..e0b366a
--- /dev/null
+++ b/TripleDouble2/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.5.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/TripleDouble2/gradle.properties b/TripleDouble2/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/TripleDouble2/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/TripleDouble2/gradle/wrapper/gradle-wrapper.jar b/TripleDouble2/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..05ef575
Binary files /dev/null and b/TripleDouble2/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/TripleDouble2/gradle/wrapper/gradle-wrapper.properties b/TripleDouble2/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..f23df6e
--- /dev/null
+++ b/TripleDouble2/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Oct 21 11:34:03 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
diff --git a/TripleDouble2/gradlew b/TripleDouble2/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/TripleDouble2/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/TripleDouble2/gradlew.bat b/TripleDouble2/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/TripleDouble2/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/TripleDouble2/settings.gradle b/TripleDouble2/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/TripleDouble2/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/TripleDouble3/.gitignore b/TripleDouble3/.gitignore
new file mode 100644
index 0000000..c6cbe56
--- /dev/null
+++ b/TripleDouble3/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/TripleDouble3/.idea/.name b/TripleDouble3/.idea/.name
new file mode 100644
index 0000000..94b4bf0
--- /dev/null
+++ b/TripleDouble3/.idea/.name
@@ -0,0 +1 @@
+TripleDouble3
\ No newline at end of file
diff --git a/TripleDouble3/.idea/compiler.xml b/TripleDouble3/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/TripleDouble3/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/copyright/profiles_settings.xml b/TripleDouble3/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/TripleDouble3/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/gradle.xml b/TripleDouble3/.idea/gradle.xml
new file mode 100644
index 0000000..1bbc21d
--- /dev/null
+++ b/TripleDouble3/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/misc.xml b/TripleDouble3/.idea/misc.xml
new file mode 100644
index 0000000..c60d22d
--- /dev/null
+++ b/TripleDouble3/.idea/misc.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/modules.xml b/TripleDouble3/.idea/modules.xml
new file mode 100644
index 0000000..51e6a64
--- /dev/null
+++ b/TripleDouble3/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/runConfigurations.xml b/TripleDouble3/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/TripleDouble3/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/.idea/vcs.xml b/TripleDouble3/.idea/vcs.xml
new file mode 100644
index 0000000..6564d52
--- /dev/null
+++ b/TripleDouble3/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/app/.gitignore b/TripleDouble3/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/TripleDouble3/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/TripleDouble3/app/build.gradle b/TripleDouble3/app/build.gradle
new file mode 100644
index 0000000..7cb1f80
--- /dev/null
+++ b/TripleDouble3/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion "23.0.2"
+
+ defaultConfig {
+ applicationId "com.williamtygret.tripledouble3"
+ minSdkVersion 18
+ targetSdkVersion 23
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:appcompat-v7:23.2.1'
+}
diff --git a/TripleDouble3/app/proguard-rules.pro b/TripleDouble3/app/proguard-rules.pro
new file mode 100644
index 0000000..3f053f4
--- /dev/null
+++ b/TripleDouble3/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/williamtygret/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/TripleDouble3/app/src/androidTest/java/com/williamtygret/tripledouble3/ApplicationTest.java b/TripleDouble3/app/src/androidTest/java/com/williamtygret/tripledouble3/ApplicationTest.java
new file mode 100644
index 0000000..0e7856d
--- /dev/null
+++ b/TripleDouble3/app/src/androidTest/java/com/williamtygret/tripledouble3/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.williamtygret.tripledouble3;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble3/app/src/main/AndroidManifest.xml b/TripleDouble3/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..0ce2fab
--- /dev/null
+++ b/TripleDouble3/app/src/main/AndroidManifest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/GameIDDatabaseHelper.java b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/GameIDDatabaseHelper.java
new file mode 100644
index 0000000..ca8f3f6
--- /dev/null
+++ b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/GameIDDatabaseHelper.java
@@ -0,0 +1,195 @@
+package com.williamtygret.tripledouble3;
+
+import android.content.ContentValues;
+import android.content.Context;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteOpenHelper;
+import android.util.Log;
+
+/**
+ * Created by williamtygret on 1/27/17.
+ */
+public class GameIDDatabaseHelper extends SQLiteOpenHelper {
+
+ public static final int DATABASE_VERSION =1;
+ public static final String DATABASE_NAME = "GameIDLibrary.db";
+ public static final String GAMEID_TABLE_NAME = "GAMEID_LIBRARY";
+
+ public static final String COL_ID = "_id";
+ public static final String COL_DATE = "DATE";
+ public static final String COL_GAMEID = "GAMEID";
+ public static final String COL_HOME_AWAY = "HOMEAWAY";
+
+
+
+ private Context mHelperContext;
+
+ public GameIDDatabaseHelper(Context context){
+ super(context, DATABASE_NAME, null, DATABASE_VERSION);
+ mHelperContext = context;
+ SQLiteDatabase db = this.getWritableDatabase();
+ }
+
+ public static final String [] GAMEID_COLUMNS = {COL_ID,COL_DATE,COL_GAMEID,COL_HOME_AWAY};
+
+ //creating tables
+ private static final String CREATE_GAMEID_TABLE =
+ "CREATE TABLE"+GAMEID_TABLE_NAME+
+ "("+
+ COL_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "+
+ COL_DATE+ " TEXT, "+
+ COL_GAMEID + " TEXT, " +
+ COL_HOME_AWAY + " TEXT, )";
+
+ //make db accessible in a singleton
+ private static GameIDDatabaseHelper instance;
+
+ public static GameIDDatabaseHelper getInstance(Context context){
+ if(instance == null){
+ instance = new GameIDDatabaseHelper(context);
+ }
+ return instance;
+ }
+
+
+
+
+ @Override
+ public void onCreate(SQLiteDatabase db) {
+ db.execSQL(CREATE_GAMEID_TABLE);
+ Log.d("GameIDDatabaseHelper", "SQL"+CREATE_GAMEID_TABLE);
+
+ }
+
+ @Override
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+ db.execSQL("DROP TABLE IF EXISTS"+GAMEID_TABLE_NAME);
+ onCreate(db);
+ }
+
+ public Cursor getGameIDList(){
+ SQLiteDatabase db = this.getReadableDatabase();
+ Cursor cursor = db.query(GAMEID_TABLE_NAME,// a. table
+ GAMEID_COLUMNS, // b. column names
+ null, // c. selections
+ null, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+
+ return cursor;
+ }
+
+ //method to insert gameid data
+ public void insertGameID(int id, String date, String gameID, String homeaway){
+ SQLiteDatabase db = getWritableDatabase();
+
+ ContentValues values = new ContentValues();
+ values.put("_id", id);
+ values.put("DATE", date);
+ values.put("GAME_ID", gameID);
+ values.put("HOMEAWAY", homeaway);
+
+ db.insert("GAMEID_LIBRARY", null, values);
+ Log.d("PokemonDatabaseHelper","insert being called from insertPokemon");
+ }
+
+ //here is where all the info goes
+ public void insertAllGameID(){
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(1,"29-Jan-2017","f07ecf10-a55a-4972-a372-488b754996de","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(2,"31-Jan-2017","fb60c3d8-3feb-4ca7-8cd5-045f2e6a4c22","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(3,"01-Feb-2017","a9e3a626-bcc0-4943-ba12-179274c053fb","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(4,"03-Feb-2017","d568fa4d-5afd-417f-b150-ae5a84d4bce8","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(5,"05-Feb-2017","f6d5c066-6107-4f38-850a-8b24778c72e0","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(6,"06-Feb-2017","3c89469a-14b8-48d2-ac5c-4f7abdf34b1a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(7,"09-Feb-2017","7990de27-5bd1-427c-9ee4-c79b49b7fd35","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(8,"11-Feb-2017","ac902735-f9c9-470a-aebd-9927d2883e94","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(9,"13-Feb-2017","0db34af3-6032-4657-9ad7-4e56846966f9","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(10,"15-Feb-2017","4b776ea3-1725-4f66-a79b-6095f2fd2567","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(11,"24-Feb-2017","bfe8bc7f-93bd-4873-9876-47cbdfb869c7","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(12,"26-Feb-2017","83090e04-9e61-4ead-8be9-2d42cb1e80bd","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(13,"28-Feb-2017","d1329579-910c-41c5-a207-bb82e179da80","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(14,"02-Mar-2017","77cf8953-e49b-4e5e-b292-8fc5df88da24","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(15,"03-Mar-2017","bbb15824-fcb9-430a-9273-8c59fbcdf487","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(16,"05-Mar-2017","63561b89-5357-4b39-975a-120654810905","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(17,"07-Mar-2017","88528057-11ab-4ae9-9c89-12e0e30d3ac9","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(18,"09-Mar-2017","c5d68224-d044-46c3-97c4-1220396b7e62","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(19,"11-Mar-2017","ecefc021-ce8a-474d-aebd-3f73639ac28e","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(20,"14-Mar-2017","82e93bf4-e61f-4047-9366-a91682a52ead","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(21,"16-Mar-2017","bf233e82-d1f8-4e99-8c41-c3fc68fe2ae1","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(22,"18-Mar-2017","09e8bcfb-e88e-4af4-817c-626d6a96cba9","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(23,"20-Mar-2017","f7d82d03-c7e5-4a70-ba03-25b06cf86d29","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(24,"22-Mar-2017","7896f54b-8027-495f-b49a-565361366052","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(25,"26-Mar-2017","d4fb86ff-416d-4db5-9486-a7a92213f7a5","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(26,"27-Mar-2017","3df84225-9c20-41b6-879f-d09ea8d80f7f","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(27,"29-Mar-2017","3eb9c54a-8155-43b8-adc1-3c07ec657d1a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(28,"31-Mar-2017","a28cca52-0dbd-4952-8f42-f48891414fdc","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(29,"02-Apr-2017","4db687e5-558d-47ae-b7a8-3d5e86257f36","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(30,"04-Apr-2017","b4b3d924-41fb-42f5-a7de-4997f277f657","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(31,"05-Apr-2017","41ce352a-8546-44a3-b4c8-714c5a1d2e07","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(32,"07-Apr-2017","1c4ba5e9-1899-43c6-9ae1-eb09ea785e7f","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(33,"09-Apr-2017","5e77bf4d-c249-4828-9f95-e5089cdcaebf","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(34,"11-Apr-2017","4203d831-84c8-44b2-aec6-24b2fed2874a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(35,"12-Apr-2017","4e55dde9-0d75-4760-a036-b3a119519b57","home");
+
+
+ }
+
+ //method to search pokemon
+ public Cursor searchDate(String query){
+
+ Log.d("searchplaces", "did we get here?");
+ SQLiteDatabase db = this.getReadableDatabase();
+ Log.d("searchplaces", "did we get here also?");
+
+ Cursor cursor = db.query(GAMEID_TABLE_NAME, // a. table
+ GAMEID_COLUMNS, // b. column names
+ COL_DATE+" LIKE ?", // c. selections
+ new String[]{"%"+query+"%"}, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+ return cursor;
+ }
+
+ public String getGameID(int id){
+ SQLiteDatabase db = this.getReadableDatabase();
+
+ Cursor cursor = db.query(GAMEID_TABLE_NAME, // a. table
+ new String[] {COL_GAMEID}, // b. column names
+ COL_ID + "= ?", // c. selections
+ new String[]{String.valueOf(id)}, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+ if(cursor.moveToFirst()) {
+ return cursor.getString(cursor.getColumnIndex(COL_GAMEID));
+ }else{
+ return "No Game Today";
+ }
+ }
+
+ public String getHomeAway(int id){
+ SQLiteDatabase db = this.getReadableDatabase();
+
+ Cursor cursor = db.query(GAMEID_TABLE_NAME, // a. table
+ new String[] {COL_HOME_AWAY}, // b. column names
+ COL_ID + "= ?", // c. selections
+ new String[]{String.valueOf(id)}, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+ if(cursor.moveToFirst()) {
+ return cursor.getString(cursor.getColumnIndex(COL_HOME_AWAY));
+ }else{
+ return "No Game Today";
+ }
+ }
+
+
+}
diff --git a/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/MainActivity.java b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/MainActivity.java
new file mode 100644
index 0000000..d2a1cbd
--- /dev/null
+++ b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/MainActivity.java
@@ -0,0 +1,271 @@
+package com.williamtygret.tripledouble3;
+
+import android.app.SearchManager;
+import android.content.Intent;
+import android.database.Cursor;
+import android.os.AsyncTask;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.widget.SearchView;
+import android.util.Log;
+import android.view.Menu;
+import android.view.MenuInflater;
+import android.view.View;
+import android.widget.ArrayAdapter;
+import android.widget.Button;
+import android.widget.CursorAdapter;
+import android.widget.ListView;
+import android.widget.TextView;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Calendar;
+import java.util.Date;
+
+public class MainActivity extends AppCompatActivity {
+
+ Button mButtonUpdate;
+
+ GameIDDatabaseHelper myDB;
+
+ private ListView mListView;
+ private ArrayList mStringArray;
+ private ArrayAdapter mAdapter;
+
+ private String urlStringGames;
+ CursorAdapter mCursorAdapter;
+ GameIDDatabaseHelper mGameIDDatabaseHelper;
+
+ private TextView mPoints;
+ private TextView mRebounds;
+ private TextView mAssists;
+ private TextView mAnswer;
+
+ private String mGameID;
+ private String mHomeAway;
+
+ private int mId;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ myDB = new GameIDDatabaseHelper(this);
+
+ mListView = (ListView)findViewById(R.id.listView);
+ mStringArray = new ArrayList();
+ mAdapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1,mStringArray);
+ mListView.setAdapter(mAdapter);
+
+ mPoints = (TextView)findViewById(R.id.points);
+ mRebounds = (TextView)findViewById(R.id.rebounds);
+ mAssists = (TextView)findViewById(R.id.assists);
+ mAnswer = (TextView)findViewById(R.id.answer);
+
+// Calendar c = Calendar.getInstance();
+// System.out.println("Current time => " + c.getTime());
+//
+// SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+// String formattedDate = df.format(c.getTime());
+// Log.d("date", "the date is: "+ formattedDate);
+//
+// Cursor cursor = null;
+// mCursorAdapter = new myAdapter(this, cursor);
+// mListView.setAdapter(mCursorAdapter);
+
+ // GameIDDatabaseHelper.getInstance(MainActivity.this).insertAllGameID();
+
+// handleIntent(getIntent());
+
+
+// int id = getIntent().getIntExtra("id",-1);
+// mId=id;
+// if(id >= 0){
+// GameIDDatabaseHelper dbh = GameIDDatabaseHelper.getInstance(MainActivity.this);
+// String theGameID = dbh.getGameID(id);
+// mGameID.equals(theGameID);
+// }
+// if(id >= 0){
+// GameIDDatabaseHelper dbh = GameIDDatabaseHelper.getInstance(MainActivity.this);
+// String homeAway = dbh.getHomeAway(id);
+// mHomeAway.equals(homeAway);
+// }
+
+
+ //here is where I need to call method probably on getting todays date, making cursor cursor adapter maybe?
+ //use database helper to get gameid make a string
+ //create an if statement to catch if there is no game and cancel the call and change type to no game today
+
+ urlStringGames = "http://api.sportradar.us/nba-t3/games/"+"fb60c3d8-3feb-4ca7-8cd5-045f2e6a4c22"+"/boxscore.json?api_key=q297t7wfs2knu5nqkbybeksd";
+
+ mButtonUpdate = (Button)findViewById(R.id.button);
+ mButtonUpdate.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ DownloadAsyncStats downloadAsyncStats = new DownloadAsyncStats();
+ downloadAsyncStats.execute(urlStringGames);
+ }
+ });
+
+
+ }
+
+// private class SearchDatabaseAsync extends AsyncTask {
+//
+// Cursor curse;
+//
+// @Override
+// protected Void doInBackground(Void... params) {
+// GameIDDatabaseHelper dbh = GameIDDatabaseHelper.getInstance(MainActivity.this);
+// curse = dbh.getGameID();
+// return null;
+// }
+//
+// @Override
+// protected void onPostExecute(Void aVoid) {
+// mCursorAdapter.swapCursor(curse);
+// mTextView.setText("My Pokemon:");
+// mFavoritesButton.setVisibility(View.GONE);
+// super.onPostExecute(aVoid);
+//
+// }
+//
+// }
+
+ public class DownloadAsyncStats extends AsyncTask {
+
+ String data;
+ int points;
+ int rebounds;
+ int assists;
+ boolean tripdoub = false;
+
+ @Override
+ protected String doInBackground(String... urls) {
+ try {
+ URL url = new URL(urls[0]);
+ HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+ connection.connect();
+
+ InputStream inStream = connection.getInputStream();
+
+ data = getInputData(inStream);
+ Log.d("StupidGuy", "we got the data " + data);
+
+ } catch (Throwable thro) {
+ thro.printStackTrace();
+ }
+
+
+ try {
+ JSONObject dataObject = new JSONObject(data);
+ JSONObject away = dataObject.getJSONObject("away");
+ Log.d("away", "away team is: "+away);
+ JSONObject leaders = away.getJSONObject("leaders");
+ Log.d("lead","leaders are: "+leaders);
+ JSONArray assistLeaders = leaders.getJSONArray("points");
+ Log.d("assist","assist leader is: "+assistLeaders);
+ for(int i=0;i= 10 && rebounds>=10 &&assists>=10){
+ tripdoub = true;
+ if(tripdoub = true){
+ mAnswer.setText("FUCK YEAH!!!");
+ }
+ }
+
+ }
+
+ private String getInputData(InputStream inStream) throws IOException {
+ StringBuilder builder = new StringBuilder();
+ BufferedReader reader = new BufferedReader(new InputStreamReader(inStream));
+
+ String data;
+
+ while((data = reader.readLine()) != null){
+ builder.append(data);
+ }
+
+ reader.close();
+
+ return builder.toString();
+ }
+
+
+
+
+ }
+
+// @Override
+// protected void onNewIntent(Intent intent) {
+// handleIntent(intent);
+// }
+//
+//
+// private void handleIntent(Intent intent) {
+// if (Intent.ACTION_SEARCH.equals(intent.getAction())){
+// // where you do the actual database search
+//
+// Calendar c = Calendar.getInstance();
+// System.out.println("Current time => " + c.getTime());
+//
+// SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+// String formattedDate = df.format(c.getTime());
+// Log.d("date", "the date is: "+ formattedDate);
+//
+// String query = intent.getStringExtra(formattedDate);
+//
+// // SELECT * FROM awesometable WHERE name = ? (or WHERE name LIKE ?)
+// Cursor cursor = mGameIDDatabaseHelper.getInstance(this).searchDate(formattedDate);
+// Log.d("cursor","cursor: "+cursor);
+//
+// mCursorAdapter.swapCursor(cursor);
+// }
+// }
+
+
+
+}
diff --git a/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/myAdapter.java b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/myAdapter.java
new file mode 100644
index 0000000..46b0192
--- /dev/null
+++ b/TripleDouble3/app/src/main/java/com/williamtygret/tripledouble3/myAdapter.java
@@ -0,0 +1,35 @@
+package com.williamtygret.tripledouble3;
+
+import android.content.Context;
+import android.database.Cursor;
+import android.graphics.Typeface;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.CursorAdapter;
+import android.widget.TextView;
+
+/**
+ * Created by williamtygret on 1/31/17.
+ */
+public class myAdapter extends CursorAdapter{
+
+ Context mContext;
+ public myAdapter(Context context, Cursor c) {
+ super(context,c,0);
+ mContext=context;
+ }
+
+ //customer adapter to give my list view a custom font
+ @Override
+ public void bindView(View view, Context context, Cursor cursor) {
+
+
+ //Any other modifications you want
+ }
+ @Override
+ public View newView(Context context, Cursor cursor, ViewGroup parent) {
+ return LayoutInflater.from(context).inflate(R.layout.custom_adapter,parent,false);
+ }
+
+}
diff --git a/TripleDouble3/app/src/main/res/layout/activity_main.xml b/TripleDouble3/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..7666448
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble3/app/src/main/res/layout/custom_adapter.xml b/TripleDouble3/app/src/main/res/layout/custom_adapter.xml
new file mode 100644
index 0000000..aac435c
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/layout/custom_adapter.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble3/app/src/main/res/mipmap-hdpi/ic_launcher.png b/TripleDouble3/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/TripleDouble3/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/TripleDouble3/app/src/main/res/mipmap-mdpi/ic_launcher.png b/TripleDouble3/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/TripleDouble3/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/TripleDouble3/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/TripleDouble3/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/TripleDouble3/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/TripleDouble3/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/TripleDouble3/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/TripleDouble3/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/TripleDouble3/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/TripleDouble3/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/TripleDouble3/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/TripleDouble3/app/src/main/res/values-w820dp/dimens.xml b/TripleDouble3/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/TripleDouble3/app/src/main/res/values/colors.xml b/TripleDouble3/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..3ab3e9c
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
diff --git a/TripleDouble3/app/src/main/res/values/dimens.xml b/TripleDouble3/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/TripleDouble3/app/src/main/res/values/strings.xml b/TripleDouble3/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..20f717c
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ TripleDouble3
+
diff --git a/TripleDouble3/app/src/main/res/values/styles.xml b/TripleDouble3/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/TripleDouble3/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/TripleDouble3/app/src/test/java/com/williamtygret/tripledouble3/ExampleUnitTest.java b/TripleDouble3/app/src/test/java/com/williamtygret/tripledouble3/ExampleUnitTest.java
new file mode 100644
index 0000000..5dad7c5
--- /dev/null
+++ b/TripleDouble3/app/src/test/java/com/williamtygret/tripledouble3/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package com.williamtygret.tripledouble3;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * To work on unit tests, switch the Test Artifact in the Build Variants view.
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble3/build.gradle b/TripleDouble3/build.gradle
new file mode 100644
index 0000000..e0b366a
--- /dev/null
+++ b/TripleDouble3/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.5.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/TripleDouble3/gradle.properties b/TripleDouble3/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/TripleDouble3/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/TripleDouble3/gradle/wrapper/gradle-wrapper.jar b/TripleDouble3/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..05ef575
Binary files /dev/null and b/TripleDouble3/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/TripleDouble3/gradle/wrapper/gradle-wrapper.properties b/TripleDouble3/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..f23df6e
--- /dev/null
+++ b/TripleDouble3/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Oct 21 11:34:03 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
diff --git a/TripleDouble3/gradlew b/TripleDouble3/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/TripleDouble3/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/TripleDouble3/gradlew.bat b/TripleDouble3/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/TripleDouble3/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/TripleDouble3/settings.gradle b/TripleDouble3/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/TripleDouble3/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/TripleDouble4/.gitignore b/TripleDouble4/.gitignore
new file mode 100644
index 0000000..c6cbe56
--- /dev/null
+++ b/TripleDouble4/.gitignore
@@ -0,0 +1,8 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/TripleDouble4/.idea/.name b/TripleDouble4/.idea/.name
new file mode 100644
index 0000000..4dbdfca
--- /dev/null
+++ b/TripleDouble4/.idea/.name
@@ -0,0 +1 @@
+TripleDouble4
\ No newline at end of file
diff --git a/TripleDouble4/.idea/compiler.xml b/TripleDouble4/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/TripleDouble4/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/copyright/profiles_settings.xml b/TripleDouble4/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/TripleDouble4/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/gradle.xml b/TripleDouble4/.idea/gradle.xml
new file mode 100644
index 0000000..1bbc21d
--- /dev/null
+++ b/TripleDouble4/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/misc.xml b/TripleDouble4/.idea/misc.xml
new file mode 100644
index 0000000..c60d22d
--- /dev/null
+++ b/TripleDouble4/.idea/misc.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1.7
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/modules.xml b/TripleDouble4/.idea/modules.xml
new file mode 100644
index 0000000..d23c81d
--- /dev/null
+++ b/TripleDouble4/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/runConfigurations.xml b/TripleDouble4/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/TripleDouble4/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/.idea/vcs.xml b/TripleDouble4/.idea/vcs.xml
new file mode 100644
index 0000000..6564d52
--- /dev/null
+++ b/TripleDouble4/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/app/.gitignore b/TripleDouble4/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/TripleDouble4/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/TripleDouble4/app/build.gradle b/TripleDouble4/app/build.gradle
new file mode 100644
index 0000000..f75c3ef
--- /dev/null
+++ b/TripleDouble4/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 23
+ buildToolsVersion "23.0.2"
+
+ defaultConfig {
+ applicationId "com.williamtygret.tripledouble4"
+ minSdkVersion 18
+ targetSdkVersion 23
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ testCompile 'junit:junit:4.12'
+ compile 'com.android.support:appcompat-v7:23.2.1'
+}
diff --git a/TripleDouble4/app/proguard-rules.pro b/TripleDouble4/app/proguard-rules.pro
new file mode 100644
index 0000000..3f053f4
--- /dev/null
+++ b/TripleDouble4/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/williamtygret/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/TripleDouble4/app/src/androidTest/java/com/williamtygret/tripledouble4/ApplicationTest.java b/TripleDouble4/app/src/androidTest/java/com/williamtygret/tripledouble4/ApplicationTest.java
new file mode 100644
index 0000000..65ac5ed
--- /dev/null
+++ b/TripleDouble4/app/src/androidTest/java/com/williamtygret/tripledouble4/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.williamtygret.tripledouble4;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble4/app/src/main/AndroidManifest.xml b/TripleDouble4/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..96172fb
--- /dev/null
+++ b/TripleDouble4/app/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble4/app/src/main/assets/PixelFJVerdana12pt.ttf b/TripleDouble4/app/src/main/assets/PixelFJVerdana12pt.ttf
new file mode 100755
index 0000000..5531267
Binary files /dev/null and b/TripleDouble4/app/src/main/assets/PixelFJVerdana12pt.ttf differ
diff --git a/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/GameIDDatabaseHelper.java b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/GameIDDatabaseHelper.java
new file mode 100644
index 0000000..5cae6c2
--- /dev/null
+++ b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/GameIDDatabaseHelper.java
@@ -0,0 +1,219 @@
+package com.williamtygret.tripledouble4;
+
+import android.content.ContentValues;
+import android.content.Context;
+import android.database.Cursor;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteOpenHelper;
+import android.util.Log;
+import android.widget.Toast;
+
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+
+/**
+ * Created by williamtygret on 2/1/17.
+ */
+public class GameIDDatabaseHelper extends SQLiteOpenHelper {
+
+ public static final String DATABASE_NAME = "gameidlibrary.db";
+ public static final String TABLE_NAME = "GAMEID_LIBRARY";
+
+ public static final String COL_ID = "ID";
+ public static final String COL_DATE = "DATE";
+ public static final String COL_GAMEID = "GAMEID";
+ public static final String COL_HOMEAWAY = "HOMEAWAY";
+
+ private Context mHelperContext;
+
+ public GameIDDatabaseHelper(Context context) {
+ super(context, DATABASE_NAME, null, 1);
+ mHelperContext = context;
+ }
+
+ public static final String [] GAMEID_COLUMNS = {COL_ID,COL_DATE,COL_GAMEID,COL_HOMEAWAY};
+
+ //make db accessible in a singleton
+ private static GameIDDatabaseHelper instance;
+
+ public static GameIDDatabaseHelper getInstance(Context context){
+ if(instance == null){
+ instance = new GameIDDatabaseHelper(context);
+ }
+ return instance;
+ }
+
+ @Override
+ public void onCreate(SQLiteDatabase db) {
+ db.execSQL("create table " + TABLE_NAME + "(ID INTEGER PRIMARY KEY AUTOINCREMENT, DATE TEXT, GAMEID TEXT, HOMEAWAY TEXT)");
+
+ }
+
+ @Override
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+ db.execSQL("DROP TABLE IF EXISTS" + TABLE_NAME);
+ onCreate(db);
+
+ }
+
+ //method to insert gameid data
+ public void insertGameID(int id, String date, String gameID, String homeaway){
+ SQLiteDatabase db = getWritableDatabase();
+
+ ContentValues values = new ContentValues();
+ values.put(COL_ID, id);
+ values.put(COL_DATE, date);
+ values.put(COL_GAMEID, gameID);
+ values.put(COL_HOMEAWAY, homeaway);
+
+ db.insert("GAMEID_LIBRARY", null, values);
+ Log.d("PokemonDatabaseHelper", "insert being called from insertPokemon " + values.get(COL_DATE) + values.get(COL_GAMEID));
+
+ }
+
+ //here is where all the info goes
+ public void insertAllGameID(){
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(1,"29-Jan-2017","f07ecf10-a55a-4972-a372-488b754996de","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(2,"31-Jan-2017","fb60c3d8-3feb-4ca7-8cd5-045f2e6a4c22","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(3,"01-Feb-2017","a9e3a626-bcc0-4943-ba12-179274c053fb","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(4,"03-Feb-2017","d568fa4d-5afd-417f-b150-ae5a84d4bce8","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(5,"05-Feb-2017","f6d5c066-6107-4f38-850a-8b24778c72e0","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(6,"06-Feb-2017","3c89469a-14b8-48d2-ac5c-4f7abdf34b1a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(7,"09-Feb-2017","7990de27-5bd1-427c-9ee4-c79b49b7fd35","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(8,"11-Feb-2017","ac902735-f9c9-470a-aebd-9927d2883e94","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(9,"13-Feb-2017","0db34af3-6032-4657-9ad7-4e56846966f9","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(10,"15-Feb-2017","4b776ea3-1725-4f66-a79b-6095f2fd2567","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(11,"24-Feb-2017","bfe8bc7f-93bd-4873-9876-47cbdfb869c7","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(12,"26-Feb-2017","83090e04-9e61-4ead-8be9-2d42cb1e80bd","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(13,"28-Feb-2017","d1329579-910c-41c5-a207-bb82e179da80","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(14,"02-Mar-2017","77cf8953-e49b-4e5e-b292-8fc5df88da24","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(15,"03-Mar-2017","bbb15824-fcb9-430a-9273-8c59fbcdf487","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(16,"05-Mar-2017","63561b89-5357-4b39-975a-120654810905","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(17,"07-Mar-2017","88528057-11ab-4ae9-9c89-12e0e30d3ac9","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(18,"09-Mar-2017","c5d68224-d044-46c3-97c4-1220396b7e62","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(19,"11-Mar-2017","ecefc021-ce8a-474d-aebd-3f73639ac28e","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(20,"14-Mar-2017","82e93bf4-e61f-4047-9366-a91682a52ead","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(21,"16-Mar-2017","bf233e82-d1f8-4e99-8c41-c3fc68fe2ae1","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(22,"18-Mar-2017","09e8bcfb-e88e-4af4-817c-626d6a96cba9","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(23,"20-Mar-2017","f7d82d03-c7e5-4a70-ba03-25b06cf86d29","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(24,"22-Mar-2017","7896f54b-8027-495f-b49a-565361366052","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(25,"26-Mar-2017","d4fb86ff-416d-4db5-9486-a7a92213f7a5","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(26,"27-Mar-2017","3df84225-9c20-41b6-879f-d09ea8d80f7f","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(27,"29-Mar-2017","3eb9c54a-8155-43b8-adc1-3c07ec657d1a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(28,"31-Mar-2017","a28cca52-0dbd-4952-8f42-f48891414fdc","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(29,"02-Apr-2017","4db687e5-558d-47ae-b7a8-3d5e86257f36","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(30,"04-Apr-2017","b4b3d924-41fb-42f5-a7de-4997f277f657","home");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(31,"05-Apr-2017","41ce352a-8546-44a3-b4c8-714c5a1d2e07","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(32,"07-Apr-2017","1c4ba5e9-1899-43c6-9ae1-eb09ea785e7f","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(33,"09-Apr-2017","5e77bf4d-c249-4828-9f95-e5089cdcaebf","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(34,"11-Apr-2017","4203d831-84c8-44b2-aec6-24b2fed2874a","away");
+ GameIDDatabaseHelper.getInstance(mHelperContext).insertGameID(35,"12-Apr-2017","4e55dde9-0d75-4760-a036-b3a119519b57","home");
+
+ }
+
+ public String getAllData(){
+ SQLiteDatabase db = getWritableDatabase();
+ Cursor result = db.rawQuery("select * from" +TABLE_NAME,null);
+
+ return result.toString();
+ }
+
+ public Cursor searchDate(String query){
+ Calendar c = Calendar.getInstance();
+ System.out.println("Current time => " + c.getTime());
+
+ SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+ String formattedDate = df.format(c.getTime());
+ Log.d("date", "the date is: "+ formattedDate);
+
+ SQLiteDatabase db = this.getReadableDatabase();
+
+ Cursor cursor = db.query(TABLE_NAME, // a. table
+ GAMEID_COLUMNS, // b. column names
+ COL_DATE + " LIKE ?", // c. selections
+ new String[]{"%" + query + "%"}, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+ Log.d("position","cursor is at: "+cursor.getPosition());
+
+ return cursor;
+ }
+
+ //these next few methods pull specific data out of the respective columns
+ public String getGameID(int id){
+ SQLiteDatabase db = this.getReadableDatabase();
+
+ Cursor cursor = db.query(TABLE_NAME, // a. table
+ new String[] {COL_GAMEID}, // b. column names
+ COL_ID + "= ?", // c. selections
+ new String[]{String.valueOf(id)}, // d. selections args
+ null, // e. group by
+ null, // f. having
+ null, // g. order by
+ null); // h. limit
+ if(cursor.moveToFirst()) {
+ return cursor.getString(cursor.getColumnIndex(COL_GAMEID));
+ }else{
+ return "Description Not Found";
+ }
+ }
+ public String getGameID(){
+ SQLiteDatabase db = this.getWritableDatabase();
+ String[] columns = new String[]{COL_ID,COL_DATE,COL_GAMEID,COL_HOMEAWAY};
+ Cursor c = db.query(TABLE_NAME,columns,null,null,null,null,null);
+ String result = "";
+
+ Calendar cal = Calendar.getInstance();
+ System.out.println("Current time => " + cal.getTime());
+
+ SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+ String formattedDate = df.format(cal.getTime());
+ Log.d("date", "the date is: "+ formattedDate);
+
+ int iRow = c.getColumnIndex(COL_ID);
+ int iDate = c.getColumnIndex(COL_DATE);
+ int iGameID = c.getColumnIndex(COL_GAMEID);
+ int iHomeAway = c.getColumnIndex(COL_HOMEAWAY);
+
+ for(c.moveToFirst(); !c.isAfterLast(); c.moveToNext()){
+ if(c.getString(iDate).contains(formattedDate)) {
+ result = c.getString(iGameID);
+ }
+ }
+
+ return result;
+ }
+
+
+ public String getHomeAway(){
+ SQLiteDatabase db = this.getWritableDatabase();
+ String[] columns = new String[]{COL_ID,COL_DATE,COL_GAMEID,COL_HOMEAWAY};
+ Cursor c = db.query(TABLE_NAME,columns,null,null,null,null,null);
+ String result = "";
+
+ Calendar cal = Calendar.getInstance();
+ System.out.println("Current time => " + cal.getTime());
+
+ SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+ String formattedDate = df.format(cal.getTime());
+ Log.d("date", "the date is: "+ formattedDate);
+
+ int iRow = c.getColumnIndex(COL_ID);
+ int iDate = c.getColumnIndex(COL_DATE);
+ int iGameID = c.getColumnIndex(COL_GAMEID);
+ int iHomeAway = c.getColumnIndex(COL_HOMEAWAY);
+
+ for(c.moveToFirst(); !c.isAfterLast(); c.moveToNext()){
+ if(c.getString(iDate).contains(formattedDate)) {
+ result = c.getString(iHomeAway);
+ }
+ }
+
+ return result;
+ }
+
+
+
+}
diff --git a/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/MainActivity.java b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/MainActivity.java
new file mode 100644
index 0000000..7f4b166
--- /dev/null
+++ b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/MainActivity.java
@@ -0,0 +1,245 @@
+package com.williamtygret.tripledouble4;
+
+import android.app.ActionBar;
+import android.app.AlertDialog;
+import android.app.SearchManager;
+import android.content.Intent;
+import android.database.Cursor;
+import android.graphics.Typeface;
+import android.graphics.drawable.ColorDrawable;
+import android.os.AsyncTask;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.view.animation.Animation;
+import android.view.animation.AnimationUtils;
+import android.widget.Button;
+import android.widget.CursorAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+
+public class MainActivity extends AppCompatActivity {
+ GameIDDatabaseHelper myDB;
+
+ private TextView mPoints;
+ private TextView mRebounds;
+ private TextView mAssists;
+ private TextView mAnswer;
+ private TextView mTitle;
+ private ImageView mWestbrookImg;
+ private ImageView mStunner;
+
+ private String urlStringGames;
+ ImageView backgroundImg;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ mPoints = (TextView)findViewById(R.id.points);
+ mRebounds = (TextView)findViewById(R.id.rebounds);
+ mAssists = (TextView)findViewById(R.id.assists);
+ mAnswer = (TextView)findViewById(R.id.answer);
+ mTitle = (TextView)findViewById(R.id.title);
+ mWestbrookImg = (ImageView)findViewById(R.id.imageView2);
+ mStunner = (ImageView)findViewById(R.id.stunnerImage);
+
+ ReplaceFont.replaceDefaultFont(this, "DEFAULT", "PixelFJVerdana12pt.ttf");
+ Typeface myTypeface = Typeface.createFromAsset(getAssets(),"PixelFJVerdana12pt.ttf");
+ mAnswer.setTypeface(myTypeface);
+ mAssists.setTypeface(myTypeface);
+ mRebounds.setTypeface(myTypeface);
+ mPoints.setTypeface(myTypeface);
+ mTitle.setTypeface(myTypeface);
+
+ mWestbrookImg.isClickable();
+
+
+ setTitle("");
+
+
+ backgroundImg = (ImageView)findViewById(R.id.imageView2);
+ backgroundImg.setImageResource(R.drawable.russellwestbrook);
+
+
+ myDB = new GameIDDatabaseHelper(this);
+
+ myDB.insertAllGameID();
+ Log.d("myDB", "this is the database: " + myDB.getGameID(3));
+
+ Calendar c = Calendar.getInstance();
+ System.out.println("Current time => " + c.getTime());
+
+ SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
+ final String formattedDate = df.format(c.getTime());
+ Log.d("date", "the date is: " + formattedDate);
+
+
+ Cursor theDate =myDB.searchDate(formattedDate);
+ Log.d("grabthedate","we got: "+theDate);
+
+ //todo dont need to do but signifying this gets the db info
+ final String gameID = myDB.getGameID();
+ Log.d("ooooo","game id is: "+gameID);
+
+ String homeAway = myDB.getHomeAway();
+ Log.d("ooooo2","homeaway is: "+homeAway);
+
+ urlStringGames = "http://api.sportradar.us/nba-t3/games/"+gameID+"/boxscore.json?api_key=q297t7wfs2knu5nqkbybeksd";
+
+
+ if(gameID == ""){
+ mAnswer.setText("No Game Today...");
+ }else {
+ mWestbrookImg.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ if (gameID == null) {
+ // mAnswer.setText("No Game Today");
+ } else {
+ DownloadAsyncStats downloadAsyncStats = new DownloadAsyncStats();
+ downloadAsyncStats.execute(urlStringGames);
+ }
+ }
+ });
+
+ }
+
+ }
+
+
+
+ public class DownloadAsyncStats extends AsyncTask {
+
+ String data;
+ int points;
+ int rebounds;
+ int assists;
+ boolean tripdoub = false;
+
+ String homeAway = myDB.getHomeAway();
+
+ @Override
+ protected String doInBackground(String... urls) {
+ try {
+ URL url = new URL(urls[0]);
+ HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+ connection.connect();
+
+ InputStream inStream = connection.getInputStream();
+
+ data = getInputData(inStream);
+ Log.d("StupidGuy", "we got the data " + data);
+
+ } catch (Throwable thro) {
+ thro.printStackTrace();
+ }
+
+
+ try {
+ JSONObject dataObject = new JSONObject(data);
+ JSONObject away = dataObject.getJSONObject(homeAway);
+ Log.d("away", "away team is: " + away);
+ JSONObject leaders = away.getJSONObject("leaders");
+ Log.d("lead", "leaders are: " + leaders);
+ JSONArray assistLeaders = leaders.getJSONArray("assists");
+ Log.d("assist", "assist leader is: " + assistLeaders);
+ if (assistLeaders.toString().contains("Russell Westbrook")) {
+ for (int i = 0; i < assistLeaders.length(); i++) {
+ JSONObject stats = assistLeaders.getJSONObject(i);
+ JSONObject statistics = stats.getJSONObject("statistics");
+ Log.d("stats", "russ stats: " + statistics);
+ points = statistics.getInt("points");
+ Log.d("points", "Russell points; " + points);
+ assists = statistics.getInt("assists");
+ rebounds = statistics.getInt("rebounds");
+ Log.d("pra", "Points: " + points + " Rebounds: " + rebounds + " Assists: " + assists);
+ }
+ }else{
+ JSONArray pointsLeaders = leaders.getJSONArray("points");
+ Log.d("points","points leader is: "+pointsLeaders);
+ for(int j =0; j= 10 && rebounds>=10 &&assists>=10){
+ tripdoub = true;
+ if(tripdoub = true){
+ mAnswer.setText("FUCK YEAH!!!");
+ backgroundImg.setImageResource(R.drawable.westbrook8bit2);
+ mStunner.setVisibility(View.VISIBLE);
+ final Animation stunnerAnim = AnimationUtils.loadAnimation(MainActivity.this, R.anim.stunner);
+ mStunner.startAnimation(stunnerAnim);
+ }
+ }
+
+ }
+
+ private String getInputData(InputStream inStream) throws IOException {
+ StringBuilder builder = new StringBuilder();
+ BufferedReader reader = new BufferedReader(new InputStreamReader(inStream));
+
+ String data;
+
+ while((data = reader.readLine()) != null){
+ builder.append(data);
+ }
+
+ reader.close();
+
+ return builder.toString();
+ }
+
+
+
+
+
+ }
+
+
+
+}
diff --git a/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/ReplaceFont.java b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/ReplaceFont.java
new file mode 100644
index 0000000..b8bb7f6
--- /dev/null
+++ b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/ReplaceFont.java
@@ -0,0 +1,30 @@
+package com.williamtygret.tripledouble4;
+
+import android.content.Context;
+import android.graphics.Typeface;
+
+import java.lang.reflect.Field;
+
+/**
+ * Created by williamtygret on 2/2/17.
+ */
+public class ReplaceFont {
+
+ public static void replaceDefaultFont(Context context, String nameOfFontBeingReplaced, String nameOfFontInAssets){
+ Typeface customFontTypeface = Typeface.createFromAsset(context.getAssets(), nameOfFontInAssets);
+ replaceFont(nameOfFontBeingReplaced,customFontTypeface);
+ }
+
+ private static void replaceFont(String nameOfFontBeingReplaced, Typeface customFontTypeface) {
+ try {
+ Field myField = Typeface.class.getDeclaredField(nameOfFontBeingReplaced);
+ myField.setAccessible(true);
+ myField.set(null, customFontTypeface);
+ } catch (NoSuchFieldException e) {
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ }
+ }
+
+}
diff --git a/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/Splash.java b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/Splash.java
new file mode 100644
index 0000000..ac801d8
--- /dev/null
+++ b/TripleDouble4/app/src/main/java/com/williamtygret/tripledouble4/Splash.java
@@ -0,0 +1,56 @@
+package com.williamtygret.tripledouble4;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.graphics.Typeface;
+import android.os.Bundle;
+import android.view.animation.Animation;
+import android.view.animation.AnimationUtils;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+/**
+ * Created by williamtygret on 2/15/17.
+ */
+public class Splash extends Activity {
+
+ TextView mStart;
+ ImageView mLightning;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.splash);
+
+ mStart = (TextView)findViewById(R.id.start);
+ mLightning = (ImageView)findViewById(R.id.imageLightning);
+
+ ReplaceFont.replaceDefaultFont(this, "DEFAULT", "PixelFJVerdana12pt.ttf");
+ Typeface myTypeface = Typeface.createFromAsset(getAssets(),"PixelFJVerdana12pt.ttf");
+ mStart.setTypeface(myTypeface);
+
+ final Animation animation = AnimationUtils.loadAnimation(getBaseContext(),R.anim.lightning);
+ mLightning.startAnimation(animation);
+
+ animation.setAnimationListener(new Animation.AnimationListener() {
+ @Override
+ public void onAnimationStart(Animation animation) {
+
+ }
+
+ @Override
+ public void onAnimationEnd(Animation animation) {
+ finish();
+ Intent intent = new Intent(getBaseContext(), MainActivity.class);
+ startActivity(intent);
+
+ }
+
+ @Override
+ public void onAnimationRepeat(Animation animation) {
+
+ }
+ });
+
+ }
+}
diff --git a/TripleDouble4/app/src/main/res/anim/lightning.xml b/TripleDouble4/app/src/main/res/anim/lightning.xml
new file mode 100644
index 0000000..966425f
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/anim/lightning.xml
@@ -0,0 +1,10 @@
+
+
\ No newline at end of file
diff --git a/TripleDouble4/app/src/main/res/anim/stunner.xml b/TripleDouble4/app/src/main/res/anim/stunner.xml
new file mode 100644
index 0000000..3beb4ba
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/anim/stunner.xml
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file
diff --git a/TripleDouble4/app/src/main/res/drawable/lightning.png b/TripleDouble4/app/src/main/res/drawable/lightning.png
new file mode 100644
index 0000000..a7ab69b
Binary files /dev/null and b/TripleDouble4/app/src/main/res/drawable/lightning.png differ
diff --git a/TripleDouble4/app/src/main/res/drawable/russell8bit.png b/TripleDouble4/app/src/main/res/drawable/russell8bit.png
new file mode 100644
index 0000000..557b77c
Binary files /dev/null and b/TripleDouble4/app/src/main/res/drawable/russell8bit.png differ
diff --git a/TripleDouble4/app/src/main/res/drawable/russellstunner.png b/TripleDouble4/app/src/main/res/drawable/russellstunner.png
new file mode 100644
index 0000000..571d108
Binary files /dev/null and b/TripleDouble4/app/src/main/res/drawable/russellstunner.png differ
diff --git a/TripleDouble4/app/src/main/res/drawable/russellwestbrook.png b/TripleDouble4/app/src/main/res/drawable/russellwestbrook.png
new file mode 100644
index 0000000..2d4e191
Binary files /dev/null and b/TripleDouble4/app/src/main/res/drawable/russellwestbrook.png differ
diff --git a/TripleDouble4/app/src/main/res/drawable/westbrook8bit2.png b/TripleDouble4/app/src/main/res/drawable/westbrook8bit2.png
new file mode 100644
index 0000000..b729d96
Binary files /dev/null and b/TripleDouble4/app/src/main/res/drawable/westbrook8bit2.png differ
diff --git a/TripleDouble4/app/src/main/res/layout/activity_main.xml b/TripleDouble4/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..9d77fd1
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TripleDouble4/app/src/main/res/layout/splash.xml b/TripleDouble4/app/src/main/res/layout/splash.xml
new file mode 100644
index 0000000..09b3194
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/layout/splash.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TripleDouble4/app/src/main/res/mipmap-hdpi/ic_launcher.png b/TripleDouble4/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/TripleDouble4/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/TripleDouble4/app/src/main/res/mipmap-mdpi/ic_launcher.png b/TripleDouble4/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/TripleDouble4/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/TripleDouble4/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/TripleDouble4/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/TripleDouble4/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/TripleDouble4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/TripleDouble4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/TripleDouble4/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/TripleDouble4/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/TripleDouble4/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/TripleDouble4/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/TripleDouble4/app/src/main/res/values-w820dp/dimens.xml b/TripleDouble4/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/TripleDouble4/app/src/main/res/values/colors.xml b/TripleDouble4/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..7130517
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #000000
+ #000000
+ #FF4081
+
diff --git a/TripleDouble4/app/src/main/res/values/dimens.xml b/TripleDouble4/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/TripleDouble4/app/src/main/res/values/strings.xml b/TripleDouble4/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..2091f89
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
+
+ TripleDouble4
+
diff --git a/TripleDouble4/app/src/main/res/values/styles.xml b/TripleDouble4/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/TripleDouble4/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/TripleDouble4/app/src/test/java/com/williamtygret/tripledouble4/ExampleUnitTest.java b/TripleDouble4/app/src/test/java/com/williamtygret/tripledouble4/ExampleUnitTest.java
new file mode 100644
index 0000000..f977716
--- /dev/null
+++ b/TripleDouble4/app/src/test/java/com/williamtygret/tripledouble4/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package com.williamtygret.tripledouble4;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * To work on unit tests, switch the Test Artifact in the Build Variants view.
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() throws Exception {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/TripleDouble4/build.gradle b/TripleDouble4/build.gradle
new file mode 100644
index 0000000..e0b366a
--- /dev/null
+++ b/TripleDouble4/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.5.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/TripleDouble4/gradle.properties b/TripleDouble4/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/TripleDouble4/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/TripleDouble4/gradle/wrapper/gradle-wrapper.jar b/TripleDouble4/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..05ef575
Binary files /dev/null and b/TripleDouble4/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/TripleDouble4/gradle/wrapper/gradle-wrapper.properties b/TripleDouble4/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..f23df6e
--- /dev/null
+++ b/TripleDouble4/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Oct 21 11:34:03 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
diff --git a/TripleDouble4/gradlew b/TripleDouble4/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/TripleDouble4/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/TripleDouble4/gradlew.bat b/TripleDouble4/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/TripleDouble4/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/TripleDouble4/settings.gradle b/TripleDouble4/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/TripleDouble4/settings.gradle
@@ -0,0 +1 @@
+include ':app'