2011-08-16 16 views
0

如何我可以從Yahoo的Android 我想使應用程序的天氣得到天氣預報得到天氣預報預測如何我可以從Yahoo的Android

first page 
-show current location and weather location 
-show weather forecast of week 

回答

2

雅虎提供了一個動態生成RSS提要。 http://developer.yahoo.com/weather/其中包括天氣預報,你可以查詢指定的位置。

希望這會有所幫助!

+0

我怎麼能編碼它。我是newby – Smith

+0

是你跟我聊天的夥伴 – Smith

+0

在這種情況下有很多事情要告訴你!您需要先解析RSS提要。它基於請求 - 響應。首先您可以使用[JavaScript](http://en.wikipedia.org/wiki/JavaScript)。但要更具體地瞭解Android或移動平臺,使用jQuery移動將最大限度地幫助您。 [Here](http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-an-rss-reader-with-jquery-mobile-2/)你可以看到它是如何完成的。 – barbarosa

0

link會給你答案,但不知何故,你必須改變你的編碼,以獲得您當前的位置。對於5天的天氣預報看到這個5 days