Android 获取指定城市的天气实况
2015-08-26 17:15
302 查看
摘要:主要是利用Http发送请求获得指定城市编号的天气实况等信息。
如 a.假如发送这个请求:http://www.weather.com.cn/data/cityinfo/101190101.html
使用 http,去发送的话 则返回的Json如下:
{"weatherinfo":{"city":"南京","cityid":"101190101","temp1":"15℃","temp2":"10℃","weather":"小雨","img1":"d7.gif","img2":"n7.gif","ptime":"08:00"}}
如 a.假如发送这个请求:http://www.weather.com.cn/data/cityinfo/101190101.html
使用 http,去发送的话 则返回的Json如下:
{"weatherinfo":{"city":"南京","cityid":"101190101","temp1":"15℃","temp2":"10℃","weather":"小雨","img1":"d7.gif","img2":"n7.gif","ptime":"08:00"}}
相关文章推荐
- Android-三种菜单栏实现(OptionMenu,SubMenu,ContextMenu)
- Android listview中使用button解决方法 <问题记录>
- Android自定义弹性ScrollView(有误请略过此文章)
- [Android]GreenDao(2)——使用
- android
- android 用java布局一个控件
- android 截屏
- Android-实现简单照相与摄像
- android stack error message is Fail to start the plugin
- android 编译FFmpeg
- Android ble 蓝牙4.0总结——基础版
- Android收起通知栏
- Android 系统自带输入法的表情显示 -项目总结
- Android-服务与广播接收者实现本地音乐播放
- 初学Android JNI
- android intent和intent action大全,Broadcast Action大全
- Android-Universal-Image-Loader图片异步加载类库使用方法
- Tiny210 android系统中的gpio按键
- android.view.cts.DisplayRefreshRateTest failed
- android sdk 代理