Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kshimabukuro committed Jun 28, 2012
0 parents commit e2e720b
Show file tree
Hide file tree
Showing 99 changed files with 1,284 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?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 kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.esri.arcgis.android.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>Honolulu Flood Zones</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>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
58 changes: 58 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- TODO *KS: version number -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gov.honolulu.floodzones"
android:versionCode="20"
android:versionName="2.0"
android:installLocation="auto">

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

<uses-sdk android:minSdkVersion="4" />


<uses-feature android:glEsVersion="0x00020000" android:required="true"/>


<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

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

<activity android:name=".main"
android:label="@string/app_name"
android:configChanges="orientation"
android:theme="@android:style/Theme.NoTitleBar">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>

<activity android:name=".checkenablegps"
android:label="Honolulu Flood Zones: Check GPS"
android:configChanges="orientation"
android:theme="@android:style/Theme.NoTitleBar">
</activity>

<activity android:name=".floodzones"
android:label="Honolulu Flood Zones"
android:theme="@android:style/Theme.NoTitleBar"
android:configChanges="orientation">
</activity>

</application>

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

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

</manifest>
58 changes: 58 additions & 0 deletions bin/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- TODO *KS: version number -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gov.honolulu.floodzones"
android:versionCode="20"
android:versionName="2.0"
android:installLocation="auto">

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

<uses-sdk android:minSdkVersion="4" />


<uses-feature android:glEsVersion="0x00020000" android:required="true"/>


<uses-feature android:glEsVersion="0x00020000" android:required="true"/>

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

<activity android:name=".main"
android:label="@string/app_name"
android:configChanges="orientation"
android:theme="@android:style/Theme.NoTitleBar">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>

<activity android:name=".checkenablegps"
android:label="Honolulu Flood Zones: Check GPS"
android:configChanges="orientation"
android:theme="@android:style/Theme.NoTitleBar">
</activity>

<activity android:name=".floodzones"
android:label="Honolulu Flood Zones"
android:theme="@android:style/Theme.NoTitleBar"
android:configChanges="orientation">
</activity>

</application>

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

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

