# GoodWeather
**Repository Path**: zrw_git/GoodWeather
## Basic Information
- **Project Name**: GoodWeather
- **Description**: 本项目没有自己搭建后台,所以自然不会有什么服务器数据库,数据来源于和风天气API,不了解的可以看看我的博客文章,也可以先通过二维码或者下载链接去下载APK体验,使用过程中有问题可以在GitHub上提出,或者在博客中评论。我会在第一时间回复,感谢您的阅读,山高水长,后会有期
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2024-01-05
- **Last Updated**: 2024-01-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

## APP介绍与使用
本项目没有自己搭建后台,所以自然不会有什么服务器数据库,数据来源于和风天气API,不了解的可以看看我的博客文章,也可以先通过二维码或者下载链接去下载APK体验,使用过程中有问题可以在GitHub上提出,或者在博客中评论。我会在第一时间回复,感谢您的阅读,山高水长,后会有期 ~
将项目导入到Android Studio 有如下两种方式:
1. 复制 https://github.com/lilongweidev/GoodWeather.git 在AS的导航栏中 VSC → Checkout from Version Control → Git .然后会弹出一个克隆项目的弹窗,粘贴刚才复制的地址,点击弹窗的Clone按钮就可以克隆GitHub上的项目到自己的AS中了。不过这个时候是比较看你的网速的,项目中的很多内容与你本地环境不同,所以需要下载和配置才行。
2. 点击绿色的Code按钮,点击Download ZIP,直接下载压缩包到电脑本地,然后解压,通过AS 的导航栏 File → Open 找到刚才解压之后的文件,然后就是同步和配置即可。
## 答疑
在Clone源码到本地Android Studio中DeBug运行时,进入地图页面时,发现没有定位或者是无反应,请检查Run下面的日志信息,看有无 "鉴权错误信息" 等字样,如果有的话则说明你需要使用自己项目生成的开发版SHA1,替换掉平台上的应用配置信息,当你看到这个源码之前,你肯定是从博客过来的,那么你可以点击[Android 天气APP(一)开发准备](https://blog.csdn.net/qq_38436214/article/details/105204552)进行百度开发者的账号注册并配置应用,文章里已经讲得很详细了,至于鉴权错误信息的处理你可以通过[Android 百度地图SDK 自动定位、标记定位](https://blog.csdn.net/qq_38436214/article/details/107604267)这篇文章,点击目录“疑问解决”来查看解决方案,祝您使用愉快。
Windows中GitHub图片显示异常解决方法:打开hosts文件所在目录,C:\Windows\System32\drivers\etc\hosts,默认我们对hosts文件是没有修改权限的,需要开启修改权限,开启修改权限后,用随便用一个编辑器打开,添加的内容请参考这个[hosts](https://github.com/lilongweidev/GoodWeather/blob/master/hosts)文件中最后的部分,对比你的本地进行添加即可。(注意这个开始和结束的标识)
## APP功能描述
15天天气预报、空气质量、生活建议、出行建议、灾害预警、分钟级降水、城市切换、城市搜索、常用城市、世界国家/地区的城市、壁纸切换、壁纸下载、地图天气、地图搜索定位、每日提醒、语音播报、语音搜索、快捷切换常用城市、应用自动更新、错误监控
## 运行效果图
GIF看不了的,打开下面的视频地址进行观看
[APP演示视频地址](http://m.v.qq.com/play.html?cid=&vid=m3139pttqgo&vuid24=xHi7q3LxeNTsapddk3QYFg%3D%3D&url_from=share&second_share=0&share_from=copy)
## 网址下载
点击下载[好天气APP](http://d.maps9.com/h4sg)
## 扫码下载

## 天气APP 博客专栏
[天气APP](https://blog.csdn.net/qq_38436214/category_9880722.html)
## 天气APP文章博客(一步一步开发天气APP)
[Android 天气APP(一)开发准备](https://blog.csdn.net/qq_38436214/article/details/105204552)
[Android 天气APP(二)获取定位信息](https://blog.csdn.net/qq_38436214/article/details/105328603)
[Android 天气APP(三)访问天气API与数据请求](https://blog.csdn.net/qq_38436214/article/details/105328657)
[Android 天气APP(四)搭建MVP框架与使用](https://blog.csdn.net/qq_38436214/article/details/105328692)
[Android 天气APP(五)天气预报、生活指数的数据请求与渲染](https://blog.csdn.net/qq_38436214/article/details/105328780)
[Android 天气APP(六)旋转风车显示风力、风向](https://blog.csdn.net/qq_38436214/article/details/105328824)
[Android 天气APP(七)城市切换 之 城市数据源](https://blog.csdn.net/qq_38436214/article/details/105328943)
[Android 天气APP(八)城市切换 之 自定义弹窗与使用](https://blog.csdn.net/qq_38436214/article/details/105328968)
[Android 天气APP(九)细节优化、必应每日一图](https://blog.csdn.net/qq_38436214/article/details/105331216)
[Android 天气APP(十)继续优化、下拉刷新页面天气数据](https://blog.csdn.net/qq_38436214/article/details/105435574)
[Android 天气APP(十一)未来七天的天气预报、逐小时预报、UI优化](https://blog.csdn.net/qq_38436214/article/details/105784966)
[Android 天气APP(十二)空气质量、UI优化调整](https://blog.csdn.net/qq_38436214/article/details/105856012)
[Android 天气APP(十三)仿微信弹窗(右上角加号点击弹窗效果)、自定义背景图片、UI优化调整](https://blog.csdn.net/qq_38436214/article/details/105941708)
[Android 天气APP(十四)修复UI显示异常、优化业务代码逻辑、增加详情天气显示](https://blog.csdn.net/qq_38436214/article/details/106155207)
[Android 天气APP(十五)增加城市搜索、历史搜索记录](https://blog.csdn.net/qq_38436214/article/details/106591788)
[Android 天气APP(十六)热门城市 - 海外城市](https://blog.csdn.net/qq_38436214/article/details/106645543)
[Android 天气APP(十七)热门城市 - 国内城市](https://blog.csdn.net/qq_38436214/article/details/106942710)
[Android 天气APP(十八)常用城市](https://blog.csdn.net/qq_38436214/article/details/106993550)
[Android 天气APP(十九)更换新版API接口(更高、更快、更强)](https://blog.csdn.net/qq_38436214/article/details/107327779)
[Android 天气APP(二十)增加欢迎页及白屏黑屏处理、展示世界国家/地区的城市数据](https://blog.csdn.net/qq_38436214/article/details/107538839)
[Android 天气APP(二十一)滑动改变UI、增加更多天气数据展示,最多未来15天天气预报](https://blog.csdn.net/qq_38436214/article/details/107705898)
[Android 天气APP(二十二)改动些许UI、增加更多空气质量数据和生活建议数据展示](https://blog.csdn.net/qq_38436214/article/details/107867980)
[Android 天气APP(二十三)增加灾害预警、优化主页面UI](https://blog.csdn.net/qq_38436214/article/details/108005938)
[Android 天气APP(二十四)地图天气(上)自动定位和地图点击定位](https://blog.csdn.net/qq_38436214/article/details/108274437)
[Android 天气APP(二十五)地图天气(下)嵌套滑动布局渲染天气数据](https://blog.csdn.net/qq_38436214/article/details/108274498)
[Android 天气APP(二十六)增加自动更新(检查版本、通知栏下载、自动安装)](https://blog.csdn.net/qq_38436214/article/details/108335485)
[Android 天气APP(二十七)增加地图天气的逐小时天气、太阳和月亮数据](https://blog.csdn.net/qq_38436214/article/details/108397121)
[Android 天气APP(二十八)地图搜索定位](https://blog.csdn.net/qq_38436214/article/details/108407945)
[Android 天气APP(二十九)壁纸设置、图片查看、图片保存](https://blog.csdn.net/qq_38436214/article/details/108469321)
[Android 天气APP(三十)分钟级降水](https://blog.csdn.net/qq_38436214/article/details/110469064)
[Android 天气APP(三十一)每日提醒弹窗](https://blog.csdn.net/qq_38436214/article/details/110647965)
[Android 天气APP(三十二)快捷切换常用城市](https://blog.csdn.net/qq_38436214/article/details/113498027)
[Android 天气APP(三十三)语音播报](https://blog.csdn.net/qq_38436214/article/details/113544891)
[Android 天气APP(三十四)语音搜索](https://blog.csdn.net/qq_38436214/article/details/113699279)
[Android 天气APP(三十五)修复BUG、升级网络请求框架](https://blog.csdn.net/qq_38436214/article/details/119295627)
[Android 天气APP(三十六)运行到本地AS、更新项目版本依赖、去掉ButterKnife](https://blog.csdn.net/qq_38436214/article/details/127673536)
文章代码是一篇一篇进行迭代的,也欢迎读者提供新的需求,适当采纳,更好的优化这个项目
联系邮箱:lonelyholiday@qq.com
博主:[初学者-Study](https://blog.csdn.net/qq_38436214)
## 版本说明
### V 2.9 (最新版本)
* 新版AS正常编译、更新项目版本依赖、去掉ButterKnife,使用ViewBinding
### V 2.8
* 增加友盟+性能监控SDK
### V 2.7
* 修复UI显示问题、资源图片处理、优化网络请求框架
### V 2.6
* 优化用户体验,新增快捷切换城市、语音播报、语音搜索功能
### V 2.5
* 分钟级降水、每日提醒
### V 2.4
* 新版壁纸管理、支持网络图片下载、优化页面UI
### V 2.3
* 新增地图逐小时天气、日出日落、月升月落、地图搜索定位
### V 2.2
* 新增应用自动更新
### V 2.1
* 新增地图天气
### V 2.0
* 新增灾害预警功能,主页面UI优化
### V 1.9
* 新增更多天气预报、空气质量、生活建议的数据、优化主页UI
### V 1.8
* 更新和风天气V7版API,删除热门城市、新增全球城市。启动页优化,黑白屏处理
### V 1.7
* 增加常用城市列表
### V 1.6
* 增加国内热门城市
### V 1.5
* 增加海外热门城市、新的天气UI效果
### V 1.4
* 增加搜索城市功能、历史搜索记录
### V 1.3
* 修复相关异常BUG,增加天气详情数据
### V 1.2
* 增加用户体验,允许自己修改背景
### V 1.1
* 七天天气预报、逐小时天气预报、界面UI优化
### V 1.0
* 初始版本、三天天气预报、空气质量、城市切换、生活指数