tags:

views:

301

answers:

1

Hello.. m supposed to develop an application in which m supposed to display weather conditions-when i enetr a city that time it should get conncted to any weather site suppose weather.com,n display only the weather conditions like humidity,rainfall,temperature,etc that is all sorts of weather conditions,but it shud not display the complete web-page.. V r supposed to work on SDK-3.0-in which it shows us the model of mobiles n we have to code which will be implemented on that mobile model...So how do i connect to internet???n later how will i display only the weather on the mobile of SDK,coz internet always keep on changing its format??? M completely new to J2ME+MIDlets, n this is my first application inj2me,so plz let me know the detailed procedure for how to do this...

+2  A: 

You can use Yahoo Weather API.

Have in mind that Yahoo explicitly states that their API is for non-commercial use though.

To parse the RSS returned by the API I'd recommend an XML pull parser. You'll find more information on those here.

macbirdie
+1 for yahoo weather api. It's pretty simple.
Rob Stevenson-Leggett
+1, RSS and parsing is a solution.
Max Gontar