</manifest>
Binary file added bin/Honolulu Flood Zones.apk
Binary file not shown.
Binary file added bin/classes.dex
Binary file not shown.
Binary file added bin/res/drawable-hdpi/darkbluedot.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 bin/res/drawable-hdpi/esri.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 bin/res/drawable-hdpi/greendot.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 bin/res/drawable-hdpi/ic_menu_info_details.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 bin/res/drawable-hdpi/ic_menu_mapmode.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 bin/res/drawable-hdpi/ic_menu_mylocation.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 bin/res/drawable-hdpi/ic_menu_search.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 bin/res/drawable-hdpi/ic_menu_send.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 bin/res/drawable-hdpi/ic_menu_share.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 bin/res/drawable-hdpi/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 bin/res/drawable-hdpi/lightbluedot.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 bin/res/drawable-hdpi/pinkpolygon.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 bin/res/drawable-hdpi/yellowdot.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 bin/res/drawable-ldpi/darkbluedot.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 bin/res/drawable-ldpi/esri.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 bin/res/drawable-ldpi/greendot.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 bin/res/drawable-ldpi/ic_menu_info_details.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 bin/res/drawable-ldpi/ic_menu_mapmode.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 bin/res/drawable-ldpi/ic_menu_mylocation.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 bin/res/drawable-ldpi/ic_menu_search.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 bin/res/drawable-ldpi/ic_menu_send.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 bin/res/drawable-ldpi/ic_menu_share.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 bin/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 bin/res/drawable-ldpi/lightbluedot.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 bin/res/drawable-ldpi/pinkpolygon.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 bin/res/drawable-ldpi/yellowdot.png
Binary file added bin/res/drawable-mdpi/darkbluedot.png
Binary file added bin/res/drawable-mdpi/esri.png
Binary file added bin/res/drawable-mdpi/greendot.png
Binary file added bin/res/drawable-mdpi/ic_menu_info_details.png
Binary file added bin/res/drawable-mdpi/ic_menu_mapmode.png
Binary file added bin/res/drawable-mdpi/ic_menu_mylocation.png
Binary file added bin/res/drawable-mdpi/ic_menu_search.png
Binary file added bin/res/drawable-mdpi/ic_menu_send.png
Binary file added bin/res/drawable-mdpi/ic_menu_share.png
Binary file added bin/res/drawable-mdpi/icon.png
Binary file added bin/res/drawable-mdpi/lightbluedot.png
Binary file added bin/res/drawable-mdpi/pinkpolygon.png
Binary file added bin/res/drawable-mdpi/yellowdot.png
Binary file added bin/resources.ap_
Binary file not shown.
Binary file added libs/armeabi-v7a/libGLMapCore.so
Binary file not shown.
Binary file added libs/armeabi/libGLMapCore.so
Binary file not shown.
11 changes: 11 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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 use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-16
Binary file added res/drawable-hdpi/darkbluedot.png
Binary file added res/drawable-hdpi/esri.png
Binary file added res/drawable-hdpi/greendot.png
Binary file added res/drawable-hdpi/ic_menu_info_details.png
Binary file added res/drawable-hdpi/ic_menu_mapmode.png
Binary file added res/drawable-hdpi/ic_menu_mylocation.png
Binary file added res/drawable-hdpi/ic_menu_search.png
Binary file added res/drawable-hdpi/ic_menu_send.png
Binary file added res/drawable-hdpi/ic_menu_share.png
Binary file added res/drawable-hdpi/icon.png
Binary file added res/drawable-hdpi/lightbluedot.png
Binary file added res/drawable-hdpi/pinkpolygon.png
Binary file added res/drawable-hdpi/yellowdot.png
Binary file added res/drawable-ldpi/darkbluedot.png
Binary file added res/drawable-ldpi/esri.png
Binary file added res/drawable-ldpi/greendot.png
Binary file added res/drawable-ldpi/ic_menu_info_details.png
Binary file added res/drawable-ldpi/ic_menu_mapmode.png
Binary file added res/drawable-ldpi/ic_menu_mylocation.png
Binary file added res/drawable-ldpi/ic_menu_search.png
Binary file added res/drawable-ldpi/ic_menu_send.png
Binary file added res/drawable-ldpi/ic_menu_share.png
Binary file added res/drawable-ldpi/icon.png
Binary file added res/drawable-ldpi/lightbluedot.png
Binary file added res/drawable-ldpi/pinkpolygon.png
Binary file added res/drawable-ldpi/yellowdot.png
Binary file added res/drawable-mdpi/darkbluedot.png
Binary file added res/drawable-mdpi/esri.png
Binary file added res/drawable-mdpi/greendot.png
Binary file added res/drawable-mdpi/ic_menu_info_details.png
Binary file added res/drawable-mdpi/ic_menu_mapmode.png
Binary file added res/drawable-mdpi/ic_menu_mylocation.png
Binary file added res/drawable-mdpi/ic_menu_search.png
Binary file added res/drawable-mdpi/ic_menu_send.png
Binary file added res/drawable-mdpi/ic_menu_share.png
Binary file added res/drawable-mdpi/icon.png
Binary file added res/drawable-mdpi/lightbluedot.png
Binary file added res/drawable-mdpi/pinkpolygon.png
Binary file added res/drawable-mdpi/yellowdot.png
52 changes: 52 additions & 0 deletions res/layout/about.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<LinearLayout android:id="@+id/about_dialog"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true">

