News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2

The Most Popular Traffic Exchange Service

Make an Android News App
Read JSON data from the API

Demo App (.apk) : popularnews.page.link/apk

Hello everyone, now we will make a news application using the API from newsapi.org/ v2 -
API News Is JSON API for live news and blog articles from the media.

This tutorial uses retrofit2 as HTTP Clent -
Retrofit is a REST Client for Java and Android. Its use is very easy.

• News API.
• Retrofit.
• Glide for the Image Network.
• Material design.
• Prettytime for Convert Java Date() objects in just “a few minutes!”.


Demo App (.apk) : popularnews.page.link/apk

_____________________________________________


++++++++++++++++++++++
‡ Link to help code: ‡
++++++++++++++++++++++


¦ Dependencies: gist.github.com/haerulmuttaqin/e853cdfa7bd8c7330cc13b3ddd456574

¦ Color.xml: gist.github.com/haerulmuttaqin/30164cb535dc7f1264bd82304a70c8c6

¦ Drawable resources file: bit.ly/resources-newsapp

¦ Utils.java: gist.github.com/haerulmuttaqin/3d20a9127070451ccedd80c284649fd6

_____________________________________________


#2 : youtu.be/LutqUWiHoiI
#3 : youtu.be/Sujg1yg4a2E
#4 : youtu.be/_j7C_px28lo
#5 : youtu.be/fC_oGoVvMwY
#6 : youtu.be/pJXQVE72z80
#7 : youtu.be/HqwEmRsJfLA

_____________________________________________



Happy coding. ☺
Don't forget to Subscribe, Like, and Share it to be useful.

Connect with me: -

≡ Linkedin : linkedin.com/in/haerulmuttaqin/

≡ Instagram : instagram.com/haerulmuttaqin.id/

≡ Google+ : plus.google.com/+HaerulMuttaqin



©2018 • Haerul Muttaqin


=====================================
newsapi.org/
square.github.io/retrofit/
bumptech.github.io/glide/
material.io/design/
ocpsoft.org/prettytime/

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Video Statistics

Total Views
42,543
Total Likes
566
Total Comments
221

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Comments


News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Reviews

Want to access your favorite websites?
5NIP3R Xd
5NIP3R Xd
14 November 2019

If you want to filter news according to country & topic go to Apiinterface.java change @get(country) to @get(https://newsapi.org/v2/top-headlines?country=xxxxx&category=xxxxxx&apiKey=xxxxxxxxxxxxxx)

Shafyq Muhammed
Shafyq Muhammed
31 October 2019

Which OS is this?

Chương. Official
Chương. Official
14 October 2019

I just saw the heading text :( somebody help meeeee

Payoneer
Payoneer
19 November 2019

Exclusive Promo! Payoneer is an online payment platform that lets you transfer money from any corner of the world! Sign Up an Earn $25 for free by joining Payoneer click here!

Shane Kelly
Shane Kelly
10 October 2019

To make your images display do the following: 1. Go to Adapter.java 2. Go to your onBindViewHolder method. 3. Find all the holder. lines of code 4. Add the following code holder.imageView.setImageURI(Uri.parse(model.getUrlToImage())); 5. Run your app

joshua bautista
Joshua bautista
08 October 2019

my application keep showing no result but my code is same as yours . but the different i'm using this on fragments please help

Honeyminer
Honeyminer
19 November 2019

Start mining cryptocurrency right now, for free. Honeyminer makes mining and earning money simple for anyone with a computer. Start Earning Now!

Shubham Tiwari
Shubham Tiwari
06 October 2019

I am not getting correct date format. getting date format from some another country

Shubham Tiwari
Shubham Tiwari
05 October 2019

Sir in which class you added item.xml file? Can Any one help me.

Ralph Emerson
Ralph Emerson
05 October 2019

We must be as courteous to a man as we are to a picture, which we are willing to give the advantage of a good light.

sukron jazuli
Sukron jazuli
26 September 2019

Awesome... Give sourscode please.. 🙏🙏🙏 thank you.

ℭ𝔞𝔭𝔦𝔳𝔞𝔯𝔞 𝔍𝔞𝔪𝔞𝔦𝔠𝔞𝔫𝔞
ℭ𝔞𝔭𝔦𝔳𝔞𝔯𝔞 𝔍𝔞𝔪𝔞𝔦𝔠𝔞𝔫𝔞
24 September 2019

Thank you, You helped a lot! :)

On My Way
On My Way
22 September 2019

Everything is fine bt in the tutorial published At not getting data ...:(

Chuck Norris
Chuck Norris
19 November 2019

Go to Joke #51, for this joke. This was hacked by Chuck Norris.

Akshay Shetty
Akshay Shetty
22 September 2019

Solution:- If you just see "top-headlines" text.. Goto Article.java and remove the line "import javaX.xml.transform.source" and then run the app again

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Wiki

The internet with no limits

News is information about current events. This may be provided through many different media: word of mouth, printing, postal systems, broadcasting, electronic communication, or through the testimony of observers and witnesses to events. Common topics for news reports include war, government, politics, education,health, the environment, economy, business, fashion, and entertainment, as well as athletic events, quirky or unusual events. Government proclamations, concerning royal ceremonies, laws, ...

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Images

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 image

News Feed 📰 (Get JSON & Display to RecyclerView) - Android News App Tutorial #1 • API •Retrofit2 Like Videos

Video Data


Express VPN

Haerul Muttaqin Similar Videos

    Wirex
    changelly

    Popular TV Seasons

    Shopify Make a Money

    Popular Apps

    Popular Podcasts