Skip to content

Practice fetching data from API / Loader. (※Currently updating UI and ListView → RecyclerView)

Notifications You must be signed in to change notification settings

tahia910/NewsAppProject

Repository files navigation

NewsAppProject

Project built for Udacity's Android Basics Nanodegree.

Android app that displays the news related to the user's topic of interest. The news are fetched from The Guardian News.

Features

  • Connect to an API and parse the JSON response.
  • Response validation/Handle error cases (Display error message when there is no internet connection or data to load).
  • Display the JSON response (date formatting). Update the information when necessary.
  • Use a loader to keep network operations independent of the Activity lifecycle.
  • Intent to web browser.
  • Create a Settings Activity from a menu in the Main Activity.
  • Implement the Preference Fragment to update and keep track of user's preferences.
  • Use Uri.Builder class to add query parameters to the URL.

The use of external libraries were not be permitted to complete this project._

How to install

Step 1

Clone the repository using git (or download it as a zip), then import the project in Android Studio.

git clone https://github.com/ootahiaoo/NewsAppProject.git

Step 2

The app fetches information from the Guardian API. You need to register and get your own API KEY in order to use this app. Once you have a key, open the gradle.properties file and replace the your-api-key with your own key at line 14.

theGuardianApiKey="your-api-key"

License

To be added.

Feel free to make pull requests/suggest improvements.

About

Practice fetching data from API / Loader. (※Currently updating UI and ListView → RecyclerView)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages