Android Kotlin: Forecast App 10 - Getting Device Location - MVVM Tutorial Course

preview_player
Показать описание
📗 Get the code from this tutorial 👇👇

We've already written code which is responsible for storing the WeatherLocation inside the local database. Our user interface is also prepared to use location. What we haven't implemented yet properly is the LocationProvider. At the moment it has only dummy functions which return some constant values.

In this tutorial, you're going to learn how to work with the location of the device and also, how to fall back to user-defined "custom" location if the user doesn't grant us the location permission.

Go to my website for more information, code examples and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

I am looking forward for something related to testing in your tutorials. Keep doing great job Reso. :)

Drumsasndroll
Автор

I like your tutorials, thanks).
Do you plan to add testing in this course?

taraszhupnyk
Автор

Awesome, great job. Thanks for sharing and the hard work to teach and share your knowledge

armandmugabo
Автор

4:00, you changed the "preferences" val to protected from private. Otherwise you cannot access it in the subclass. (You did right in the video, but not in speech)

jesperskoglund
Автор

Thank you for this amazing tutoriel
but can i get weather directly without puting it il the database, with the same architecture

wissemmiled
Автор

Is it just me or is the logic for the location wrong? shouldn't it be || since you can go direct E/W or N/S ?

jacobwisbeck
Автор

@Reso Coder. The App crashes whenever there is network call timeout if the network is poor. please help

kelviniyalo
Автор

If you enter the wrong name of the city, the application crashes. Help!

isplit
Автор

Hum, I get how it works for both interface / impl and abstract class for providers, but I don't get when and why should I use one over the other... I implemented PreferencesProvider as we did with the two others providers and that works well. Anyone to explain a bit ?

gillo
join shbcf.ru