Shows current weather details as well as hourly and daily forecast.
Shows data even if internet is not available
- Checks if GPS is enabled:
- If enabled: Gets latitude and longitude of current location and stores it in Shared Preference.
- If not enabled: Asks user to enable it.
- Fetches Data from openwathermap API with the help of Retrofit using the latitude and longitude from Shared Preferences.
- Stores it in local Database with the help of ROOM.
- Displays the Data to the User from the database.
- Displays the stored data from the database.
Click here to watch a video demo.
- Shows GPS is on/off even if internet is off
- Doesn't ask GPS permission if internet is off cuz it doesn't matter.
- Doesn't ask for GPS again if the user hits "ignore" (Unless user wishes to enable it).
