Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Bradby committed Feb 19, 2012
0 parents commit 2dbadd2
Show file tree
Hide file tree
Showing 26 changed files with 1,282 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .classpath
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path=".apt_generated">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="support/androidannotations-2.4.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
3 changes: 3 additions & 0 deletions .factorypath
@@ -0,0 +1,3 @@
<factorypath>
<factorypathentry kind="WKSPJAR" id="/AussieWeatherRadar/support/androidannotations-2.4.jar" enabled="true" runInBatchMode="false"/>
</factorypath>
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
bin/
gen/
local.properties
.apt_generated/
39 changes: 39 additions & 0 deletions .project
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>AussieWeatherRadar</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>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,5 @@
#Sun Feb 19 13:45:23 EST 2012
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
org.eclipse.jdt.apt.genSrcDir=.apt_generated
org.eclipse.jdt.apt.reconcileEnabled=true
13 changes: 13 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,13 @@
#Sun Feb 19 13:45:23 EST 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.source=1.6
39 changes: 39 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="au.com.jtribe.weatherradar"
android:versionCode="9"
android:versionName="1.8" >

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="14" />

<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.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:icon="@drawable/icon"
android:label="@string/app_name" >
<activity
android:name="AussieWeatherRadar_"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<uses-library android:name="com.google.android.maps" >
</uses-library>

<activity android:name="StationMap" >
</activity>
<activity android:name="SettingsPreferenceActivity" >
</activity>
</application>

</manifest>
5 changes: 5 additions & 0 deletions default.properties
@@ -0,0 +1,5 @@
# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google APIs:14
apk-configurations=
14 changes: 14 additions & 0 deletions project.properties
@@ -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 use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google APIs:14
apk-configurations=
Binary file added res/drawable/icon.png
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/pin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions res/layout/main.xml
@@ -0,0 +1,14 @@
<?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">

<com.google.android.maps.MapView
android:id="@+id/map" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_alignParentTop="true"
android:apiKey="0QOCThdqjVk-9Ih4afFhKFHdjb35Gcg-rTDljMg"
android:clickable="true" />

<LinearLayout android:id="@+id/zoom" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true" />
</RelativeLayout>
9 changes: 9 additions & 0 deletions res/layout/progressbar.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="wrap_content">

<ProgressBar android:id="@+android:id/progress_large"
style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content"
android:layout_height="wrap_content" />

</FrameLayout>
54 changes: 54 additions & 0 deletions res/layout/radar.xml
@@ -0,0 +1,54 @@
<?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"
android:id="@+id/viewgroup">

<ImageView android:id="@+id/background" android:layout_width="fill_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_height="fill_parent" android:scaleType="centerCrop"/>

<ImageView android:id="@+id/topography" android:layout_width="fill_parent" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" android:scaleType="centerCrop"
android:layout_height="fill_parent"/>


<ViewFlipper android:layout_width="fill_parent" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" android:flipInterval="500"
android:layout_height="fill_parent" android:id="@+id/animationVG">

<ImageView android:id="@+id/frame1" android:layout_width="fill_parent" android:scaleType="centerCrop"
android:layout_height="fill_parent"/>
<ImageView android:id="@+id/frame2" android:layout_width="fill_parent" android:scaleType="centerCrop"
android:layout_height="fill_parent"/>
<ImageView android:id="@+id/frame3" android:layout_width="fill_parent" android:scaleType="centerCrop"
android:layout_height="fill_parent"/>

</ViewFlipper>

<ImageView android:id="@+id/location" android:layout_width="fill_parent" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_height="fill_parent" android:scaleType="centerCrop" />



<ImageView android:id="@+id/range" android:layout_width="fill_parent" android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_height="fill_parent" android:scaleType="centerCrop" />

