How to Make a News App | REST API | Android Project

Поділитися
Вставка
  • Опубліковано 21 жов 2024
  • In this video we will see how we can make a News App for Android. We will use API from newsapi.org. This will be a beginner friendly project.
    Dependencies I have used:
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    ---------------------------------------------------------------------------------------------
    News API: newsapi.org/
    Postman Link: www.postman.co...
    Retrofit: github.com/squ...
    Gson: github.com/squ...
    Picasso: github.com/squ...
    Placeholder Image: drive.google.c...
    ---------------------------------------------------------------------------------------------
    Join our Facebook Group : / codingcom
    Our Facebook : / codingwithevan
    Our Instagram : / codingwithevan

КОМЕНТАРІ • 185

  • @davidgalvisrodriguez975
    @davidgalvisrodriguez975 3 роки тому +15

    Thank you so much, I am starting my career in Android development and this video help me out to understand how to implement an API, really aprecciate your job, greetings from Colombia.

  • @CodeEazyAcademy
    @CodeEazyAcademy Рік тому

    The best tutorial ever....it works fine on my machine. Fixed all the bugs that popped up plus adding another functionalities

  • @rogerioguerra3176
    @rogerioguerra3176 2 роки тому +1

    It occurs to me and I'll try to set an onClickListener to the DetailsActivity's txtContent and get the url of the article and thus open all the news content in a new Activity with a WebView Widget to get all the news content. I will return the result here soon. Tks...It worked as expected. Thank you so much for the excellent content. So far this work of yours is the best example I've researched about retrofit and Android Studio.

    • @someshsarode7662
      @someshsarode7662 Рік тому

      Hey can you provide some guidance over this issue. I too want to do this but not understanding how to do it

  • @rock8938
    @rock8938 Рік тому

    Thank you so much i first use volley but i am not getting reponse from api but after watching your video with retrofit i got finally. Thank you for the amazing video ❤

  • @Yatogami1_Yamato
    @Yatogami1_Yamato Рік тому +1

    Thank you so much for Uploading this Video, Brother. Your explanation was simple and easy to understand. I was finally able to create a proper Android project thanks to you.

  • @NelsonCastro123
    @NelsonCastro123 2 роки тому +1

    Man this is what I need. You really are a hero. Thanks a lot man!!

  • @onmoveonmove226
    @onmoveonmove226 2 роки тому +3

    What a beautiful lesson, thank you very much.
    This exactly 💯 what's I need.

  • @Avster9
    @Avster9 11 місяців тому

    Best tutorial I found so far, thank you!

  • @Shiv7137
    @Shiv7137 2 роки тому +1

    4gb ram, i3 processor .
    I made this application.
    Thanks a lot.
    And yeah it works as shown.
    But the news shown here is not full. Just few lines.

    • @mdtanverahmed200
      @mdtanverahmed200 2 роки тому

      In 37:33sec,how can you type (country:)(by telling default country)?
      And also tell me,Can i take Bangladesh country code as bd?
      Please sir help me.I am stopped here.😭

  • @_s_h_l_o_k_
    @_s_h_l_o_k_ Рік тому +4

    Hi Evan thanks for the tutorial. I was able to complete the app along with you.
    Plz Tell me how to update the news feeds each time as the app opens??

  • @tomcukuin602
    @tomcukuin602 2 роки тому

    a thanks from Vietnam. Evan you are Genius

  • @LearningTubeOnline
    @LearningTubeOnline 3 роки тому +8

    My laptop doesn't exists for android studio

  • @tekaligne
    @tekaligne 2 роки тому +2

    thank you it works perfectly .My question is how do make it to specific news source like BBC or CNN??

  • @avengerblack2042
    @avengerblack2042 2 роки тому +1

    Tq Super Video IAm From India

  • @mischief9499
    @mischief9499 2 роки тому +1

    thank you, love from india

  • @Blackmask_pa
    @Blackmask_pa Рік тому +3

    38:30 get the api_key give error please help me ! ! ! (create string value , rename reference)
    what should I have to choose?

  • @bge13622
    @bge13622 3 роки тому +2

    Very good bro
    1 viewed

  • @JerrysTechCorner
    @JerrysTechCorner 3 роки тому +1

    Thanks so much! I managed to create the app! My family loves it!

    • @devanshmehra6755
      @devanshmehra6755 2 роки тому +1

      Hey can you share the source code as i am getting some errors and not able to correct them

    • @mdtanverahmed200
      @mdtanverahmed200 2 роки тому

      In 37:33sec,how can you type (country:)(by telling default country)?
      And also tell me,Can i take Bangladesh country code as bd?
      Please sir help me.I am stopped here.😭

    • @amjadzannad7172
      @amjadzannad7172 Рік тому

      @@mdtanverahmed200 me to

  • @kartickmanna
    @kartickmanna Рік тому +2

    First of all, I want to thank you for the great tutorial. Sir, some headlines are not showing images and not also the default image that is in src attribute

  • @gouravkamboj3191
    @gouravkamboj3191 2 роки тому +2

    the video was very helpful sir I successfully made it and also added few other features like I gave (Read full article ) Textview at bottom of detailsActivity and later launched a new activity with webView when user click (Read full article ) Textview. in this way user can read full article within the app

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому +1

      Cool.

    • @harshanand4018
      @harshanand4018 2 роки тому

      Can you guide me how you implemented read full article.
      In my app full article does not show

    • @gouravkamboj3191
      @gouravkamboj3191 2 роки тому +1

      @@harshanand4018 yes sure I will share it with you

    • @momoomom2531
      @momoomom2531 2 роки тому

      @@gouravkamboj3191 How did you do that please?

    • @mdtanverahmed200
      @mdtanverahmed200 2 роки тому

      In 37:33sec,how can you type (country:)(by telling default country)?
      And also tell me,Can i take Bangladesh country code as bd?
      Please sir help me.I am stopped here.😭

  • @sahanweerasinghe7426
    @sahanweerasinghe7426 4 місяці тому

    Thank you so much for Uploading this Video

  • @aqshalhidayat8626
    @aqshalhidayat8626 Рік тому +1

    hi can i ask something, what is this mean E/eglCodecCommon: writeFully_tcp: failed: Broken pipe
    exit(-100) i still don't understand

  • @harisai3580
    @harisai3580 2 роки тому

    Hello sir TQSM, Subscribed right away

  • @عبدالحميدمحمد-س7س
    @عبدالحميدمحمد-س7س 3 роки тому +1

    Thanks Bro. Keep Going ❤

  • @_missarpita
    @_missarpita Рік тому +1

    Thanks alot. But my scrolling isn't woking..for the page and category. I made the whole project..but this scrolling isn't working..also it's showing no adapter attached. Can u please help me to find the error

    • @rock8938
      @rock8938 Рік тому +1

      I am getting only one news and it's showing - No adapter attached; skipping layout

  • @aldosoundrealm
    @aldosoundrealm 2 роки тому

    Excellent class, thank you!!

  • @HieuLe-mp5cg
    @HieuLe-mp5cg Рік тому

    Please let me know what I need to learn if I want to create projects like in the video list (language, framework, data, ...) thank you

  • @drjitendraKR
    @drjitendraKR 2 роки тому +2

    It’s work fine but I’m facing some problem like in detailActivity full content of news is not visible or only some part shows in textView.
    How can fix this ?

  • @jishnuraj2278
    @jishnuraj2278 2 роки тому

    Amazing video.. thanks

  • @RajaKhan-dp2ex
    @RajaKhan-dp2ex 2 роки тому +4

    Hi brother when you made this project, which view did you use at the beginning of the project? Basic activity, empty activity, which one did you pick when creating this project. Please tell me thank you brother.

  • @iseplutpinur1087
    @iseplutpinur1087 2 роки тому +2

    Thank you very much, I made this application for the final project of the mobile programming course in my college. you are very helpful. Thank you.

    • @devanshmehra6755
      @devanshmehra6755 2 роки тому

      Hey can you share the source code as i am getting some errors and not able to correct them

    • @kartikeywings2079
      @kartikeywings2079 2 роки тому +1

      hey were you able to manage to view full article?
      if yes then please let me know

    • @balramkumar2677
      @balramkumar2677 Рік тому

      @@kartikeywings2079 yes same problem

  • @aqshalhidayat8626
    @aqshalhidayat8626 Рік тому +1

    sir can i ask , the problem is loading to long and i cannot see the news look

  • @moseskamotho4371
    @moseskamotho4371 2 роки тому

    thank you this is very helpfull

  • @EugoKnight
    @EugoKnight Рік тому

    Hi brother, you make this application with kotlin or java?

  • @patriotpa3158
    @patriotpa3158 3 роки тому +5

    hi, do you have the source code for this to download? also, what version of gradle plugin and wrapper does this project need? i have tried to do this on the latest version of arctic android studio, but it gave me errors and completley failed!! thank you

  • @sravanikoushika527
    @sravanikoushika527 2 роки тому

    Very helpful sir can you do more apps using google maps , places and directions

  • @esrapiyuv1103
    @esrapiyuv1103 Рік тому

    what do you use as api in this project? rest or news??

  • @aqshalhidayat8626
    @aqshalhidayat8626 Рік тому +1

    sir can i have the code, because i try and is error at adapter and loading is to long that didn't show anything

  • @aqshalhidayat8626
    @aqshalhidayat8626 Рік тому +1

    what is this means sir No adapter attached; skipping layout

    • @rock8938
      @rock8938 Рік тому +1

      Same for me got any solution

  • @AE-en3rp
    @AE-en3rp 3 роки тому +1

    Keep going man 😎

  • @maxcharge4911
    @maxcharge4911 2 роки тому +1

    why does the content show limited words . is there way to read whole news through this app ?

  • @nishanttyagi1991
    @nishanttyagi1991 6 місяців тому

    Could you please provide me with the necessary code so that I can attempt to build the application on my own system as the download link to get the code or git repo is not available in description?

  • @KhanMubashshir20
    @KhanMubashshir20 Рік тому

    Awesome

  • @engineer.verma_
    @engineer.verma_ Рік тому

    It's showing circular dependency problem when I had executed it first time ... How to resolve it

  • @engineer.verma_
    @engineer.verma_ Рік тому

    i'm facing problem when i am putting the picasso and retrofit dependecies

  • @TheWackiman
    @TheWackiman Рік тому

    My API response is sending content and UrlToImage as null with the rest of it all being there. Is there an issue with NewsAPI or my code?

  • @rupalimandlik2924
    @rupalimandlik2924 Рік тому

    this video is best 🥰its working at my side. App is updating on daily basis news , but the problem is scrolling categories not working pls help me for this, can you share source code ??

  •  Рік тому

    Hello bro , i have to wuestion for you. I tried this tutorial and i change something. But i try to add go to news source button on detail activity i trying more methods but i didnt this how i can it ?

  • @winter_t
    @winter_t 2 роки тому

    Thank you so much! Sir!

    • @mdtanverahmed200
      @mdtanverahmed200 2 роки тому

      In 37:33sec,how can you type (country:)(by telling default country)?
      And also tell me,Can i take Bangladesh country code as bd?
      Please sir help me.I am stopped here.😭

    • @winter_t
      @winter_t 2 роки тому

      I'm sorry, I also forgot it.

  • @abishekkumar2469
    @abishekkumar2469 Рік тому

    Sir full news does not appear in that text view of content below description
    if i put scroll view, it is now working can you help me to bring every news in that page?

  • @cliffordyeboah4565
    @cliffordyeboah4565 3 роки тому

    Great video

  • @LokeshLokii1612
    @LokeshLokii1612 2 роки тому +1

    I have a problem in app. When I click any category like science, health the app crashes and close automatically.Can you tell me in which part I have the problem?

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому

      Make sure you initialized all the top buttons.

  • @lets_code_easily
    @lets_code_easily 4 місяці тому

    Why you stopped making videos?

  • @suryanshsoni3420
    @suryanshsoni3420 Рік тому

    I am facing issues related to context in creating grid layout. Please help

  • @vishvenderpratap8851
    @vishvenderpratap8851 2 роки тому

    hello sir i made this project by watching your video ... my app is running correctly .. but it is not showing the details of news ... showing only the heading of news
    please help me to resolve this problem

  • @dagetto2006
    @dagetto2006 2 роки тому +8

    Is it possible to have the source code? I am not very familiar with the design model you're using for Java in terms of classes and interface and having a wider overview on it would help a lot

  • @sanju_sebastian
    @sanju_sebastian 2 роки тому +1

    Can we combine 2 or more countries ?

  • @dahayu3694
    @dahayu3694 Рік тому

    Why only country "us" that show the news? I try using "sg" and another country but nothing show? Can anyone help me, please?

  • @RajaKhan-dp2ex
    @RajaKhan-dp2ex 2 роки тому

    Hello brother, the placeholder image folder still dont work image doesnt show? Do I need placeholder?

  • @polsoft8282
    @polsoft8282 2 роки тому

    thanks a lot sir, i have successfully made the app, but as country code i have used "us" but my data is fetching in Russian/spanish i can't even relate...any advise would be a great help
    TIA

    • @ratimshariar102
      @ratimshariar102 2 роки тому

      @@nishthamishra749 you havenot added any adaptor on recycleview

  • @esrapiyuv1103
    @esrapiyuv1103 Рік тому

    which programming language ?

  • @MusicWorldak
    @MusicWorldak 2 роки тому +1

    Will it work in android 11/10?

  • @sumanthkumar3296
    @sumanthkumar3296 Рік тому

    how to show full article

  • @jobaerhassan4870
    @jobaerhassan4870 Рік тому

    great.

  • @sayli-v2j
    @sayli-v2j 7 місяців тому

    does this contain database??

  • @akshata4092
    @akshata4092 Рік тому

    thank you 😊

  • @mahashaktiakhand
    @mahashaktiakhand 3 роки тому

    Please make a video for same app for wordpress blog

  • @kartikeywings2079
    @kartikeywings2079 2 роки тому

    please may I know the project front & back end

  • @saheelsutar6489
    @saheelsutar6489 Рік тому

    Sir your placeholder image link is not working... Please resolve it as soon as possible

  • @naufalakbar677
    @naufalakbar677 Рік тому

    hallo man, what a languange u use? java or kotlin?

  • @pushkarjain5876
    @pushkarjain5876 2 роки тому

    how to add multiple country to see news from multiple country?

  • @uditparekh2606
    @uditparekh2606 2 роки тому

    i coded app like this but what about read more button

  • @mdtanverahmed200
    @mdtanverahmed200 2 роки тому +1

    In 37:33sec,how can you type (country:)(telling by default)?
    And also tell me,Can i take Bangladesh country code as bd?
    Please sir help me.I am stopped here.😭

    • @rock8938
      @rock8938 Рік тому +1

      It is just meaning of that place, it's just ("us")

  • @justNoxx
    @justNoxx Рік тому

    can somebody send me source code, because i have some errors there with picasso, i exactly dont know why its happening, The error is Path must not be empty

  • @MaxBubblegum47
    @MaxBubblegum47 8 місяців тому

    is there any link for the source code?

  • @manureddy4609
    @manureddy4609 Рік тому

    Bro adapter connection is no established

  • @ЭляСадыкова-о1с

    placeholder image doesn’t working ☹️

  • @chetanbhusari7210
    @chetanbhusari7210 Рік тому

    Can anyone provide the source code of this app I am facing issue with starting of app it is not getting started and keeps stops everytime😢

  • @vidyasagarsahu1265
    @vidyasagarsahu1265 2 роки тому +1

    When we run our app it has stopped
    And show New App has stopped
    Please help me to run the app smoothly without error.

  • @rawmetal3052
    @rawmetal3052 3 роки тому

    Sir does this app has a Swipe to Refresh functionality?

    • @CodingWithEvan
      @CodingWithEvan  3 роки тому +1

      No I haven’t added that. But you can watch this tutorial to add that.
      ua-cam.com/video/sJFa_AkeNjI/v-deo.html

    • @rawmetal3052
      @rawmetal3052 3 роки тому

      @@CodingWithEvan Thank you!

  • @dhruba_hh4024
    @dhruba_hh4024 2 роки тому

    Description of the news headlines are small.

  • @rsrgamer1898
    @rsrgamer1898 3 роки тому +2

    Keep it up
    But I need a option
    to user upload their photo 📷 on my app
    Pls give the video 📹 Of this matter
    😔

    • @rsrgamer1898
      @rsrgamer1898 3 роки тому

      Sir pls reply me pls tell code for my problem

  • @shabbirhoshen4233
    @shabbirhoshen4233 2 роки тому

    Dear, I have coded according to you. So, the apps run without any error, and loaded the news headlines and images, but the apps crashed down when I clicked for details on any news link.

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому

      Make sure you made your model classes Serializable. Also in details activity, make sure you captured the data from intent before populating them into views.

    • @ell_doorado
      @ell_doorado 2 роки тому

      @@CodingWithEvan sir , what are the prerequisites for this video

    • @aymanebarhdadi2556
      @aymanebarhdadi2556 2 роки тому

      Hi friend, I have the same problem , how did you fix that ?

    • @aymanebarhdadi2556
      @aymanebarhdadi2556 2 роки тому

      @@CodingWithEvan Sir I made my classes Serialisable , but when I want to enter on any news detail the app stops

    • @mamtaCoder
      @mamtaCoder 2 роки тому

      @@aymanebarhdadi2556 make sure your class file or activity are added in menifest file....
      This similar problem I faced and my mistake was that I can't add the activity file in menifest file so you just check the menifest file....

  • @momoomom2531
    @momoomom2531 2 роки тому

    How can I view the full article please in the activity detail ?

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому

      You can load the fullnews url in a webview.

    • @momoomom2531
      @momoomom2531 2 роки тому

      @@CodingWithEvan How can I do this please ?

    • @leonardosabino7066
      @leonardosabino7066 Рік тому

      @@momoomom2531 ua-cam.com/video/TUXui5ItBkM/v-deo.html

  • @abanobemad403
    @abanobemad403 2 роки тому

    My brother, when searching in any category other than general, he will not bring any news, because this is how he will search only in general.

  • @nikhilkhokar4346
    @nikhilkhokar4346 2 роки тому

    Can someone plz tell me which architecture this app is using is it MVC or MVVM??

  • @PrinceKhan-pw5re
    @PrinceKhan-pw5re 2 роки тому

    Sir content is not show fully

  • @jyotishokhanda2520
    @jyotishokhanda2520 2 роки тому

    How can I add serial number in news headlines .

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому

      You can show list.get(position) value on a textView

  • @subhashchanna7908
    @subhashchanna7908 2 роки тому

    Null pointer exception while getting source name...

    • @CodingWithEvan
      @CodingWithEvan  2 роки тому +1

      Maybe there is an issue with the naming of object. Check Again

    • @subhashchanna7908
      @subhashchanna7908 2 роки тому

      @@CodingWithEvan okay... Lemme check... thanks btw

  • @kavin945
    @kavin945 2 роки тому

    I can some error pls help me bro

  • @screenwriterkumar483
    @screenwriterkumar483 2 роки тому

    Hi sir, how to get all the country's api?

  • @39-rokhirawlo29
    @39-rokhirawlo29 3 роки тому

    Build with a blank screen after adding Internet permissions, pls provide the source code

    • @ishanbarot5946
      @ishanbarot5946 3 роки тому

      same app installed succefully but showing blank screen idk why, is your app running correctly?

    • @39-rokhirawlo29
      @39-rokhirawlo29 3 роки тому +1

      @@ishanbarot5946 now its working fine bro

    • @harshakasinadh4849
      @harshakasinadh4849 2 роки тому

      getting the same issue bro can you plz help me?

    • @nishthamishra749
      @nishthamishra749 2 роки тому

      @@39-rokhirawlo29 would you please tell me how to resolve this as I am facing now please.

    • @balramkumar2677
      @balramkumar2677 Рік тому

      @@nishthamishra749 same pleasse say

  • @avengerblack2042
    @avengerblack2042 Рік тому

    No adapter attached; skipping layout is showing Dude

  • @周扬-u3z
    @周扬-u3z Рік тому

    any source code?plz

  • @christopherangbalu279
    @christopherangbalu279 2 роки тому

    The placeholder image that you linked in the description isnt working

  • @mohamedma2811
    @mohamedma2811 3 роки тому

    after following the steps the app couldnt start

    • @CodingWithEvan
      @CodingWithEvan  3 роки тому

      What's the error?

    • @mohamedma2811
      @mohamedma2811 3 роки тому

      @@CodingWithEvan it shows me a white screen when I run the app

    • @ishanbarot5946
      @ishanbarot5946 3 роки тому

      @@CodingWithEvan bro my app is runniny perfectly but ater opening app screen is blank i gave permission internet in manifest file (i installed app when you first time installed in video) please give idea why it is showing blank screen

    • @ishanbarot5946
      @ishanbarot5946 3 роки тому

      @@CodingWithEvan bro showing white screen only and after adding progressbar that bar is non-stop spinning but api is not loading still a white backgorund please reply

    • @vidyasagarsahu1265
      @vidyasagarsahu1265 2 роки тому

      @@CodingWithEvan app has stopped?

  • @skillbuilderoffical
    @skillbuilderoffical 2 роки тому

    time west video . full news not loading . just 1 page loaded . in last line [ +874 chars] . you don't fixd it? whay ?
    in 1:06:49 you also see . but you skip it .

    • @tranvanngoan2780
      @tranvanngoan2780 2 роки тому

      You need to read content in API: "The unformatted content of the article, where available. This is truncated to 200 chars"

  • @shantanujr9204
    @shantanujr9204 7 місяців тому

    Source code 😢😢😢

  • @samirdesigner3324
    @samirdesigner3324 3 роки тому

    thank you
    make app text on photo

  • @sakurabliss4888
    @sakurabliss4888 2 роки тому

    5:55