android lifecycle/代码框架
/定义 数据库表项 contract解释
/测试 weather 数据库 创建 插入
使能数据库创建测试程序 testCreateDb
使能 test utilites
/test Location Table
/test weather table...
分类:
移动开发 时间:
2015-06-05 07:39:55
阅读次数:
179
http://www.weather.com.cn/data/cityinfo/101010100.htmlhttp://api.36wu.com/Weather/GetMoreWeatherhttp://wthrcdn.etouch.cn/weather_mini?city=北京http://wt...
weather.xml
xml version='1.0' encoding='utf-8' standalone='yes' ?>
weather>
city>
name>上海name>
temp>5°temp>
pm>80pm>
city>
city>
name>北京name>
temp>-5°temp>
pm>800pm>
city>
city>
name>西安n...
分类:
其他好文 时间:
2015-05-29 23:21:12
阅读次数:
321
免费api大全(更新中)API大全 http://www.apidq.com/ (这个碉堡了)天气接口 气象局接口 完整数据:http://m.weather.com.cn/data/101010100.html解析用例 当天数据:http://www.weather.com.cn/data...
国家气象局提供的天气预报接口接口地址:http://www.weather.com.cn/data/sk/101010100.htmlhttp://www.weather.com.cn/data/cityinfo/101010100.htmlhttp://m.weather.com.cn/data/...
分类:
其他好文 时间:
2015-05-28 15:43:18
阅读次数:
174
天气 JSON 数据解析 1 package com.example.weather_json.tools; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.json.JSONArray; 7 imp.....
分类:
移动开发 时间:
2015-05-28 15:36:55
阅读次数:
143
摘要:主要是利用Http发送请求获得指定城市编号的天气实况等信息。
如 a.假如发送这个请求:http://www.weather.com.cn/adat/sk/101220101.html。
使用CInternetSession类去发送的话则返回的Json如下:
{"weatherinfo":{"city":"合肥","cityid":"101220101","temp":"11","WD":"北风","WS":"1级","SD":"88%","WSE":"1","time":"10:35","...
分类:
编程语言 时间:
2015-05-28 12:43:14
阅读次数:
367
废话不多说,直接贴代码:CityReq.javapackage com.weather;import javax.xml.bind.annotation.XmlElement;import javax.xml.bind.annotation.XmlRootElement;@XmlRootElemen...
分类:
编程语言 时间:
2015-05-28 00:34:57
阅读次数:
244
参考 :php手册 (XML 元素结构例程)
<?php
header("content-type:text/html;charset=utf-8");
//接口URL、
$file='http://flash.weather.com.cn/wmaps/xml/china.xml';
$result = array();//定义全局变量
function startTag($parser, $...
分类:
其他好文 时间:
2015-05-26 21:26:56
阅读次数:
133
这个案例只是为了关联各个知识点,在实际开发中还有待优化项目结构分析:Weather实体类:用来存放我们的天气实体WeatherManager: 用来操作WeatherMainActivity:主acaitivyCityWeatherService:定时轮询来更新前台的信息原理比较简单直接贴出代码:W...
分类:
移动开发 时间:
2015-05-26 21:10:00
阅读次数:
330