Android Weather Forecast - Google Weather API - Description

Tutorials with advanced 'difficulty' and more Lines of Code.

Re: Android Weather Forecast - Google Weather API - Descript

Postby munsellm » Mon Feb 21, 2011 11:26 pm

Hey all! I've been playing around with this and it's been a great help. I essentially have it working.... but have run into a weird bug. It started by me checking on weather for a few different cities. Chicago, IL worked, Moscow, Russia, yes, and many others. When I tried any city in france, it returned an error (threw the exception). This is puzzling. I haven't gotten into it yet, but was wondering if anyone else noticed it. Otherwise great tutorial. Would be curious if anyone had any ideas. Thanks, Mark
munsellm
Freshman
Freshman
 
Posts: 3
Joined: Mon Feb 21, 2011 11:20 pm

Top

Re: Android Weather Forecast - Google Weather API - Descript

Postby munsellm » Tue Feb 22, 2011 5:22 pm

After further investigation, it looks like it's for any city that returns a special character in the name, so yes, most cities in France, and some in Germany with umlauts, etc...

Any ideas on how to work around this issue?

Thanks,
Mark
munsellm
Freshman
Freshman
 
Posts: 3
Joined: Mon Feb 21, 2011 11:20 pm

Re: Weather Forecasting (1.1 V)

Postby tdor100 » Sat Mar 12, 2011 3:07 am

Shalni wrote:Hi everybody,

Here is the weather forecasting code working on sdk 1.1 as there were some changes to be made inorder to work in 1.1 version from the original code. Hope this helps.

Thank you.

:D
I imported the project using eclipse, deleted the R.class within the project, added the android 2.2 library and its working now.
Thanks allot
tdor100
Freshman
Freshman
 
Posts: 2
Joined: Sat Mar 12, 2011 12:44 am

Re: Android Weather Forecast - Google Weather API - Descript

Postby clege » Wed Mar 16, 2011 8:43 pm