<!-- TODO *KS: version number and ArcGIS if applicable-->
<TextView android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="web"
android:text="Version: 2.0\n\nMapping API provided by:
\n
Esri ArcGIS for Android (1.1)\n\n
Map Data Copyright:\n
Esri, DeLorme, NAVTEQ, TomTom, USGS, Intermap, AND, ESRI Japan, METI, ESRI Hong Kong, ESRI Thailand, Procalculo Prosis\n\n
Tsunami Layer Data last updated:\n
2010\n\n
Tsunami Evacuation Notes:\n
-Remain at least 100 feet away from inland waterways and marinas connected to the ocean due to wave surges and possible flooding.\n
-If possible, remove or deploy vessels to deep water (at least 200 fathoms).\n
-Structural steel or reinforced concrete buildings of six or more stories provide increased protection on or above the third floor.\n
-The evacuation zone is a guideline and should be considered the minimum safe evacuation distance.\n
-These maps do not consider the destructive effects of a locally generated tsunami. If you feel shaking, move inland immediately, well away from the evacuation zone.\n\n
For more information, please visit:\n
http://www.honolulu.gov/mobile/htez.htm\n
http://www.honolulu.gov/dem\n\n
Application Developer:\n
Kyle Shimabukuro\n\n
Mahalo to the following beta testers:\n
Wilson Chan\n
Stephanie Chun\n
Morgan Heister\n
Reyn Matsunaga\n
Sarah Miyasaki\n
Kat Moratin\n
Zarli Win\n
Milton Ying
">
</TextView>

</LinearLayout>

</ScrollView>
20 changes: 20 additions & 0 deletions res/layout/floodzones.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout android:id="@+id/layout1"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

<com.esri.android.map.MapView android:id="@+id/map"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
initExtent="-17622457.3032347 2439157.37937499 -17546524.1970318 2457953.93517276">
</com.esri.android.map.MapView>

<ImageView android:id="@+id/esri"
android:src="@drawable/esri"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />

</RelativeLayout>
91 changes: 91 additions & 0 deletions res/layout/legend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical"
android:scrollbarAlwaysDrawVerticalTrack="true">

<RelativeLayout android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top">

<ImageView android:src="@drawable/pinkpolygon"
android:id="@+id/imageView1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentTop="true">
</ImageView>
<TextView android:text="Red/Pink: Tsunami Evacuation Zones"
android:id="@+id/textView1"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/imageView1"
android:layout_alignBottom="@+id/imageView1"
android:layout_marginLeft="6px">
</TextView>

<ImageView android:src="@drawable/darkbluedot"
android:id="@+id/imageView2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/imageView1">
</ImageView>
<TextView android:text="Dark Blue: Your Location"
android:id="@+id/textView2"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignBottom="@+id/imageView2"
android:layout_toRightOf="@+id/imageView2"
android:layout_marginLeft="6px">
</TextView>

<ImageView android:src="@drawable/yellowdot"
android:id="@+id/imageView3"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/imageView2">
</ImageView>
<TextView android:text="Yellow: Potential Hurricane Shelters"
android:id="@+id/textView3"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/imageView3"
android:layout_alignBottom="@+id/imageView3"
android:layout_marginLeft="6px">
</TextView>

<ImageView android:src="@drawable/lightbluedot"
android:id="@+id/imageView4"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/imageView3">
</ImageView>
<TextView android:text="Light Blue: Lifeguard Towers"
android:id="@+id/textView4"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/imageView4"
android:layout_alignBottom="@+id/imageView4"
android:layout_marginLeft="6px">
</TextView>

<ImageView android:src="@drawable/greendot"
android:id="@+id/imageView5"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@+id/imageView4">
</ImageView>
<TextView android:text="Green: Tsunami Refuge Areas"
android:id="@+id/textView5"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="@+id/imageView5"
android:layout_alignBottom="@+id/imageView5"
android:layout_marginLeft="6px">
</TextView>

</RelativeLayout>

</ScrollView>
7 changes: 7 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

</RelativeLayout>
21 changes: 21 additions & 0 deletions res/menu/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/ml"
android:title="My Location"
android:icon="@drawable/ic_menu_mylocation" />
<item android:id="@+id/search"
android:title="Address Search"
android:icon="@drawable/ic_menu_search" />
<item android:id="@+id/legend"
android:title="Legend"
android:icon="@drawable/ic_menu_mapmode" />
<item android:id="@+id/share"
android:title="Share"
android:icon="@drawable/ic_menu_share" />
<item android:id="@+id/email"
android:title="Email Developer"
android:icon="@drawable/ic_menu_send" />
<item android:id="@+id/about"
android:title="About"
android:icon="@drawable/ic_menu_info_details"/>
</menu>
Loading

0 comments on commit e2e720b

Please sign in to comment.