Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bond authored and Chris Bond committed Jun 12, 2012
0 parents commit 90ba842
Show file tree
Hide file tree
Showing 82 changed files with 883 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DeadlySpeciesBeta</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
29 changes: 29 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="umf.research.group"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="7"/>

<application android:icon="@drawable/icon" android:label="@string/app_name">

<activity android:name=".WelcomeScreen"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".pdt"
android:label="@string/app_name"/>

<activity android:name=".Instructions"/>

<activity android:name=".Options"
android:label="@string/app_name"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
</application>
</manifest>
3 changes: 3 additions & 0 deletions bin/jarlist.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cache for current jar dependecy. DO NOT EDIT.
# format is <lastModified> <length> <SHA-1> <path>
# Encoding is UTF-8
40 changes: 40 additions & 0 deletions proguard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
14 changes: 14 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt

# Project target.
target=Google Inc.:Google APIs:7
Binary file added res/drawable-hdpi/blue_btn_normal.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/blue_btn_pressed.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/btn_default_normal.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/green_btn_normal.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/green_btn_pressed.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/hydmordr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/red_btn_normal.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/red_btn_pressed.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/yellow_btn_normal.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/yellow_btn_pressed.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/yellow_floating_heart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/yellow_floating_heart_leaf.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/yellow_floating_heart_scale.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-ldpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/branched_leaves.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/curly_pond_weed_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/curly_pond_weed_2.jpg
Binary file added res/drawable-mdpi/curly_pond_weed_3.jpg
Binary file added res/drawable-mdpi/curly_pond_weed_4.jpg
Binary file added res/drawable-mdpi/curly_pond_weed_5.jpg
Binary file added res/drawable-mdpi/elodea_1.jpg
Binary file added res/drawable-mdpi/elodea_2.jpg
Binary file added res/drawable-mdpi/eurasian_watermilfoil_1.jpg
Binary file added res/drawable-mdpi/eurasian_watermilfoil_2.jpg
Binary file added res/drawable-mdpi/european_frog_bit_1.jpg
Binary file added res/drawable-mdpi/european_frog_bit_2.jpg
Binary file added res/drawable-mdpi/european_frog_bit_3.jpg
Binary file added res/drawable-mdpi/european_frog_bit_4.jpg
Binary file added res/drawable-mdpi/european_frog_bit_5.jpg
Binary file added res/drawable-mdpi/european_naiad_1.png
Binary file added res/drawable-mdpi/european_naiad_2.jpg
Binary file added res/drawable-mdpi/feathered_leaves.JPG
Binary file added res/drawable-mdpi/forked_leaves.JPG
Binary file added res/drawable-mdpi/hydrilla_1.jpg
Binary file added res/drawable-mdpi/hydrilla_2.jpg
Binary file added res/drawable-mdpi/hydrilla_3.jpg
Binary file added res/drawable-mdpi/icon.png
Binary file added res/drawable-mdpi/parrot_feather_1.jpg
Binary file added res/drawable-mdpi/parrot_feather_2.jpg
Binary file added res/drawable-mdpi/water_chestnut_1.jpg
Binary file added res/drawable-mdpi/water_chestnut_2.jpg
Binary file added res/drawable-mdpi/water_chestnut_3.jpg
Binary file added res/drawable-mdpi/water_chestnut_4.jpg
Binary file added res/drawable-mdpi/water_chestnut_5.jpg
Binary file added res/drawable-mdpi/yellow_floating_heart_1.jpg
Binary file added res/drawable-mdpi/yellow_floating_heart_2.jpg
Binary file added res/drawable-mdpi/yellow_floating_heart_3.jpg
Binary file added res/drawable-mdpi/yellow_floating_heart_4.jpg
Binary file added res/drawable-mdpi/yellow_floating_heart_5.jpg
13 changes: 13 additions & 0 deletions res/layout/blue_btn.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@drawable/blue_btn_pressed" />
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@drawable/blue_btn_pressed" />
<item android:state_focused="false"
android:state_pressed="true"
android:drawable="@@drawable/blue_btn_pressed" />
<item android:drawable="@drawable/blue_btn_normal" />
</selector>
13 changes: 13 additions & 0 deletions res/layout/btn_yellow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@drawable/yellow_btn_pressed" />
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@drawable/yellow_btn_pressed" />
<item android:state_focused="false"
android:state_pressed="true"
android:drawable="@@drawable/yellow_btn_pressed" />
<item android:drawable="@drawable/yellow_btn_normal" />
</selector>
13 changes: 13 additions & 0 deletions res/layout/green_btn.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@drawable/green_btn_pressed" />
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@drawable/green_btn_pressed" />
<item android:state_focused="false"
android:state_pressed="true"
android:drawable="@@drawable/green_btn_pressed" />
<item android:drawable="@drawable/green_btn_normal" />
</selector>
12 changes: 12 additions & 0 deletions res/layout/instructions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Answer each question using the given pictures for reference. Each picture presented in the gallery can become bigger by clicking on it." android:textSize="25dip" android:textStyle="bold" android:typeface="sans"/>
<Button android:layout_width="fill_parent" android:id="@+id/btn_ins_start" android:layout_weight="1" android:layout_marginTop="20dip" android:layout_height="80dip" android:layout_marginBottom="20dip" android:textSize="30dip" android:text="Start" android:layout_alignParentBottom="true"/>
</RelativeLayout>
7 changes: 7 additions & 0 deletions res/layout/list_item.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="15dp"
android:textSize="30sp" >
</TextView>
12 changes: 12 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
</LinearLayout>
8 changes: 8 additions & 0 deletions res/layout/options.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

