Тёмный

Java Android App using REST API - Network Data in Android Course 

freeCodeCamp.org
Подписаться 10 млн
Просмотров 229 тыс.
50% 1

Learn how to build an Android app with Java that handles JSON data from a REST API service. The app uses the Volley library to create a weather app using API data.
This course includes advice on building a RequestQueue, designing a Singleton, and using callbacks for async network communications. You will also learn to use the Volley library methods JsonArrayRequest and JsonArrayObject to parse a JSON file.
✏️ Course developed by Shad Sluiter. Check out his RU-vid channel: / shadsluiter
⭐️ Course Contents ⭐️
⌨️ (0:00:00) REST API explained: JSON vs XML
⌨️ (0:14:04) Introduction to the Android Weather App
⌨️ (0:17:32) Design the Layout
⌨️ (0:29:16) Button onClick Listeners
⌨️ (0:35:52) Request JSON Data with Volley
⌨️ (1:01:44) Singleton Request Queue in Volley
⌨️ (1:09:20) Callbacks for Async Requests
⌨️ (1:31:06) Fetch One JSONObject from an Array
⌨️ (1:45:56) JSONArrayRequest with Volley
⌨️ (1:59:14) Fetch JASONArray with Volley
⌨️ (2:08:16) Get Forecast by City Name
⭐️ Special thanks to our Champion supporters! ⭐️
🏆 Loc Do
🏆 Joseph C
🏆 DeezMaster
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Опубликовано:

 

