diff --git a/.gitignore b/.gitignore
index ccf2efe..1f182fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,9 @@ proguard/
# Log Files
*.log
+
+#IML Files
+*.iml
+
+#IDEA files
+/.idea
diff --git a/README.md b/README.md
index 433b01c..2a34eed 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,17 @@
-# Access Code 2.1 -- Robin Hood Hackathon
-## Aug 1 - Aug 3
+# Access Code 2.1 -- Robin Hood Hackathon: The "One More Chance" App
+## Created by Team Bilingual (a.k.a. Ray Acevedo, Allison Bojarski, Elvis Boves, Anthony McBride, & Jorge Reina)
-This is the Access Code 2.1 Repo for the Robin Hood Hackathon. Please fork this repo for your own projects this weekend so we can easily find them on Monday. (Note: this was initialized with a .gitignore that you may need to change).
+The "One More Chance" app is a bilingual (English/Spanish) portal to help NYC-based Latina/o youth pursue both financial stability and educational opportunity. We're powered by the [Aunt Bertha API](https://www.auntbertha.com/developers).
+
+###Features:
+* Allows the user to search for local financial and educational services
+* Retains user's info (name, age, location by zipcode, etc.) for future searches to return specific, tailored search results
+* Attractive UI that both visually and textually appeals to a youthful Latina/o audience
+
+
+
-Taking pictures? Tweeting? Find us!
-We are everywhere! [@C4Qnyc](https://twitter.com/c4qnyc), [@RobinHoodNYC](https://twitter.com/RobinHoodNYC), [@AuntBertha](https://twitter.com/AuntBertha), [@SingleStop](https://twitter.com/SingleStop)
+[@C4Qnyc](https://twitter.com/c4qnyc), [@RobinHoodNYC](https://twitter.com/RobinHoodNYC), [@AuntBertha](https://twitter.com/AuntBertha), [@SingleStop](https://twitter.com/SingleStop)
We're also [#RHfunded](https://twitter.com/hashtag/RHFunded?src=hash) [#QueensTech](https://twitter.com/hashtag/QueensTech?src=hash) [#AndroidDev](https://twitter.com/hashtag/AndroidDev?src=hash) [#Android](https://twitter.com/hashtag/Android?src=hash) [#hack4good]() [#hackathon](https://twitter.com/hashtag/hack4good?src=hash)
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..4291106
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,30 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ applicationId "alizinha.c4q.nyc.onemorechance"
+ minSdkVersion 7
+ targetSdkVersion 22
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:appcompat-v7:22.2.0'
+ compile 'com.squareup.okhttp:okhttp:2.4.0'
+ compile 'com.squareup.retrofit:retrofit:1.9.0'
+ compile 'com.google.code.gson:gson:2.3'
+ compile 'com.android.support:design:22.2.0'
+ compile 'com.memetix:microsoft-translator-java-api:0.6.2'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..7d838ea
--- /dev/null
+++ b/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/c4q-Allison/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/app/src/androidTest/java/alizinha/c4q/nyc/onemorechance/ApplicationTest.java b/app/src/androidTest/java/alizinha/c4q/nyc/onemorechance/ApplicationTest.java
new file mode 100644
index 0000000..c0433e9
--- /dev/null
+++ b/app/src/androidTest/java/alizinha/c4q/nyc/onemorechance/ApplicationTest.java
@@ -0,0 +1,13 @@
+package alizinha.c4q.nyc.onemorechance;
+
+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/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..125dd94
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/APIData.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/APIData.java
new file mode 100644
index 0000000..6314d35
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/APIData.java
@@ -0,0 +1,11 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import java.util.ArrayList;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/2/15.
+ */
+public class APIData {
+
+ public ArrayList programs;
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/AddEventToCalendar.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/AddEventToCalendar.java
new file mode 100644
index 0000000..243909a
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/AddEventToCalendar.java
@@ -0,0 +1,84 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.support.v7.app.ActionBarActivity;
+import android.os.Bundle;
+import android.content.Intent;
+import android.provider.CalendarContract;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+/**
+ * Created by Allison Bojarski on 8/1/15.
+ */
+
+
+public class AddEventToCalendar extends ActionBarActivity {
+ private Button mButtonSubmit;
+ private EditText mEditTextNewTitle;
+ private EditText mEditTextNewLocation;
+ private EditText mEditTextDescription;
+ private String getTitle;
+ private String getLocation;
+ private String getDescription;
+ boolean isSpanish = false;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_add_event_to_calendar);
+
+ isSpanish = getIntent().getFlags() == 1;
+
+ mButtonSubmit = (Button) findViewById(R.id.submit);
+ mEditTextNewTitle = (EditText) findViewById(R.id.newTitle);
+ mEditTextNewLocation = (EditText) findViewById(R.id.newLocation);
+ mEditTextDescription = (EditText) findViewById(R.id.newDescription);
+
+ if(isSpanish) {
+ mEditTextNewTitle.setHint("Titulo de Nuevo Evento");
+ mEditTextNewLocation.setHint("Ubicación");
+ mEditTextDescription.setHint("Descripción");
+ mButtonSubmit.setText("Crear Evento");
+ }
+
+
+
+
+ mButtonSubmit.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+
+ if (mEditTextNewTitle.getText() != null) {
+ getTitle = mEditTextNewTitle.getText().toString();
+ } else {
+ getTitle = "";
+ }
+
+
+ if (mEditTextNewLocation.getText() != null) {
+ getLocation = mEditTextNewLocation.getText().toString();
+ } else {
+ getLocation = "";
+ }
+
+
+ if (mEditTextDescription.getText() != null) {
+ getDescription = mEditTextDescription.getText().toString();
+ } else {
+ getDescription = "";
+ }
+
+ Intent calIntent = new Intent(Intent.ACTION_INSERT);
+ calIntent.setType("vnd.android.cursor.item/event");
+ calIntent.putExtra(CalendarContract.Events.TITLE, getTitle);
+ calIntent.putExtra(CalendarContract.Events.EVENT_LOCATION, getLocation);
+ calIntent.putExtra(CalendarContract.Events.DESCRIPTION, getDescription);
+ startActivity(calIntent);
+ }
+ });
+
+ }
+}
+
+
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/AuntBerthaService.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/AuntBerthaService.java
new file mode 100644
index 0000000..eb1ee86
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/AuntBerthaService.java
@@ -0,0 +1,18 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import retrofit.Callback;
+import retrofit.http.GET;
+import retrofit.http.Path;
+import retrofit.http.Query;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/1/15.
+ */
+public interface AuntBerthaService {
+
+ @GET("/zipcodes/{zipcode}/programs")
+ void getProgramByZipcode(@Path("zipcode")String zipcode, @Query("api_key") String apiKey, @Query("serviceTag") String tags, @Query("cursor") int cursor, @Query("limit") int limit, Callback cb);
+
+
+
+}
\ No newline at end of file
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/CustomAdapter.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/CustomAdapter.java
new file mode 100644
index 0000000..ab1764f
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/CustomAdapter.java
@@ -0,0 +1,40 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.content.Context;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.TextView;
+
+import java.util.ArrayList;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/2/15.
+ */
+public class CustomAdapter extends ArrayAdapter {
+
+
+ Office[] offices;
+ public CustomAdapter(Context context, int resource, Office[] offices) {
+ super(context, resource, offices);
+ this.offices = offices;
+ }
+
+ @Override
+ public View getView(int position, View convertView, ViewGroup parent) {
+ LayoutInflater inflater = (LayoutInflater) getContext()
+ .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+
+ View view = inflater.inflate(R.layout.row, parent, false);
+ TextView name = (TextView) view.findViewById(R.id.title);
+ TextView addy = (TextView) view.findViewById(R.id.address);
+ name.setText(offices[position].name);
+ addy.setText(offices[position].address1);
+ Log.w("TAG", "Called");
+ return view;
+
+ }
+
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/Hours.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Hours.java
new file mode 100644
index 0000000..1f5e46d
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Hours.java
@@ -0,0 +1,7 @@
+package alizinha.c4q.nyc.onemorechance;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/2/15.
+ */
+public class Hours {
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/Info.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Info.java
new file mode 100644
index 0000000..ea3f70c
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Info.java
@@ -0,0 +1,122 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.Bundle;
+import android.support.design.widget.FloatingActionButton;
+import android.support.v7.app.AppCompatActivity;
+import android.view.View;
+import android.widget.CheckBox;
+import android.widget.EditText;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+
+public class Info extends AppCompatActivity {
+ LinearLayout advancedSearchLayout;
+ EditText nameEditText, zipcodeEditText, age;
+ String nameString, zipcodeString, ageString, immigrationStatus;
+ CheckBox undocumented, immigrants, refugee, latinoYes, latinoNo, english, spanish, both;
+ boolean isSpanish = false;
+ //Button search, advancedSearch;
+ TextView preferredProgramLanguage, citizenStatus;
+ FloatingActionButton sb, asb, sb2;
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_info);
+
+
+ initializeViews();
+
+ isSpanish = getIntent().getFlags() == 1;
+
+ advancedSearchLayout.setVisibility(View.GONE);
+
+ if (isSpanish) {
+
+ age.setText("Edad");
+ zipcodeEditText.setHint("Codigo Postal");
+ undocumented.setText("Indocumentado");
+ immigrants.setText("Inmigrante");
+ refugee.setText("Refujiado");
+ latinoYes.setText("Si");
+ //search.setText("Buscar");
+ //advancedSearch.setText("Busqueda Avanzada");
+ preferredProgramLanguage.setText("Preferencia de Lenguaje");
+ citizenStatus.setText("Status Migratorio");
+
+ }
+
+ }
+
+
+ public void initializeViews() {
+ advancedSearchLayout = (LinearLayout) findViewById(R.id.advancedSearchLayoutID);
+ zipcodeEditText = (EditText) findViewById(R.id.zipcodeID);
+ age = (EditText) findViewById(R.id.ageID);
+ undocumented = (CheckBox) findViewById(R.id.undocumentedID);
+ immigrants = (CheckBox) findViewById(R.id.immigrantsID);
+ refugee = (CheckBox) findViewById(R.id.refugeeID);
+ latinoYes = (CheckBox) findViewById(R.id.latinoYesID);
+ latinoNo = (CheckBox) findViewById(R.id.latinoNoID);
+ english = (CheckBox) findViewById(R.id.englishID);
+ spanish = (CheckBox) findViewById(R.id.spanishID);
+ both = (CheckBox) findViewById(R.id.bothID);
+ preferredProgramLanguage = (TextView) findViewById(R.id.preferredProgramLanguageID);
+ citizenStatus = (TextView) findViewById(R.id.citizenStatusID);
+ sb = (FloatingActionButton) findViewById(R.id.searchButtonID);
+ asb = (FloatingActionButton) findViewById(R.id.advancedSearchButtonID);
+ sb2 = (FloatingActionButton) findViewById(R.id.searchButtonID2);
+
+ }
+
+ public void advancedSearch(View view) {
+ advancedSearchLayout.setVisibility(View.VISIBLE);
+ sb.setVisibility(View.GONE);
+ asb.setVisibility(View.GONE);
+ sb2.setVisibility(View.VISIBLE);
+
+ }
+
+ public void search(View view) {
+
+ zipcodeString = zipcodeEditText.getText().toString();
+ ageString = age.getText().toString();
+
+ SharedPreferences info;
+ info = Info.this.getSharedPreferences("PREFS_NAME", 0);
+ SharedPreferences.Editor editor = info.edit();
+
+ editor.putString("name", nameString);
+ editor.putString("zipcode", zipcodeString);
+ editor.putString("age", ageString);
+
+
+ if (undocumented.isChecked() == true) {
+ immigrationStatus = "undocumented";
+ } else if (immigrants.isChecked() == true) {
+ immigrationStatus = "immigrant";
+ } else {
+ immigrationStatus = "refugee";
+ }
+
+ editor.putString("immigrationStatus", immigrationStatus);
+ editor.commit();
+
+
+ Intent intent = new Intent(Info.this, SearchResults.class);
+ if (isSpanish) {
+ intent.setFlags(1);
+ intent.putExtra("zipcode", zipcodeString);
+ startActivity(intent);
+ } else {
+ intent.putExtra("zipcode", zipcodeString);
+ startActivity(intent);
+ }
+
+ }
+
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/MainActivity.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/MainActivity.java
new file mode 100644
index 0000000..aee20c6
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/MainActivity.java
@@ -0,0 +1,58 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.TextView;
+
+//import com.squareup.okhttp.Response;
+//import javax.security.auth.callback.Callback;
+
+
+public class MainActivity extends Activity {
+
+ Button test;
+ TextView englishTextView, spanishTextView;
+ String name;
+
+
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+
+ SharedPreferences settings;// = MainActivity.this.getSharedPreferences("PREFS_NAME", 0);
+ settings = MainActivity.this.getSharedPreferences("PREFS_NAME", 0);
+ name = settings.getString("name", "");
+
+ englishTextView = (TextView) findViewById(R.id.english_button);
+ spanishTextView = (TextView) findViewById(R.id.spanish_button);
+
+
+ englishTextView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(MainActivity.this, Info.class);
+ intent.setFlags(0);
+ startActivity(intent);
+
+ }
+ });
+ spanishTextView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(MainActivity.this, Info.class);
+ intent.setFlags(1);
+ startActivity(intent);
+
+ }
+ });
+
+
+ }
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/Office.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Office.java
new file mode 100644
index 0000000..3ff2900
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Office.java
@@ -0,0 +1,17 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import com.google.gson.annotations.SerializedName;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/2/15.
+ */
+public class Office {
+
+ public String name;
+ public String city;
+ public String address1;
+ public String state;
+
+ @SerializedName("phone_number")
+ public String phoneNumber;
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/Program.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Program.java
new file mode 100644
index 0000000..083ab43
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/Program.java
@@ -0,0 +1,18 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import com.google.gson.annotations.SerializedName;
+
+import java.util.ArrayList;
+
+/**
+ * Created by c4q-anthony-mcbride on 8/2/15.
+ */
+public class Program {
+
+ public ArrayList offices;
+ public String description;
+
+ @SerializedName("website_url")
+ public String website;
+
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/ProgramInfo.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/ProgramInfo.java
new file mode 100644
index 0000000..92bfef5
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/ProgramInfo.java
@@ -0,0 +1,57 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.v7.app.ActionBarActivity;
+import android.view.View;
+import android.widget.TextView;
+
+
+public class ProgramInfo extends ActionBarActivity {
+ boolean isSpanish = false;
+
+ TextView mDescription;
+ TextView mTitle;
+ TextView mAddress;
+ TextView mPhoneNumber;
+ TextView mWebsite;
+ String description;
+ String title;
+ String address;
+ String phoneNumber;
+ String website;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_program_info);
+
+ description = getIntent().getStringExtra("description");
+ title = getIntent().getStringExtra("title");
+ address = getIntent().getStringExtra("address");
+ phoneNumber = getIntent().getStringExtra("phone_number");
+ website = getIntent().getStringExtra("website");
+
+ mWebsite = (TextView) findViewById(R.id.url);
+ mWebsite.setText(website);
+
+ mPhoneNumber = (TextView) findViewById(R.id.phone_number);
+ mPhoneNumber.setText(phoneNumber);
+
+ mDescription = (TextView) findViewById(R.id.description);
+ mDescription.setText(description);
+
+ mTitle = (TextView) findViewById(R.id.titleID);
+ mTitle.setText(title);
+
+ mAddress = (TextView) findViewById(R.id.location);
+ mAddress.setText(address);
+ }
+ public void bookAppointment(View v) {
+ Intent intent = new Intent(ProgramInfo.this, AddEventToCalendar.class);
+ startActivity(intent);
+ }
+
+
+
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/SearchResults.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/SearchResults.java
new file mode 100644
index 0000000..f49ff88
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/SearchResults.java
@@ -0,0 +1,154 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.v7.app.ActionBarActivity;
+import android.util.Log;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.Button;
+import android.widget.ListView;
+import android.widget.TextView;
+import android.widget.Toast;
+import org.apache.http.protocol.HTTP;
+import java.util.ArrayList;
+import retrofit.Callback;
+import retrofit.RestAdapter;
+import retrofit.RetrofitError;
+import retrofit.client.Response;
+
+
+public class SearchResults extends ActionBarActivity {
+ ListView lv;
+ private TextView mTextViewSearchResults;
+ private Button mButtonNewSearch;
+ boolean isSpanish = false;
+ Button app;
+
+ public static final String BASE_URL = "https://searchbertha-hrd.appspot.com/_ah/api/search/v1/";
+ private static final String API_KEY = "75ea03a922dc66db2560a23cc4eed49e";
+
+ RestAdapter restAdapter = new RestAdapter.Builder()
+ .setEndpoint(BASE_URL)
+ .build();
+
+ AuntBerthaService service = restAdapter.create(AuntBerthaService.class);
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_search_results);
+
+ isSpanish = getIntent().getFlags() == 1;
+
+ mTextViewSearchResults = (TextView) findViewById(R.id.text_view_search_result);
+ mButtonNewSearch = (Button) findViewById(R.id.button_new_search);
+
+ if (isSpanish) {
+ mTextViewSearchResults.setText("Resultados");
+ mButtonNewSearch.setText("Nueva Busqueda");
+ }
+
+ mButtonNewSearch.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(SearchResults.this, Info.class);
+ if (isSpanish) {
+ intent.setFlags(1);
+ startActivity(intent);
+ } else {
+ startActivity(intent);
+ }
+ }
+ });
+
+ lv = (ListView) findViewById(R.id.list_item);
+
+
+ loadSearchResults();
+
+
+ }
+
+ public void loadSearchResults() {
+ String zipCode = getIntent().getStringExtra("zipcode");
+ Log.v("Tags", zipCode);
+
+ service.getProgramByZipcode(zipCode, API_KEY, "mentoring,ged/high-school%20equivalency", 0, 10, new Callback() {
+
+
+ @Override
+ public void success(final APIData apiData, Response response) {
+ //Toast.makeText(getApplicationContext(), apiData.programs.get(0).offices.get(0).name, Toast.LENGTH_LONG).show();
+ lv = (ListView) findViewById(R.id.list_item);
+
+ ArrayList your_array_list = new ArrayList();
+
+ final Office[] offices = new Office[10];
+ for (int i = 0; i < 10; i++) {
+ Office o = new Office();
+
+ o.name = apiData.programs.get(i).offices.get(0).name;
+ o.address1 = apiData.programs.get(i).offices.get(0).address1 + "\n"
+ + apiData.programs.get(i).offices.get(0).city + ", "
+ + apiData.programs.get(i).offices.get(0).state;
+
+ offices[i] = o;
+ }
+
+
+ CustomAdapter adapter = new CustomAdapter(getApplicationContext(), R.layout.row, offices);
+
+
+ lv.setAdapter(adapter);
+ lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+ @Override
+ public void onItemClick(AdapterView> adapterView, View view, int i, long l) {
+ String description = apiData.programs.get(i).description;
+ String website = apiData.programs.get(i).website;
+ String title = apiData.programs.get(i).offices.get(0).name;
+ String phoneNumber = apiData.programs.get(i).offices.get(0).phoneNumber;
+ String address = apiData.programs.get(i).offices.get(0).address1 + "\n"
+ + apiData.programs.get(i).offices.get(0).city + ", "
+ + apiData.programs.get(i).offices.get(0).state;
+
+ Intent intent = new Intent(SearchResults.this, ProgramInfo.class);
+ intent.putExtra("description", description);
+ intent.putExtra("title", title);
+ intent.putExtra("address", address);
+ intent.putExtra("phone_number", phoneNumber);
+ intent.putExtra("website", website);
+ startActivity(intent);
+ }
+ });
+
+ }
+
+ @Override
+ public void failure(RetrofitError error) {
+ Toast.makeText(getApplicationContext(), "Failure", Toast.LENGTH_LONG).show();
+ Log.w("TAG", error.toString());
+
+ }
+ });
+ }
+
+
+ public void bookAppointment(View v) {
+ Intent intent = new Intent(SearchResults.this, AddEventToCalendar.class);
+ startActivity(intent);
+ }
+
+ public void giveFeedbackOnAppointment(View v) {
+ Intent emailIntent = new Intent(Intent.ACTION_SEND);
+// The intent does not have a URI, so declare the "text/plain" MIME type
+ emailIntent.setType(HTTP.PLAIN_TEXT_TYPE);
+ emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"support@auntbertha.com"}); // recipients
+ emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Change Request C4Q");
+ emailIntent.putExtra(Intent.EXTRA_TEXT, "If you'd like to give feedback on a particular service, please write \n" +
+ "their name and give a rating between one (worst) and five (best) stars. If you found any wrong information \n" +
+ "in our app as to when a location is open, etc., please provide that feedback here. Thank you.");
+ startActivity(emailIntent);
+ }
+
+}
diff --git a/app/src/main/java/alizinha/c4q/nyc/onemorechance/SplashScreen.java b/app/src/main/java/alizinha/c4q/nyc/onemorechance/SplashScreen.java
new file mode 100644
index 0000000..1cef123
--- /dev/null
+++ b/app/src/main/java/alizinha/c4q/nyc/onemorechance/SplashScreen.java
@@ -0,0 +1,40 @@
+package alizinha.c4q.nyc.onemorechance;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+
+
+public class SplashScreen extends Activity {
+
+ // Splash screen timer
+ private static int SPLASH_TIME_OUT = 4000;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_splash_screen);
+ new Handler().postDelayed(new Runnable() {
+
+ /*
+ * Showing splash screen with a timer. This will be useful when you
+ * want to show case your app logo / company
+ */
+
+ @Override
+ public void run() {
+ // This method will be executed once the timer is over
+ // Start your app main activity
+ Intent i = new Intent(SplashScreen.this, MainActivity.class);
+ startActivity(i);
+
+ // close this activity
+ finish();
+ }
+ }, SPLASH_TIME_OUT);
+ }
+
+
+
+}
diff --git a/app/src/main/res/drawable/appointment.png b/app/src/main/res/drawable/appointment.png
new file mode 100644
index 0000000..17a8914
Binary files /dev/null and b/app/src/main/res/drawable/appointment.png differ
diff --git a/app/src/main/res/drawable/auntbertha.png b/app/src/main/res/drawable/auntbertha.png
new file mode 100644
index 0000000..73818b2
Binary files /dev/null and b/app/src/main/res/drawable/auntbertha.png differ
diff --git a/app/src/main/res/drawable/omclogo.png b/app/src/main/res/drawable/omclogo.png
new file mode 100644
index 0000000..5974c7f
Binary files /dev/null and b/app/src/main/res/drawable/omclogo.png differ
diff --git a/app/src/main/res/drawable/plus.png b/app/src/main/res/drawable/plus.png
new file mode 100644
index 0000000..15b1c4d
Binary files /dev/null and b/app/src/main/res/drawable/plus.png differ
diff --git a/app/src/main/res/drawable/robinhood.png b/app/src/main/res/drawable/robinhood.png
new file mode 100644
index 0000000..e715bb8
Binary files /dev/null and b/app/src/main/res/drawable/robinhood.png differ
diff --git a/app/src/main/res/drawable/search.png b/app/src/main/res/drawable/search.png
new file mode 100644
index 0000000..39b3b4d
Binary files /dev/null and b/app/src/main/res/drawable/search.png differ
diff --git a/app/src/main/res/drawable/singlestop.png b/app/src/main/res/drawable/singlestop.png
new file mode 100644
index 0000000..174f6c0
Binary files /dev/null and b/app/src/main/res/drawable/singlestop.png differ
diff --git a/app/src/main/res/layout/activity_add_event_to_calendar.xml b/app/src/main/res/layout/activity_add_event_to_calendar.xml
new file mode 100644
index 0000000..5aca7fd
--- /dev/null
+++ b/app/src/main/res/layout/activity_add_event_to_calendar.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_info.xml b/app/src/main/res/layout/activity_info.xml
new file mode 100644
index 0000000..de417ea
--- /dev/null
+++ b/app/src/main/res/layout/activity_info.xml
@@ -0,0 +1,202 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_jsonparsing.xml b/app/src/main/res/layout/activity_jsonparsing.xml
new file mode 100644
index 0000000..a20fdd2
--- /dev/null
+++ b/app/src/main/res/layout/activity_jsonparsing.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..cf10deb
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_program_info.xml b/app/src/main/res/layout/activity_program_info.xml
new file mode 100644
index 0000000..a483db2
--- /dev/null
+++ b/app/src/main/res/layout/activity_program_info.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_search_results.xml b/app/src/main/res/layout/activity_search_results.xml
new file mode 100644
index 0000000..64f6637
--- /dev/null
+++ b/app/src/main/res/layout/activity_search_results.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_splash_screen.xml b/app/src/main/res/layout/activity_splash_screen.xml
new file mode 100644
index 0000000..c3add93
--- /dev/null
+++ b/app/src/main/res/layout/activity_splash_screen.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/row.xml b/app/src/main/res/layout/row.xml
new file mode 100644
index 0000000..60ce4de
--- /dev/null
+++ b/app/src/main/res/layout/row.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/menu_add_event_to_calendar.xml b/app/src/main/res/menu/menu_add_event_to_calendar.xml
new file mode 100644
index 0000000..9065012
--- /dev/null
+++ b/app/src/main/res/menu/menu_add_event_to_calendar.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_info.xml b/app/src/main/res/menu/menu_info.xml
new file mode 100644
index 0000000..8676353
--- /dev/null
+++ b/app/src/main/res/menu/menu_info.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_jsonparsing.xml b/app/src/main/res/menu/menu_jsonparsing.xml
new file mode 100644
index 0000000..da4d093
--- /dev/null
+++ b/app/src/main/res/menu/menu_jsonparsing.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml
new file mode 100644
index 0000000..b1cb908
--- /dev/null
+++ b/app/src/main/res/menu/menu_main.xml
@@ -0,0 +1,6 @@
+
diff --git a/app/src/main/res/menu/menu_practice.xml b/app/src/main/res/menu/menu_practice.xml
new file mode 100644
index 0000000..be5e042
--- /dev/null
+++ b/app/src/main/res/menu/menu_practice.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_program_info.xml b/app/src/main/res/menu/menu_program_info.xml
new file mode 100644
index 0000000..a4f166d
--- /dev/null
+++ b/app/src/main/res/menu/menu_program_info.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_search_results.xml b/app/src/main/res/menu/menu_search_results.xml
new file mode 100644
index 0000000..f2b3b11
--- /dev/null
+++ b/app/src/main/res/menu/menu_search_results.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/menu/menu_splash_screen.xml b/app/src/main/res/menu/menu_splash_screen.xml
new file mode 100644
index 0000000..fa86fd4
--- /dev/null
+++ b/app/src/main/res/menu/menu_splash_screen.xml
@@ -0,0 +1,7 @@
+
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
new file mode 100644
index 0000000..8cafa8e
--- /dev/null
+++ b/app/src/main/res/values-es/strings.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..234a684
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,38 @@
+
+ OneMoreChance
+ Please select language
+ Por Favor Seleccionar Idioma
+ Settings
+ Info
+ Hello world!
+ SearchResults
+ AddEventToCalendar
+ ProgramInfo
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean viverra, velit eget finibus faucibus, enim nisi dignissim elit, sit amet vestibulum nibh diam eu nunc. Etiam quam justo, semper sed sem et, luctus malesuada lorem. Nam tincidunt velit egestas neque suscipit hendrerit. Mauris iaculis et lorem et scelerisque. Nam porttitor vel mi ac volutpat. Aliquam a enim ac dui aliquam molestie id laoreet mi. Suspendisse rutrum lorem erat, tempor ultricies lorem lacinia quis. Proin id iaculis purus, non vulputate felis. Ut a est eget metus iaculis euismod id vel dui.
+ practice
+ Name
+ Zip Code
+ Advanced Search
+ Search
+ Age
+ Citizenship Status
+ Title
+ Write the title to your new event
+ Write the location to the event here.
+ Location
+ Write your description
+ Description
+ Create Event
+ Undocumented
+ Immigrants
+ Refugees
+ Yes
+ Preferred program language
+ English
+ Spanish
+ New Search
+ Search Results
+ Give feedback on appointment
+ SplashScreen
+
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..766ab99
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..d3ff69d
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,19 @@
+// 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.1.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/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/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..0c71e76
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
diff --git a/gradlew b/gradlew
new file mode 100755
index 0000000..91a7e26
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,164 @@
+#!/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
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# 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\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+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"`
+
+ # 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/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..aec9973
--- /dev/null
+++ b/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/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'