</LinearLayout>
77 changes: 77 additions & 0 deletions res/layout/pdt.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/relativeLayoutFull"
android:orientation="vertical"
android:background="#ffffff"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<TextView
android:id="@+id/question_box"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#ffffff"
android:textColor="#0D0D0D"
android:textSize="16dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="2dp"
android:layout_marginTop="4dp"
android:textStyle="bold"/>

<Gallery
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/question_box"/>
<LinearLayout
android:id="@+id/button_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">

<Button
android:id="@+id/btn1_yes"
android:layout_width="wrap_content"
android:layout_height="55dp"
android:text="Yes"
android:layout_weight="1"
android:textSize="20dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="1dp"/>

<Button
android:id="@+id/btn2_no"
android:layout_width="wrap_content"
android:layout_height="55dp"
android:text="No"
android:layout_weight="1"
android:textSize="20dp"
android:layout_marginLeft="1dp"
android:layout_marginRight="1dp"
android:layout_marginBottom="1dp"/>

</LinearLayout>
<ImageView
android:id="@+id/expandedImage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:visibility="gone" />

<TextView
android:id="@+id/label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/gallery"
android:layout_centerHorizontal="true"
android:textSize="18dp"
android:textStyle="bold"
android:textColor="#000000"/>

</RelativeLayout>
Expand Down
13 changes: 13 additions & 0 deletions res/layout/red_btn.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_focused="true"
android:state_pressed="false"
android:drawable="@drawable/red_btn_pressed" />
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@drawable/red_btn_pressed" />
<item android:state_focused="false"
android:state_pressed="true"
android:drawable="@@drawable/red_btn_pressed" />
<item android:drawable="@drawable/red_btn_normal" />
</selector>
11 changes: 11 additions & 0 deletions res/layout/welcome_screen.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:weightSum="1.0">
<Button android:layout_width="fill_parent" android:id="@+id/btn_start" android:layout_weight="1" android:text="Start" android:textSize="30dip" android:layout_height="80dp" android:layout_marginBottom="20dp" android:layout_marginTop="40dp" android:layout_marginRight="15dp" android:layout_marginLeft="15dp"></Button>
<Button android:layout_width="fill_parent" android:id="@+id/btn_instructions" android:layout_weight="1" android:textSize="30dip" android:text="Instructions" android:layout_height="80dp" android:layout_marginBottom="20dp" android:layout_marginTop="20dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp"></Button>
<Button android:layout_width="fill_parent" android:id="@+id/btn_options" android:layout_weight="1" android:textSize="30dip" android:text="Options" android:layout_height="80dp" android:layout_marginBottom="20dp" android:layout_marginTop="20dp" android:layout_marginLeft="15dp" android:layout_marginRight="15dp"></Button>
</LinearLayout>
6 changes: 6 additions & 0 deletions res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="HelloGallery">
<attr name="android:galleryItemBackground" />
</declare-styleable>
</resources>
6 changes: 6 additions & 0 deletions res/values/gallery_attributes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="GalleryAttrs">
<attr name="android:galleryItemBackground" />
</declare-styleable>
</resources>
5 changes: 5 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, mainscreen!</string>
<string name="app_name">Invasive Species Beta</string>
</resources>
41 changes: 41 additions & 0 deletions src/umf/research/group/Entry.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package umf.research.group;

public class Entry {
private String questionDescription;
private Integer [] resID;
private String yesNext, noNext;
private int gameState;

public Entry (String s, Integer [] i, String yn, String nn, int stg) {
resID = i;
questionDescription = s;
yesNext = yn;
noNext = nn;
gameState = stg;
}

public Integer [] getResIds() {
return resID;
}

public String getQuestionDescription(){
return questionDescription;
}

public String getYesNext(){
return yesNext;
}

public String getNoNext(){
return noNext;
}

public int getGameState() {
return gameState;
}

public Entry getMe() {
return this;
}

}
Loading

0 comments on commit 90ba842

Please sign in to comment.