<TextView android:id="@+id/progress_text" android:paddingLeft="5dp"
android:paddingRight="5dp" android:layout_height="wrap_content"
android:layout_width="wrap_content" android:layout_centerVertical="true"
android:layout_centerHorizontal="true" android:textColor="#FFFFFFFF"
android:text="Loading ..." android:textSize="15dp" android:background="#44000000"
android:visibility="gone" />

<RelativeLayout android:layout_width="wrap_content" android:layout_centerHorizontal="true"
android:layout_height="wrap_content" android:id="@+id/timeVG">
</RelativeLayout>

<ProgressBar android:id="@+android:id/progress_bar"
style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_centerVertical="true"
android:layout_centerHorizontal="true" android:visibility="gone" />
</RelativeLayout>
31 changes: 31 additions & 0 deletions res/menu/home_menu.xml
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >

<item
android:id="@+id/settings"
android:title="@string/settings">
</item>
<item
android:id="@+id/radar"
android:title="@string/radar">
<menu>
<item
android:id="@+id/km64"
android:title="@string/km64"/>
<item
android:id="@+id/km128"
android:title="@string/km128"/>
<item
android:id="@+id/km256"
android:title="@string/km256"/>
<item
android:id="@+id/km512"
android:title="@string/km512"/>
</menu>
</item>
<item
android:id="@+id/map"
android:title="@string/map">
</item>

