Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
df3ff17
initial commit
GMSyrimis Aug 1, 2015
9bd5053
Merge branch 'master' of github.com:GMSyrimis/robinhood_hackathon
GMSyrimis Aug 1, 2015
0f8a7da
add database
hyunj0 Aug 2, 2015
2f1ea53
"initial commit with ui"
Aug 2, 2015
c9ae7e9
Merge pull request #1 from GMSyrimis/DATABASE
jvvlives2005 Aug 2, 2015
3e40464
Merge pull request #2 from GMSyrimis/joshelynui
hyunj0 Aug 2, 2015
d09fc6c
"I can get all info and call"
annalinewyork Aug 2, 2015
18087d5
"second commit- editted and added more ui"
Aug 2, 2015
06065d7
new commit
Aug 2, 2015
a67767a
"test OK for click dialog window to make a phone call or go to website"
annalinewyork Aug 2, 2015
dd1a7d7
fixed?
GMSyrimis Aug 2, 2015
c56e0cc
fixed yet
GMSyrimis Aug 2, 2015
dc9772b
try
GMSyrimis Aug 2, 2015
987f13c
updated two onclick buttons
Aug 3, 2015
68f96ca
Merge pull request #6 from GMSyrimis/joshelynui
hyunj0 Aug 3, 2015
086b3f6
add activity flow
hyunj0 Aug 3, 2015
4172801
Merge pull request #7 from GMSyrimis/UI-2
hyunj0 Aug 3, 2015
2b0fde4
"got the buttons to work and made toast"
Aug 3, 2015
2f9a6ad
Merge branch 'joshelynui'
hyunj0 Aug 3, 2015
3f42fcb
resolve merge conflicts
hyunj0 Aug 3, 2015
e22d887
layout switch
hyunj0 Aug 3, 2015
f521ff5
updated and created activities, xmls, and links
Aug 3, 2015
88007e7
Merge pull request #9 from GMSyrimis/joshelynui
jvvlives2005 Aug 3, 2015
f87ed12
AddSave user & coordinator registration into db
hyunj0 Aug 3, 2015
d954a2a
Merge branch 'DATABASE'
hyunj0 Aug 3, 2015
3edc6da
resolve merge conflicts
hyunj0 Aug 3, 2015
61e8bab
delete duplicate entry
hyunj0 Aug 3, 2015
914e88e
finishing touches
Aug 3, 2015
d3312b8
clean up imports and modify db ui
hyunj0 Aug 3, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Youth_Connect/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.gradle
/local.properties
/.idea/*
.DS_Store
/build
/captures
*.idea
*.iml
1 change: 1 addition & 0 deletions Youth_Connect/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Youth_Connect/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Youth_Connect/.idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Youth_Connect/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Youth_Connect/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Youth_Connect/.idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Youth_Connect/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
28 changes: 28 additions & 0 deletions Youth_Connect/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc3"

defaultConfig {
applicationId "nyc.c4q.youth_connect"
minSdkVersion 15
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.1'
compile 'com.squareup.okhttp:okhttp:2.4.0'
compile 'com.android.support:cardview-v7:21.0.+'
compile 'com.android.support:recyclerview-v7:21.0.+'
}
Binary file added Youth_Connect/app/libs/ormlite-android-4.48.jar
Binary file not shown.
Binary file added Youth_Connect/app/libs/ormlite-core-4.48.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions Youth_Connect/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/gsyrimis/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 *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package nyc.c4q.youth_connect;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
86 changes: 86 additions & 0 deletions Youth_Connect/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="nyc.c4q.youth_connect" >

<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".ui.UIMainActivity"
android:label="@string/app_name" >
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.UserActivity"
android:label="@string/title_activity_user"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".JSON.JSONMainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.ProviderActivity"
android:label="@string/title_activity_provider"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.Categories"
android:label="@string/title_activity_youth_facts" >
</activity>
<activity
android:name=".ui.NewCoordinatorActivity"
android:label="@string/title_activity_new_coordinator"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.ExistingCoordinatorActivity"
android:label="@string/title_activity_existing_coordinator"
android:screenOrientation="portrait" >
</activity>

<activity
android:name=".ui.NewParentActivity"
android:label=""
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.ExistingParentActivity"
android:label=""
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.RegistrationActivity"
android:label="@string/title_activity_registration"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ui.Statistics"
android:label="@string/title_activity_statistics" >
</activity>
<activity
android:name=".ui.NycGov"
android:label="@string/title_activity_nyc_gov" >
</activity>
<activity
android:name=".ui.ChildYouthTeen"
android:label="@string/title_activity_child_youth_teen" >
</activity>
<activity
android:name=".ui.OtherLinks"
android:label="@string/title_activity_other_link" >
</activity>
</application>

</manifest>
Binary file added Youth_Connect/app/src/main/assets/Arvo-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file added Youth_Connect/app/src/main/assets/Arvo-Italic.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Youth_Connect/app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
package nyc.c4q.youth_connect.JSON;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import java.util.List;

import nyc.c4q.youth_connect.R;

/**
* Created on 8/2/15.
*/
public class BerthaAdapter extends ArrayAdapter<BerthaObject> {

public BerthaAdapter(Context context, List<BerthaObject> objects) {
super(context, 0, objects);
}


@Override
public View getView(int position, View convertView, ViewGroup parent) {

//get row data
BerthaObject currentBertha = getItem(position);
// ArrayList<String> superpowerList = currentSuper.getSuperPowers();


// create row view
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.json_single_row, parent, false);
}

//locate row view children
TextView providerName = (TextView) convertView.findViewById(R.id.provide_name_hint);
TextView name = (TextView) convertView.findViewById(R.id.name_hint);
TextView phone = (TextView) convertView.findViewById(R.id.phone_number);
TextView web = (TextView) convertView.findViewById(R.id.website_url);
TextView city = (TextView) convertView.findViewById(R.id.city_hint);
TextView address = (TextView) convertView.findViewById(R.id.address_hint);
TextView zipcode = (TextView) convertView.findViewById(R.id.zipCode_hint);

//assign data values to view childen


providerName.setText(currentBertha.getProviderName());
name.setText(currentBertha.getName());
phone.setText(currentBertha.getPhoneNumber());
web.setText(currentBertha.getWebsite());
city.setText(currentBertha.getCity());
address.setText(currentBertha.getAddress());
zipcode.setText(currentBertha.getZipcode());
return convertView;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
package nyc.c4q.youth_connect.JSON;

/**
* Created on 8/2/15.
*/
public class BerthaObject {

String phoneNumber;
String website;
String name;
String providerName;
String city;
String address;
String zipcode;

public BerthaObject() {

}

public String getPhoneNumber() {
return phoneNumber;
}

public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}

public String getWebsite() {
return website;
}

public void setWebsite(String website) {
this.website = website;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getProviderName() {
return providerName;
}

public void setProviderName(String providerName) {
this.providerName = providerName;
}

public String getCity() {
return city;
}

public void setCity(String city) {
this.city = city;
}

public String getAddress() {
return address;
}

public void setAddress(String address) {
this.address = address;
}

public String getZipcode() {
return zipcode;
}

public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}
Loading