Showing posts with label weather. Show all posts
Showing posts with label weather. Show all posts

Feb 28, 2014

Weather app V6 (add weather map using google map API+Notification)


This Version I added weather map.


I added '지도보기' button in mainactivity.

If you touched this button that can be seen weather map.

I got this map from google maps library.

So, you see the different weather.

Because, main get from KMA and mapweather get from google.

And I added Notification.





You can be see new button,"지도보기".

If you touched '지도보기'button that can be seen google weather map. 

If you touched weather icon, can be seen detail information.

If you scroll down that can be seen notification information.

You can be seen Current location and current weather.

If you touched notification bar, app moved weather app.


Feb 26, 2014

Weather app V5 (add widget& bug fix)


This version is completed weather widget version(maybe~)

I changed receiver class.(inner class->outer class)

So you can be seen "MainReceiver.java", new java file.

This file being communication  "WeatherWidget.java",appwidgetprovider using broadcasting.

You can be seen below displays.

This is first display. You can possible to choose that how to getting weather.

First , you choose location using spinner and touched '선택위치 보기' button.

Second , you touched '현재위치 보기' button.
This button using GPS and geocoding.

This picture is using widget.
You can installed short cut in main display.

App will be automatically getting weather ,if you touched '업데이트' button.


This version is complete widget version.(maybe)

Why do know I wrote 'maybe'?

I think many test this app.

Because I using database in  two type files.(MainActivity & MainReceiver)

Now I don't found bug. But need a many times test.

And I changed size of spinner.(static->wrap_content)

And I fixed bug in getaddress class(geocoding parser)







Feb 25, 2014

Weather app V4.99(add widget version)-but not completed version





This version added weather widget and progress.

Widget has 2 buttons.

First is go to weather app.(This is same old version)

Second is update button.(This button use to getting weather using GPS in this app)



If you install & run this app,can be seen this display.

And exit app(push back key) then go to widget menu.

And you add widget in main display.

If you touched '업데이트'button,can be seen this.
Problem 1
Exception!!
Maybe widget doesn't use method in mainactivity



But If you touched first '앱으로'button, can be seen this(updated widget).

Problem 2
Maybe about several minute after(I don't know exactly) you touched '업데이트' button, can be seen exception. 







Feb 10, 2014

Weather App (V.4) bug fixed





I found a bug for previous version.

Previous version is sometimes doesn't work.

Because I used GOOGLE's geocoding.

It is different dong-name between KMA & GOOGLE's geocoding address.

So I reworked using DAUM'API.

Now I don't found bug.

And I added DB for Sejong-si








Jan 22, 2014

pull parser이용해서 기상청에서 날씨가져오기



아 xml 파서를 잘 이해도 안되서 좀 해멨다;;

여러가지 파서들이 있지만, DOM파서는 잘 안쓰는거 같고, SAX파서로 해보려했지만, 잘이해 안되서 가장 직관적이라는 Pull파서로 만들었다 ^^;

일단 아직은 베타버전~아이콘도없고;; 동네도 우리동네만 ㅋㅋ

일단 db를 공부해서 전국으로 확장하고, gps연결도 해보자

혹시라도 공부할 사람들을 위해 소스는 위의 링크를~

실행화면