</menu>
57 changes: 57 additions & 0 deletions res/raw/resultset.csv
@@ -0,0 +1,57 @@
"id","name","product_code_64km","product_code_128km","product_code_256km","product_code_512km","latitude","longitude","created_at","updated_at"
2,"Appin","","IDR033","IDR032","IDR031",-34.264,150.874,"2009-03-18 11:31:54","2009-03-18 11:35:12"
3,"Canberra","","IDR403","IDR402","IDR401",-35.663,149.511,"2009-03-18 11:31:54","2009-03-18 11:35:13"
4,"Grafton","","IDR283","IDR282","IDR281",-29.622,152.951,"2009-03-18 11:31:54","2009-03-18 11:35:14"
5,"Mildura (pt) VIC","","IDR303","IDR302","IDR301",-34.233,142.083,"2009-03-18 11:31:54","2009-03-18 11:35:14"
6,"Moree (pt)","","IDR533","IDR532","IDR531",-29.5,149.85,"2009-03-18 11:31:54","2009-03-18 11:35:15"
7,"Newcastle","","IDR043","IDR042","IDR041",-32.732,152.025,"2009-03-18 11:31:54","2009-03-18 11:35:17"
8,"Wagga Wagga (pt)","","IDR553","IDR552","IDR551",-35.167,147.467,"2009-03-18 11:31:54","2009-03-18 11:35:18"
9,"Yarrawonga VIC","IDR494","IDR493","IDR492","IDR491",-36.03,146.023,"2009-03-18 11:31:54","2009-03-18 11:35:18"
10,"Norfolk Island (pt)","","IDR623","IDR622","IDR621",-29.04,167.94,"2009-03-18 11:31:54","2009-03-18 11:35:19"
11,"Darwin","","IDR633","IDR632","IDR631",-12.457,130.925,"2009-03-18 11:31:54","2009-03-18 11:35:19"
12,"Alice Springs (pt)","","IDR253","IDR252","IDR251",-23.817,133.9,"2009-03-18 11:31:54","2009-03-18 11:35:25"
13,"Gove (pt)","","IDR093","IDR092","IDR091",-12.275,136.823,"2009-03-18 11:31:54","2009-03-18 11:35:25"
14,"Katherine","","IDR423","IDR422","IDR421",-14.513,132.446,"2009-03-18 11:31:54","2009-03-18 11:35:26"
15,"Tennant Creek (pt)","","IDR653","IDR652","IDR651",-19.642,134.183,"2009-03-18 11:31:54","2009-03-18 11:35:26"
16,"Wyndham WA","","IDR073","IDR072","IDR071",-15.453,128.119,"2009-03-18 11:31:54","2009-03-18 11:35:30"
17,"Brisbane (Mt Stapylton)","IDR664","IDR663","IDR662","IDR661",-27.718,153.24,"2009-03-18 11:31:54","2009-03-18 11:35:31"
19,"Brisbane (Marburg)","","IDR503","IDR502","IDR501",-27.606,152.54,"2009-03-18 11:31:54","2009-03-18 11:35:31"
20,"Bowen","","IDR243","IDR242","IDR241",-19.886,148.075,"2009-03-18 11:31:54","2009-03-18 11:35:32"
21,"Cairns","","IDR193","IDR192","IDR191",-16.817,145.683,"2009-03-18 11:31:54","2009-03-18 11:35:32"
22,"Gladstone","","IDR233","IDR232","IDR231",-23.856,151.262,"2009-03-18 11:31:54","2009-03-18 11:35:33"
23,"Gympie","","IDR083","IDR082","IDR081",-25.957,152.577,"2009-03-18 11:31:54","2009-03-18 11:35:33"
24,"Longreach (pt)","","IDR563","IDR562","IDR561",-23.43,144.29,"2009-03-18 11:31:54","2009-03-18 11:35:34"
25,"Mackay (pt)","","IDR223","IDR222","IDR221",-21.117,149.217,"2009-03-18 11:31:54","2009-03-18 11:35:34"
26,"Mornington Is","","IDR363","IDR362","IDR361",-16.666,139.167,"2009-03-18 11:31:54","2009-03-18 11:35:37"
27,"Townsville","","IDR733","IDR732","IDR731",-19.420,146.551,"2009-03-18 11:31:54","2009-03-18 11:35:38"
28,"Warrego","","IDR673","IDR672","IDR671",-26.439,147.349,"2009-03-18 11:31:54","2009-03-18 11:35:38"
29,"Weipa","","IDR183","IDR182","IDR181",-12.671,141.922,"2009-03-18 11:31:54","2009-03-18 11:35:38"
30,"Willis Island","","IDR413","IDR412","IDR411",-16.3,149.983,"2009-03-18 11:31:54","2009-03-18 11:35:39"
31,"Adelaide (Buckland Park)","IDR644","IDR643","IDR642","IDR641",-34.617,138.469,"2009-03-18 11:31:54","2009-03-18 11:35:39"
33,"Adelaide (Sellicks Hill)","","IDR463","IDR462","IDR461",-35.331,138.501,"2009-03-18 11:31:54","2009-03-18 11:35:39"
34,"Ceduna (pt)","","IDR333","IDR332","IDR331",-32.131,133.695,"2009-03-18 11:31:54","2009-03-18 11:35:40"
35,"Eucla (pt) WA","","IDR453","IDR452","IDR451",-31.681,128.892,"2009-03-18 11:31:54","2009-03-18 11:35:40"
36,"Mt Gambier (pt)","","IDR143","IDR142","IDR141",-37.75,140.78,"2009-03-18 11:31:54","2009-03-18 11:35:41"
37,"Woomera","","IDR273","IDR272","IDR271",-31.157,136.803,"2009-03-18 11:31:54","2009-03-18 11:35:41"
38,"N.W. Tas","","IDR523","IDR522","IDR521",-41.181,145.578,"2009-03-18 11:31:54","2009-03-18 11:35:43"
39,"Hobart (pt)","","IDR373","IDR372","IDR371",-42.833,147.51,"2009-03-18 11:31:54","2009-03-18 11:35:44"
40,"Melbourne","IDR024","IDR023","IDR022","IDR021",-37.852,144.752,"2009-03-18 11:31:54","2009-03-18 11:35:44"
42,"Bairnsdale","","IDR683","IDR682","IDR681",-37.888,147.575,"2009-03-18 11:31:54","2009-03-18 11:35:45"
43,"Mildura (pt)","","IDR303","IDR302","IDR301",-34.233,142.083,"2009-03-18 11:31:54","2009-03-18 11:35:45"
44,"Yarrawonga","IDR494","IDR493","IDR492","IDR491",-36.03,146.023,"2009-03-18 11:31:54","2009-03-18 11:35:48"
45,"Mt Gambier (pt) SA","","IDR143","IDR142","IDR141",-37.75,140.78,"2009-03-18 11:31:54","2009-03-18 11:35:48"
46,"Perth","","IDR703","IDR702","IDR701",-32.3917,115.8669,"2009-03-18 11:31:54","2009-03-18 11:35:49"
47,"Albany (pt)","","IDR313","IDR312","IDR311",-34.95,117.8,"2009-03-18 11:31:54","2009-03-18 11:35:49"
48,"Broome (pt)","","IDR173","IDR172","IDR171",-17.945,122.225,"2009-03-18 11:31:54","2009-03-18 11:35:51"
49,"Carnarvon (pt)","","IDR053","IDR052","IDR051",-24.883,113.667,"2009-03-18 11:31:54","2009-03-18 11:35:51"
50,"Dampier","","IDR153","IDR152","IDR151",-20.654,116.682,"2009-03-18 11:31:54","2009-03-18 11:35:52"
51,"Esperance (pt)","","IDR323","IDR322","IDR321",-33.83,121.891,"2009-03-18 11:31:54","2009-03-18 11:35:52"
52,"Eucla (pt)","","IDR453","IDR452","IDR451",-31.681,128.892,"2009-03-18 11:31:54","2009-03-18 11:35:54"
53,"Geraldton (pt)","","IDR063","IDR062","IDR061",-28.8,114.7,"2009-03-18 11:31:54","2009-03-18 11:35:56"
54,"Giles (pt)","","IDR443","IDR442","IDR441",-25.03,128.3,"2009-03-18 11:31:54","2009-03-18 11:35:59"
55,"Halls Creek (pt)","","IDR393","IDR392","IDR391",-18.231,127.663,"2009-03-18 11:31:54","2009-03-18 11:35:59"
56,"Kalgoorlie (pt)","","IDR483","IDR482","IDR481",-30.785,121.452,"2009-03-18 11:31:54","2009-03-18 11:36:01"
57,"Learmonth","","IDR293","IDR292","IDR291",-22.104,113.998,"2009-03-18 11:31:54","2009-03-18 11:36:01"
58,"Pt Hedland","","IDR163","IDR162","IDR161",-20.372,118.632,"2009-03-18 11:31:54","2009-03-18 11:36:02"
59,"Wyndham","","IDR073","IDR072","IDR071",-15.453,128.119,"2009-03-18 11:31:54","2009-03-18 11:36:03"
60,"Sydney","IDR714","IDR713","IDR712","IDR711",-33.701,151.210,"2009-03-18 11:31:54","2009-03-18 11:35:12"
13 changes: 13 additions & 0 deletions res/values/strings.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Aussie Weather Radar</string>

<string name="settings">Settings</string>
<string name="radar">Radar</string>
<string name="km64">64 KM</string>
<string name="km128">128 KM</string>
<string name="km256">256 KM</string>
<string name="km512">512 KM</string>
<string name="map">Map</string>

</resources>
23 changes: 23 additions & 0 deletions res/xml/aussie_weather_radar_preferences.xml
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="File Storage Settings"
android:key="file_storage_pref">
<CheckBoxPreference android:key="cache_pref"
android:title="Offline Storage"
android:summary="Select to cache static images into your SD Card"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory android:title="Map Features">
<CheckBoxPreference android:key="location_pref"
android:title="Location" android:summary="Select to display Location"
android:defaultValue="true" />

<CheckBoxPreference android:key="range_pref"
android:title="Range" android:summary="Select to display Range"
android:defaultValue="true" />

<CheckBoxPreference android:key="topo_pref"
android:title="Topography" android:summary="Select to display Topography"
android:defaultValue="true" />
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 2dbadd2

Please sign in to comment.