Great tutorial. Thanks a lot.
It is a difficult tutorial for me, but I learn, I learn ... ;)
I want an activity with weather, but I don't want that the user have the choice of the town.
I want the weather of the city Paris only.
I have test it, but there are few mistakes :(
I have change in WeatherForecast.class
URL url;
try {
String queryString = "http://www.google.com/ig/api?weather=Paris,France";
/* Replace blanks with HTML-Equivalent. */
url = new URL(queryString.replace(" ", "%20"));

But it is not so easy :?
Someone could help me ?
clege
Freshman
Freshman
 
Posts: 2
Joined: Thu Dec 23, 2010 6:20 pm

Re: Android Weather Forecast - Google Weather API - Descript

Postby vaishakh22 » Wed Apr 13, 2011 7:29 pm

Thanks for the post I came searching for something else related to Weather Api ,
found this thread extremely useful , I have a question how do you get the Minimum
and Maximum Temperature of a place using the Google Weather Api .I didnt get or
might have missed out some attributes in the xml file returned , please help!!

About one of the readers doubt on how to geocode your latitude longtiude into address
before querying to weather api , this link provides the details on how you can do it

http://googlelatiude.blogspot.com/2011/04/geocode-address.html
vaishakh22
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Apr 13, 2011 7:20 pm

Re: Android Weather Forecast - Google Weather API - Descript

Postby krishjlk » Thu Jun 09, 2011 7:08 am

hI Mr PlusMinus
firstly thank u for ur anddev.org it helps me a lot in solving many problems and i learnt a lot here
secondly, i have seen ur Weather Report Tutorial and i developed it in my own way using DOM and SAX parsers
Now i want to develop an application WorldClock which gives current Time in any Part of World.
request: ---- All i want from u is the query how to access the xml file of that
for weather report u gave like this ------> "http://www.google.com/ig/api?weather=QUERY"
and u fetched the data from igoogle in xml form similarly tell me the same for time zones
i have tried using "http://www.google.com/ig/api?worldtime=QUERY"
but it is returning null only one tag in xml file so PLEASEEEEEEEEEEEEEEE tell me the exact query to get the world
time ..........

Ich hoffe, Sie werden mich bald antworten.
Danke.
Im Voraus
/*
A good programmer is the one who always looks both ways b4 crossing a one-way street
*/
User avatar
krishjlk
Experienced Developer
Experienced Developer
 
Posts: 52
Joined: Fri May 20, 2011 6:09 am
Location: KK , @Ahmedabad, Gujrath, India

Top

Re: Android Weather Forecast - Google Weather API - Descript

Postby tdor100 » Tue Jun 28, 2011 8:14 am

Thanks allot, this tutorial has helped me with part of thesis project for school. I am a novice coder and with a little hacking I was able to change the interface to match my application.
Image
tdor100
Freshman
Freshman
 
Posts: 2
Joined: Sat Mar 12, 2011 12:44 am

Re: Android Weather Forecast - Google Weather API - Descript

Postby BorkFrey » Tue Nov 08, 2011 9:34 am

I want to use the Google Weather API - by passing lat and long values. However it seems Google is needing these formatted differently to the values I have stored. But when I use Google it does not: See: http://www.google.com/ig/api?weather=,,,45.5,-73.583 It's said that it should be easy to add such function to your mobile browser, and with cell phone spy software GPS and sms tracking are also available
Last edited by BorkFrey on Wed Jun 20, 2012 12:04 pm, edited 2 times in total.
BorkFrey
Freshman
Freshman
 
Posts: 2
Joined: Tue Nov 08, 2011 9:31 am

Re: Android Weather Forecast - Google Weather API - Descript

Postby waqas123 » Thu Mar 29, 2012 1:14 pm

dear,,,,,,,,,,,,,,

i have downloaded this project. but there is problem of setting the "target" because in have no "Google weather Api". what you have set the target Api means(2.1,2.2.2.3.3........or Google Api).


plz rply
............thanks.............
waqas123
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 29, 2012 12:55 pm

Re: Android Weather Forecast - Google Weather API - Descript

Postby waqas123 » Sun Apr 01, 2012 7:26 pm

i have download the full source code but when i run this code this gives me 2 errors:

1) Project 'WeatherForecast' is missing required library: 'F:\c drive installations\eclipse workspace\android.jar'
2) The project cannot be built until build path errors are resolved WeatherForecast

i have also set the ptha several times but still not run.



if any one have the solution plzzz rply fast
thankssss,,,,,,,,,,,,,
waqas123
Freshman
Freshman
 
Posts: 2
Joined: Thu Mar 29, 2012 12:55 pm

Re: Android Weather Forecast - Google Weather API - Descript

Postby zoram » Thu Jul 19, 2012 10:46 am

Google weather api is asking for human authentication. is there any way to bypass is so tat i can use it in my app??
zoram
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Jul 19, 2012 10:39 am

Re: Android Weather Forecast - Google Weather API - Descript

Postby sureshmanjoshi » Sat Aug 18, 2012 12:40 pm

Hi, I am new for android.

I downloaded this project and run in my system. But there is error in SingleWeatherInfoView.java . The error is as follows:

public SingleWeatherInfoView(Context context, AttributeSet attrs, Map inflateParams) {

super(context, attrs, inflateParams);

inflateParam is not resolving. error says it should be int type but when I changed into int error not shows but when run the project emulator shows error.

Please help me to overcome this problem.
sureshmanjoshi
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Aug 15, 2012 1:02 pm

Re: Android Weather Forecast - Google Weather API - Descript

Postby ttttkk » Tue Sep 10, 2013 7:18 am

Hi, would you consider update the tutorial since the google weather API is no longer supported by google ?
ttttkk
Freshman
Freshman
 
Posts: 2
Joined: Tue Sep 10, 2013 6:46 am

Top
Previous

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests