/News-App

This is news app to git data from api as JSON and parse it in RecyclerView using HttpURLConnection and AsyncTaskLoader

Primary LanguageJava

News-App

This is news app it git data from api as JSON and parse it in RecyclerView using AsyncTaskLoader

I use in this project:

1 - RecyclerView and RecyclerView ViewHolder for better performance.

2 - using TextView as empty view with RecyclerView to show message when no connection or no data available.

3 - implement setOnClickListener on RecyclerView items

4 - AsyncTaskLoader instead of AsyncTask

5 - using uri builder to create url and using HttpURLConnection to make a connection

6 - get JSON data and parse it

7 - Load image from internet using Picasso library

8 - using SettingPreferenceFragment to change url and change JSON response

demo