なんかやたらみかけます。
HTTPクライアントライブラリの「volley」。
なんかかんたんらしいのでやってみた。
あと、JSONパーサの「Google Gson」てのも使ってね。
お題的には、無料公開の「Open Weather Map API」ての。
こんなレスポンスを返します。
{"coord":{"lon":139,"lat":35},
 "sys":{"country":"JP","sunrise":1370806166,"sunset":1370858254},
 "weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04d"}],
 "base":"global stations",
 "main":{"temp":289.26,"humidity":61,"pressure":1012,"temp_min":289.26,"temp_max":289.26},
 "wind":{"speed":3.91,"deg":105.003},
 "clouds":{"all":88},
 "dt":1370851210,
 "id":1851632,
 "name":"Shuzenji",
 "cod":200}
	 
		 
           
          
You must be logged in to post a comment.