vyshane / rex-weather Goto Github PK
View Code? Open in Web Editor NEWA sample Android project demonstrating the use of Retrofit and RxJava to interact with web services
License: BSD 3-Clause "New" or "Revised" License
A sample Android project demonstrating the use of Retrofit and RxJava to interact with web services
License: BSD 3-Clause "New" or "Revised" License
I'm not sure, I was just curious if there is the chance that onDestroyView
could have been called but not onDestroy
, thus resulting in NPE when manipulating UI (the SwipeRefresh in this case).
Usage of LocationManager/LocationService is not recommended by Google, it is better to use com.google.android.gms.location.LocationServices from GMS library.
When I do not receive GPS location it took long time and fail at the end. It is enough cars location for weather.
Please using WeatherFragment() but there is not WeatherFragment in this module .
what basically it contain the WeatherFragment()
You should add retained fragments (see http://www.androiddesignpatterns.com/2013/04/retaining-objects-across-config-changes.html) or http://developer.android.com/reference/android/content/AsyncTaskLoader.html to retain the REST calls when the activity is restarted on device rotation. Right now, on orientation change, you get an error "sendUserActionEvent() mView == null" and you would notice it much more if you tried it with a bigger dataset than just the current weather.
By the way, because the landscape layout is unusable, you obviously only tested it in portait mode.
Hi @vyshane, it's a very cool demo, but the RxJava API is too old. can you upgrade the API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.