23 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 195   
@roiiroii9561
@roiiroii9561 3 года назад
Ive seen many people try and explain android studio projects on youtube. But you got my like & subscribe. You take your time, cut it short on things that aren't important and explain every single step. Great great job!
@felixnyamongo
@felixnyamongo 3 года назад
Thanks so much for this. Was just getting started on learning Volley and you posted it at the right time.
@dailyprodmusic9656
@dailyprodmusic9656 2 года назад
Thank you so much for this lesson. This video is suitable for everyone that has some basic concepts about Android, so he/she understands what the instructor is really doing
@mpalanipsbb
@mpalanipsbb 3 года назад
Thanks! This was great! I have been searching something like this for a long time. So grateful!
@somerhaha1687
@somerhaha1687 10 месяцев назад
This is fantastic! The fact you go into deep detail into every problem and error and the fact you also visit the documentation is wonderful for someone having first contact with REST APIs in android
@evanhauk
@evanhauk 2 года назад
Super helpful! Thanks so much. I used this for a implementation of a different database, and it took the user input and searched for the item in the JSON data and displayed the attributes to a list. Simple but a lot of work to get it working right!
@raphaeljones9747
@raphaeljones9747 3 года назад
Literally the best Android tutorial on RU-vid.
@adityaojha2701
@adityaojha2701 3 года назад
This is amazing. Love the way you explained everything precisely.
@newtrivia
@newtrivia 2 года назад
I need help bro
@rodrigorgpsk8
@rodrigorgpsk8 2 года назад
Amazing Course! I was making some research about how to consume an API and this was very helpful! Thanks a lot
@vexxecon
@vexxecon 3 года назад
This is a fantastic course. The approach of build, refactor, repeat builds a great set of tools to write better code. The best takeaway from this video in my opinion.
@alexjohnson5677
@alexjohnson5677 3 года назад
Outstanding content and a great presenter! Thank you
@michaelodempsey2487
@michaelodempsey2487 3 года назад
Fantastic presentation... Wish I had teachers like that at school and may have learnt more... Thank You
@TechnikFreakDE
@TechnikFreakDE 3 года назад
*Wow, im very impressed.* It is my 6. semester in Germany and I searched for help to implement my first own app to get Corona-Data from our institute because I don't want to check every day many of values for different cities. I never thought to found a so damn good tutorial which helps me for all my questions with the API, Callbacks etc. Never saw a video like this. I have no suggestions, it was perfect. My app is working and I have so many ideas for develope it further. It makes a lot of fun. Thanks a lot that I can watch this for free on RU-vid. Greetings from Germany!
@zaidtahir936
@zaidtahir936 Год назад
Do you have a link to that API? bcz I have tried many times but I can't find the API
@TechnikFreakDE
@TechnikFreakDE Год назад
​@@zaidtahir936 Im using an API from a German health institute. It provides only data for Germany, so I think it will not help you.
@truongquochung4858
@truongquochung4858 3 года назад
This video has made my day. Thank you so much!
@ahmedhamed07
@ahmedhamed07 3 года назад
This is one of the best tutorials on RU-vid, thank you
@patrcianawel876
@patrcianawel876 2 года назад
This is the first time i watch an entire 2 hours video, I'm impress, and i thank you for your explaination.
@madjidsafari8487
@madjidsafari8487 2 года назад
thank you I am Madjid from ALGERIA I have complete 1 hour of the whole video and I am very happy to practice with you, your lesson is very simple and self-explanatory
@naffiahanger9316
@naffiahanger9316 3 года назад
Perfect way of teaching. And best tutorial on Android I have ever seen.
@Kasula23
@Kasula23 2 года назад
Your explanation are so good. One of the best i have ever heard. Respect
@M1A2_Abrams_MBT
@M1A2_Abrams_MBT 3 года назад
Explanations are really simple and easy to follow. Liked/subscribed.
@sahinhacyev5266
@sahinhacyev5266 2 года назад
Incredible way of teaching, awesome!
@alainleclerc4523
@alainleclerc4523 3 года назад
Dear professor! i really enjoy your amazing tutorial. I learnt a lot and it was an opportunity to create a nice app. thank you very much for putting this tutorial on RU-vid. you are a wonderful teacher!! just one note: this tutorial is definitively not for beginners. it is required to know well classes, interfaces. it is only an advice for other students. but it is a very good introduction to API with android. thank you very much!!
@JIJI-vc4ue
@JIJI-vc4ue 2 месяца назад
From the bottom of my heart, thank you
@sahilverma4077
@sahilverma4077 3 года назад
felt great to see that people are still making android apps in java, btw nice tutorial, got a lot out of it you have my gratitude
@basselnasief7492
@basselnasief7492 3 года назад
Java has always been the best!
@sahilverma4077
@sahilverma4077 3 года назад
@@basselnasief7492 that's what I want to explain to my juniors, but they don't give a heads to my points on why java is a good option, they neglect everything because it's verbose according to them
@yematawerktadesse9361
@yematawerktadesse9361 3 года назад
Great as usual!!!
@tarekrefaei90
@tarekrefaei90 3 года назад
Totally perfect.. I like your way to explain everything .. awesome
@mattgraves3709
@mattgraves3709 3 года назад
Outstanding. I can't seem to find enough focus on working with data
@moai545
@moai545 3 года назад
This is Great Course By Great Professor! Thank you very much for Great time Sir!!!
@maance
@maance 2 года назад
Thank you For this video!!! The best explanation of how apis work in Android app development process.
@user-lo4jx2xl1n
@user-lo4jx2xl1n 3 года назад
Finally something with JAVA
@AdityaPandey-eb7wq
@AdityaPandey-eb7wq 3 года назад
Yes
@vasilvasilev6225
@vasilvasilev6225 3 года назад
Thanks so much for this tutorial!!!
@yosr.
@yosr. Год назад
This tutorial has been really helpful !
@saharas7635
@saharas7635 2 года назад
Great Course! Thank you so much, I have learned a lot from this course.
@adinglew5744
@adinglew5744 2 года назад
Great courses! Thank u very very mucn😘
@RohitSingh-lu9it
@RohitSingh-lu9it 3 года назад
Thank you so much ,it was a very enjoyable course
@Valektrum
@Valektrum 3 года назад
Great video! Thank you!
@m.y.4454
@m.y.4454 2 года назад
Absolutely HELPFUL
@roasystemsable
@roasystemsable 3 года назад
Thanks for sharing this video, was really helpful and useful for me.
@vladimirganin8737
@vladimirganin8737 3 года назад
Great presenter ever! Thanks!
@michaelfarias4901
@michaelfarias4901 2 года назад
This teacher explains as if he were dealing with an acephalous, exactly what I needed, very good!
@himanityagi2048
@himanityagi2048 2 года назад
Amazing lecture. Thankyou!
@manuelgmra
@manuelgmra 3 года назад
Thank you It was easy to replicate and the explanation is simple.
@Djzaamir
@Djzaamir 3 года назад
Awesome video, Thanks.
@simonmaluleka
@simonmaluleka 2 года назад
Thank you so much, coded along in Kotlin and your explanations made is easy to code this app
@eng.sayeedazmal676
@eng.sayeedazmal676 2 года назад
thank you so much.. it's a enjoyable course
@takeyamitchell4643
@takeyamitchell4643 3 года назад
Awesome tutorial!
@alifirhas3550
@alifirhas3550 3 года назад
These are my lessons for the next 2 semesters
@sknoman3949
@sknoman3949 2 года назад
A great lesson I learned a lot.
@shambhaviaggarwal9977
@shambhaviaggarwal9977 3 года назад
Your way of teaching is fantastic! I loved the part where you made mistakes and corrected them later. Your video helped me a lot to build my own project. Thanks a ton!
@madjidsafari8487
@madjidsafari8487 2 года назад
I find that his method is effective and it is better than the prepared courses which hides steps without explaining them
@mohamedshuaau632
@mohamedshuaau632 3 года назад
37:09 "volly is an HTTT...p... Library" had me cracked. And the way you completely ignored it and kept going was hilarious
@user-mo7dk9gj1d
@user-mo7dk9gj1d Год назад
ITS WORKING! nice job dude
@Ekilfiti
@Ekilfiti Год назад
Great tutorial! :D
@mohammedzakiuddin2630
@mohammedzakiuddin2630 3 года назад
Thank you for the video
@javohirabduxakimov8710
@javohirabduxakimov8710 3 года назад
Very helpful!
@larrysmusics531
@larrysmusics531 3 года назад
You're amazing man
@Admin-tk6ri
@Admin-tk6ri 3 года назад
I learnt Basic Java and applied for an internship and the very next day I was assigned to make an application which shows the details of a region form REST API, according to user input and also had to load the previously viewed data even if the user is offline. I've time of 48 hrs only. But now I think I can do it and I'm gonna do it.🔥
@McLovinBillion
@McLovinBillion 2 года назад
Were you able to do it?
@MadeInPython
@MadeInPython Год назад
its been 2 years, any update?
@Admin-tk6ri
@Admin-tk6ri Год назад
Haha guyz, Yes I was able to do it and complete the assignment 90% not upto the mark but it was functioning pretty well. But I wasn't shortlisted as an intern. But after that various things happened and I managed to get an internship.
@coolstuff6342
@coolstuff6342 2 года назад
Sir you taught so well.
@thinkfeelcode7257
@thinkfeelcode7257 3 года назад
Your just awesome sir.... ❤️
@vickych9976
@vickych9976 2 года назад
Explaining very well.👍
@mesutdemirci7933
@mesutdemirci7933 3 года назад
thanks..great video..greating from turkey.
@xudoyshukur6481
@xudoyshukur6481 3 года назад
Thanks so much!
@gabrielmatheus1165
@gabrielmatheus1165 3 года назад
Perfect you help me a lot bro , good job keep going plz
@miladrahimi3283
@miladrahimi3283 3 года назад
i love this thank you
@deepakkandpal3497
@deepakkandpal3497 2 года назад
Very nice presentation.. thanks.
@balajibalu3996
@balajibalu3996 3 года назад
👏👏👏👏 nice tutorials
@baraakhateeb8330
@baraakhateeb8330 3 года назад
Best tutorial ever
@mollyfinch3543
@mollyfinch3543 2 года назад
This is amazing.
@ronaldlilith7841
@ronaldlilith7841 3 года назад
very clear
@giannoskomninos9091
@giannoskomninos9091 2 года назад
great video!!
@STERLINGRADIOPUNJABI
@STERLINGRADIOPUNJABI 2 года назад
Finally Finished the Whole tutorial After 10 days of Start . . Made the complete App along with the tutorial so it took me 10 hours to complete the Tutorial . . . Highly Recommended, Very easy to follow along. .
@as269
@as269 2 года назад
do you face access denied? thank you
@STERLINGRADIOPUNJABI
@STERLINGRADIOPUNJABI 2 года назад
@@as269 no I did not get any error
@nayanapetkar8979
@nayanapetkar8979 2 года назад
Hey have you tried jsonarrayrequest?
@sabbirahmed2092
@sabbirahmed2092 2 года назад
explanation really awesome
@tula1308
@tula1308 2 года назад
Fantastic course
@JeanAvodagbe
@JeanAvodagbe Год назад
I like it 💪🙂.
@hugomarques5099
@hugomarques5099 2 года назад
Good very nice carring video ! GG
@sumerchand1677
@sumerchand1677 2 года назад
🙏🏽👍 Amazing Helpful
@BiGGeSMK
@BiGGeSMK 3 года назад
I noticed something in the first example of the volley library. When you use the response.substring(0,500) as the response for the stringRequest and the response string is shorter than 500 characters the apps crash because you will get a StringIndexOutOfBoundsException, yeah of course he used just the response as a variable for his Toast but this can lead to some bugs and quickly demotivate especially new programmers.
@ValHustle
@ValHustle Год назад
I'm getting the app to crash when using response.toString(); could you please explain why this is happening and how to fix it? Thank you
@ArunKumar-lb5jr
@ArunKumar-lb5jr 3 года назад
thanks i learn a lot of stuffs
@lasithadulshan7357
@lasithadulshan7357 3 года назад
Thank u sir !
@moiraleon8744
@moiraleon8744 2 года назад
Could you share the link for the videos that focus on purely the backend full stack of building the database and connecting the restful API?
@spjult6994
@spjult6994 3 года назад
omg thank you!
@mohamaddody1338
@mohamaddody1338 3 года назад
Thanks you so much
@Lyes_Abdellatif
@Lyes_Abdellatif 3 года назад
wooow you are the best
@piyushchauhan9908
@piyushchauhan9908 2 года назад
best tut ever
@bishalthapa8052
@bishalthapa8052 3 года назад
excellent
@cisternavertical5199
@cisternavertical5199 2 года назад
Muito bom professor consegui fazer e testar
@mmmmmmmmmmmmmmmmm562
@mmmmmmmmmmmmmmmmm562 3 года назад
Would this tutorial work for the latest Android Studio 6.2.1 in 2023? Thank you so much for the teaching!
@forester1
@forester1 2 года назад
thanks solved
@ieno3101
@ieno3101 2 года назад
Thanks! This was great!. You are have project example API with array XML?
@codesoon9668
@codesoon9668 2 года назад
Cheers from Peru :)
@maance
@maance 2 года назад
Please make more videos like this one. Maybe with retrofit !!!
@sianwa11
@sianwa11 Год назад
Thanks
@coderunner743
@coderunner743 2 года назад
thanks a lot sir
@augischadiegils.5109
@augischadiegils.5109 3 года назад
Thanks :)
@jayaprakashgovindaraj9629
@jayaprakashgovindaraj9629 2 года назад
i love ur easy english.
@alkaline3mc
@alkaline3mc Год назад
It appears that metaweather is no longer functional, additionally Volley doesn't appear in the official Android docs listings. What is a good alternative for JSON api requests?
@sagarchaddha1538
@sagarchaddha1538 3 года назад
1:44:50 does that automatically run😂😂😂😂 Great teaching ability. I watched the whole video in one go
@nmht2010
@nmht2010 2 года назад
Thank you so much. But it has one error when add WeatherReportModel. It is overwrite last value. I put "WeatherReportModel one_day_weather = new WeatherReportModel();" in For Loop.
@bluex217
@bluex217 2 года назад
Will this help me to finally figure out how to connect my Android App to my Spring Boot restful back-end? It's so hard to find material on this
@user-pi6hh3fm7n
@user-pi6hh3fm7n 3 года назад
Why I can have return "Something wrong" on 55:47, what me need doing? Maybe who know? Errors in code isn't.
@adityazine2715
@adityazine2715 3 года назад
🔥🔥🙌
Далее
What is a REST API?
9:12
Просмотров 1,5 млн
SQLite Database for Android - Full Course
1:28:22
Просмотров 246 тыс.
Я ПОКУПАЮ НОВУЮ ТАЧКУ - МЕЧТУ!
39:05
I Melted Wood With Friction
8:44
Просмотров 982 тыс.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
How To Call a REST API In Java - Simple Tutorial
29:14
Просмотров 262 тыс.
The Story of Next.js
12:13
Просмотров 556 тыс.
The Ultimate Retrofit Crash Course
34:49
Просмотров 90 тыс.
programming projects that taught me how to code
9:49
Просмотров 276 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 926 тыс.