GithubHelp home page GithubHelp logo

coolweather's Issues

为什么要把id值设置到code中去

请求的城市数据中并没有code的数据,不过对应数据表的litepal实体类中新建了code属性,并且在设置值的时候是将id的值传入了code属性中,是因为litepal的实体类中id属性是默认保留的么?

可能会有不能及时刷新数据的issue

当获得天气数据并缓存到本地数据库后,之后在访问同一城市的数据会优先获取本地缓存的数据而不是访问网络数据。
此时即使本地缓存的数据是比较过时的数据也不会去主动更新了,只能等待update service在后台去更新数据了。因为update service是每隔8小时启动一次,所以总觉得app中数据更新的不是很及时。

感觉这点还是有改进的余地。不过考虑到那个天气API的每日限定3000次的访问数和大部分开发者依然使用的是代码中默认的那个API key,减少网络访问次数也可能是一种考量。

天气接口返回的数据减少了以及后台更新问题

1.像aqi等一些数据很多城市都没有了,其次预报也只有3天了。。。

2.后台更新将数据存在SharedPreferences里面,但是每次只有oncreate的时候才会读取数据,按照现在手机驻留app的能力,可能更新的效果会很弱。

闪退

你好,我学习郭老师酷欧天气所写的项目和下载的你的,在导入并且下载后都出现闪退,是怎么回事,求指教(百度的方法都未解决)

错误提示如下:E/HAL: load: id=gralloc != hmi->id=gralloc

获取不到天气信息

那三个界面显示出来了,但是到显示天气的信息的时候总是说显示信息失败,不知道是怎么回事

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.