From 4b4a7340ed766368711f753623a2a15cd722c641 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Mon, 7 Apr 2014 06:21:31 +0200 Subject: [PATCH] Weather Information with Google Maps --- Android/WeatherInformation/AndroidManifest.xml | 25 +++ Android/WeatherInformation/proguard-project.txt | 17 ++ Android/WeatherInformation/project.properties | 1 + .../res/drawable-hdpi/ic_action_map.png | Bin 0 -> 802 bytes .../res/drawable-mdpi/ic_action_map.png | Bin 0 -> 604 bytes .../res/drawable-xhdpi/ic_action_map.png | Bin 0 -> 1022 bytes .../res/drawable-xxhdpi/ic_action_map.png | Bin 0 -> 1529 bytes .../res/layout/fragment_main.xml | 131 --------------- .../WeatherInformation/res/layout/weather_map.xml | 54 +++++++ .../res/menu/weather_main_menu.xml | 9 ++ Android/WeatherInformation/res/values/strings.xml | 7 +- .../exampletdd/WeatherInformationActivity.java | 22 ++- .../exampletdd/WeatherInformationMapActivity.java | 178 +++++++++++++++++++++ .../exampletdd/activityinterface/GetWeather.java | 8 + .../activityinterface/OnClickButtons.java | 8 - .../fragment/WeatherInformationDataFragment.java | 99 ++++++++---- .../de/example/exampletdd/model/GeocodingData.java | 109 +++++++++++++ .../exampletdd/parser/IJPOSWeatherParser.java | 1 + .../exampletdd/parser/JPOSWeatherParser.java | 32 +--- .../example/exampletdd/service/WeatherService.java | 10 +- 20 files changed, 503 insertions(+), 208 deletions(-) create mode 100644 Android/WeatherInformation/res/drawable-hdpi/ic_action_map.png create mode 100644 Android/WeatherInformation/res/drawable-mdpi/ic_action_map.png create mode 100644 Android/WeatherInformation/res/drawable-xhdpi/ic_action_map.png create mode 100644 Android/WeatherInformation/res/drawable-xxhdpi/ic_action_map.png delete mode 100644 Android/WeatherInformation/res/layout/fragment_main.xml create mode 100644 Android/WeatherInformation/res/layout/weather_map.xml create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/WeatherInformationMapActivity.java create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/activityinterface/GetWeather.java delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/activityinterface/OnClickButtons.java create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/model/GeocodingData.java diff --git a/Android/WeatherInformation/AndroidManifest.xml b/Android/WeatherInformation/AndroidManifest.xml index 8ae62c1..811923f 100644 --- a/Android/WeatherInformation/AndroidManifest.xml +++ b/Android/WeatherInformation/AndroidManifest.xml @@ -9,8 +9,18 @@ android:maxSdkVersion="18" android:minSdkVersion="18" android:targetSdkVersion="18" /> + + + + + + + + + + + + + + + + diff --git a/Android/WeatherInformation/proguard-project.txt b/Android/WeatherInformation/proguard-project.txt index f2fe155..dd79e3a 100644 --- a/Android/WeatherInformation/proguard-project.txt +++ b/Android/WeatherInformation/proguard-project.txt @@ -18,3 +18,20 @@ #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} + +-keep class * extends java.util.ListResourceBundle { + protected Object[][] getContents(); +} + +-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { + public static final *** NULL; +} + +-keepnames @com.google.android.gms.common.annotation.KeepName class * +-keepclassmembernames class * { + @com.google.android.gms.common.annotation.KeepName *; +} + +-keepnames class * implements android.os.Parcelable { + public static final ** CREATOR; +} diff --git a/Android/WeatherInformation/project.properties b/Android/WeatherInformation/project.properties index ce39f2d..2110cdf 100644 --- a/Android/WeatherInformation/project.properties +++ b/Android/WeatherInformation/project.properties @@ -12,3 +12,4 @@ # Project target. target=android-18 +android.library.reference.1=../../../../android/android-sdk-linux/extras/google/google_play_services/libproject/google-play-services_lib diff --git a/Android/WeatherInformation/res/drawable-hdpi/ic_action_map.png b/Android/WeatherInformation/res/drawable-hdpi/ic_action_map.png new file mode 100644 index 0000000000000000000000000000000000000000..370cf5c38f3efec6d186a1e65ee9b23efbf0c1cb GIT binary patch literal 802 zcmV+-1Ks?IP)|3eB;0~7!SPyjh)Rx^smmSjcNVBlsnV2tHk-QM2Geu_G7 zPY(bO0Cx^xAii8KmkE80JK}fQ>-Bbj0FVu7q#Xgk#FzffP^bbSyE0$XDu&boAdaoC z$$QGtSrY(lIg!AL7(eZ4p$<4VqK`8jpM6lsx8q#lW)KQtXPlb?6hF78<5HZH?BE0d zE4IJ{>n5v1*M9J8Xz-PN74j!Zbqr9lWf-c>>+WMxA;G(x#wR(ISvsG>k(fa50pt); zg~aM-iZU$#qA)~bBo+Yk2+k+I0q7zSt2`v9Cjeq9c>F(wlCVMRK%^ww79$cR+z`19 z4o{%ZQQ|uToiZP-%fR4xX+am&gwqKe9b&E}pN9a(aD3cq1fb7vO(%qtqbfzA-=knT zz^OnZcdVFW%Sg#OzeL1OzLJHV2&C5|D5W87p*lN~KqwuyAEQSju2Dxq56h>Ej}eyQ{zP-{b{`mPkL z+yH2XYyL!^K3>{t=4PnIZ=#b_Zq8eWy%a?r{*}%4(03&^@pl8oG07^^^g+x-k+uNH z(XiP^GY#FMHUZ2ldUG{l53T^XAn*l1`{5q|!avt3h-I6>G=(g$*#r2YP*tKz$!Ap~ z08*W2C)Ews8h{#(mk!CdQ(6ZBzR(paA2OPFa9$KAu^8`ydYTA(10Y9$SK`9uMsRrP z&>W_^2-(PJEQPv=0va00m5)ly9GbfSI3D9kM&^S;OxmP}a6Gr@pX>qf#tl2H5VmN# z)$Cg);4u(@VH+wG(u$^!Vd?;+Hl1d`q)zLeMGZ9C--)+1H}!_*6kXq28JkBk-L}Vz g?gxN-2k;}n0Dm9>SJ?%Fr~m)}07*qoM6N<$f=nP{CIA2c literal 0 HcmV?d00001 diff --git a/Android/WeatherInformation/res/drawable-mdpi/ic_action_map.png b/Android/WeatherInformation/res/drawable-mdpi/ic_action_map.png new file mode 100644 index 0000000000000000000000000000000000000000..50a91002ad0cbf33ea70fdeb8dcb560404ae25ca GIT binary patch literal 604 zcmV-i0;BzjP)U01dc+ zPyi`_6aWRJ0N@S<;Ctc%oC0Wo22_AufO02qnN>!k(ONbHCkJ+Bv4y4Gw;w&(N%D|C zmXvoWB@1V4*)9$s_*Q03eD`m2cVIb)jhqV+y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YX1Zn0G9|@T`~jJtpET307*qoM6N<$f=bxXTL1t6 literal 0 HcmV?d00001 diff --git a/Android/WeatherInformation/res/drawable-xxhdpi/ic_action_map.png b/Android/WeatherInformation/res/drawable-xxhdpi/ic_action_map.png new file mode 100644 index 0000000000000000000000000000000000000000..ed72ce91c8788fad8b1a8ade10783d10b60f3ae7 GIT binary patch literal 1529 zcmVE2apfI zxBtjKWKRxY_JO_49Iab zo&hT*5C{YUfj}S-2m}JbCE?0;=llD6pl?PJ9#$k*S69cP1U&1TiNuT*u_j=Vz4Kb) z(k_GmAwUQaw1}HBRa_rO30Wabd=PN7RdIn;MgEZ#BsD-F1PrVQ_bm@oD`kp;7~n9m z(=~19IG3J#(vK%XK>5H^(7z)1d5SK{1bku~L|&+mtq@Q=@H2h$ppS6@IsH=~xB8qX z1l)Gc9Aq9$vT_jV8S~aS0s2kOF=7t3Zl9;rLe~t_6ru0iI7WPI(d2agW5LUfajhbt zYn3M8x@ItF#4R!MUMLXyxbw`x2G=ul`r2X=SMV*JHji~x&@A&ejlx$D<74y(#)v)> zjhV1A3DNf*^z$c{;yVl#gq-Wjw-3mlPt0j)mPrrFAmL44GfMM(U)D5kDh8iM-w(&b zRJ86f@+d7i*(j+C%Bh`2}LtOd&Jc+H(T3&aWM2W_u!_9&nnMR){dlc?$&2kM;LX#yf+ zbY_V-)(rgCk!E6CH%48u`GF%IPmjk>oN})SNMPGTkG&I{TaD4riB0Vf>3M!{S>i$F zbSNo^3gWT>2OJqa8oK6->zWxtY%cm~2sMC$u*mzc%yr~!v@pU`pJ7cg*_mi`Mt`V| zZ8*EB7?8IreGi5ryma(t(suJ4&r4HO>XE)d0v$OFM=%`7VHXXkoB7$K{k z5ul75pX8WJTT8{2ilVBL{F1k&OcBt;aMqNXzERW9an9Zm{HIoCK-TPdD#~7!78P54 z{D+kE*}{6n8T{Hl01h+lt&mI{!2})98;Y3-@TIl_tSO{vZVQ#KkbSmbb+BPokw-IS|uQw61q^m7ldT_+dsATia@2{=!6+A_kqfeWc4 zs&Hz=xMQO?1f;d$7xMWg|AS+5Q?hR7gEZp9$b9TDOd8=vdrl&(8>O z?cj@hOF#()QM-R$P+q#y;mOjr_%LKmZ8GyU1Ma&Jd;@z&>iMVRi7oG;Y6)BfOga>N zg;9RY1b@+1$1@K%4G_?D@ITa$PK#s|=brpVcL;!v9_Of?R$9GCH9OUDaHOEXk#84m z_Su^PHX|&%L_iw+_yU4YpZ!_Y*uBS51F{=fJ6Y^J1fS~OM%CQF%e^SSyO7}1LK4ej z64!Uc&WdN?fv08EN5!~BhNA}jHk8NPKm$L*sQ;yy_a||*qbcZXBQFju@Z@1$k#g9- zu)$ITNN(ykdQijr#r2Ky{8cBmA`Ih`3~2NRs)6sB$*(55G3|>J7Ier53<(Dzphdt? zdN-Alf_jvK0{jk}pd|uEO8&8rq#z+cAOr{j0zSEGyHoy^p%)~VuvjG!2m}IwKp+qZ f1Oh=m{t7SvM#&ydtJi}g00000NkvXXu0mjfVK&0o literal 0 HcmV?d00001 diff --git a/Android/WeatherInformation/res/layout/fragment_main.xml b/Android/WeatherInformation/res/layout/fragment_main.xml deleted file mode 100644 index b110cec..0000000 --- a/Android/WeatherInformation/res/layout/fragment_main.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - - - -