android 定时语音,android 定时语音天气播报

记得当时毕业设计其中一项是天气预报,

当时还用自己做的天气预报去面试。因为太过简单。

由于那种强烈负罪感,这个天气预报是自己工作后1年业余时间补做的。

虽然市面上有很多天气预报了,也有定时语音播报,但是果然用自己做的别有一番成就感。

虽然简单,但是很完善。

主要功能是每天刷牙洗脸上班的时候,可以不用再去打开手机看今天天气如何了。

像听广播一样,听到有雨就带上雨伞出门。

主要功能:

除了选择指定城市外,还可以根据你的网络提供商来获取你所在的城市。

比如我当前的网络是中国上海移动提供的,我所在城市就是上海

xml解析  天气接口查询    闹钟   后台service  以及系统通知 语音播报 SharedPreferences保存数据

自己编写的网络请求TaskService队列小框架

11ea96db09297771d7799224f2469b2a.png

ec1d91d92152ab0ecc8c44176da23a0e.png

相关博客:/**

* 天气接口博客 http://wmswu.iteye.com/blog/1194783 更全的

* http://blog.csdn.net/hello_haozi/article/details/7564223

* http://www.weather.com.cn/data/cityinfo/101010100.html

* http://www.weather.com.cn/data/cityinfo/101010100.html

*/

所有网络接口协议

// 返回当前所在城市的天气预报--新浪协议

public final static String CURRENT_URL = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=jsunicode&ie=utf-8%22";

// 6天预报: http://m.weather.com.cn/data/101010100.html

public final static String WEEKWEATHER_URL = "http://m.weather.com.cn/data/[?].html";

// 实时预报:http://www.weather.com.cn/data/sk/101010100.html

public final static String NEWWEATHER_URL = "www.weather.com.cn/data/sk/[?].html";

// 城市天气:http://www.weather.com.cn/data/sk/101010100.html

public final static String WEATHERCITYINFO_URL = "http://www.weather.com.cn/data/cityinfo/[?].html";

这里可以查询城市代码

0989099d7bc059a63276c2d61268f15d.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值