Android REST API-6 | How to Download JSON on Android with GET Request from Internet | U4Universe

preview_player
Показать описание
In this video, we'll learn how to download JSON with GET Request from REST API on Android. We'll learn how to make GET Request using HttpURLConnection class on Android and we'll download JSON from the REST API.

***********************************************************************
Welcome to my channel
***********************************************************************

I’ve started this channel because I love teaching. And also for learning by sharing and teaching the knowledge that I have. I really enjoy teaching programming and Android specially and I love it. So thats why, I’ve started this channel.

Second reason is, I learn everything in detail. I search a lot and I mean a lot to get better and full understanding why some thing is happening the way it is. And I teach the same way, I don’t share any knowledge unless I don’t know what and why its happening and I search a lot before making any video. When I think I have detailed knowledge of the topic, then I make video.
So any suggestion or feedback is highly appreciated. Thanks

Subscribe to my channel for support and for latest videos.

Hit the Like button and Subscribe. It really helps a lot. Thanks

*********** Contact Me ***********

*********** My Playlists ***********

Kotlin Development Tutorials:

---- Kotlin Beginners Training in Urdu/Hindi | U4Universe

My Android Development Playlists:

---- Services in Android in Urdu/Hindi Complete

---- Multi Threading in Android in Urdu/Hindi | Asynchronous / Concurrent Programming in Android in Urdu/Hindi

Android Networking & RESTful API/Web Service Connection in Urdu/Hindi | Connect Android App with RESTful API/Web Service

Android ROOM+LIVE DATA+VIEW MODEL+RECYCLER VIEW | Android Architecture Components | Creating Note Taking Applicatinon

---- Firebase for Android | Backend as a System (BaaS) for Android Complete in Urdu/Hindi:

---- Android Broad Cast Receivers in Urdu/Hindi

ROOM for SQLite Android | ROOM Persistence Library for Android | Android Architecture Components

---- Android Note Taking App using Architecture Components

---- Android Notifications with Channels & Styles All in Urdu/Hindi | Notifications with Styles

---- Retrofit Tutorials for Beginners for Android Complete Tutorials in Urdu/Hindi

---- Android Advance Series in Urdu/Hindi (Fragments API)

---- Android Shared Preferences Complete in Urdu /Hindi:

---- Android File System Complete in Urdu /Hindi (Internal & External Storage):

---- Android SQLite Database Complete in Urdu/Hindi:

---- Android RecyclerView Complete in Urdu/Hindi:

---- Android Beginner Series in Urdu/Hindi

Here we learn Development in Urdu/Hindi in an easy, open and professional way.

You have any questions or suggestions, feel free to post in the comments.

Making these videos takes much effort, so dropping a Like and Subscribe is much appreciated. And share if u like.

And your feedback really means a lot to me and keeps me making new videos.

***********************************************************************
Subscribe and Click the Bell icon to get latest videos easily.
***********************************************************************
Happy Coding!
***********************************************************************
Рекомендации по теме
Комментарии
Автор

Sir, it's showing null, I am browsing via my phone's hotspot does it matters??

shivamsehrawat
Автор

Thanks sir..your videos are always very helpful ...you are doing great job sir

abhishekaryan
Автор

Anyone working on physical device and getting null use this :
I got the solution :
Connect your pc with mobile Hotspot.
Open command prompt and type ipconfig.
Under ethernet adapter ethernet 4, note down ipv4 address
Replace 10.0.2.2 with that address.
Note: this address changes after you disconnect and reconnect wifi.

ujjwaldeep
Автор

*Hello Bro i have a doubt that :-*
*1. We can get the response through Retrofit or Volley also so why we use HttpUrlConnection.*
*2. HttpUrlConnection seems difficult too, so to get the data from the Api which is best Retrofit, Volley or HttpUrlConnection ?*

heavenlife
Автор

Solution for not getting data or getting null from pakinfo:
This occurs to the api 28 and above, because doesn't accept http anymore, you need to change if you want to accept http or localhost requests.


create in folder xml this file network_security_config.xml and write this:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config />
</network-security-config>

In Android Manifiest, in tag application add:

inside tag application add this tag:



usamazahid
Автор

7:39 I couldn't understand this part, help me anyone?

ujjwaldeep
Автор

Bro why you use 1024? I think it is a bad practice, Didn't it?

sameerniazi
Автор

sir mujhe failed to connect error aa raha hai pehle cleartextTraffic ka error aya tha use manifest file mein true kar liya phie uske baad yee aa raha hai aur mera mysql ka port 3307 hai kyun ki pehle mysql 3306 port use kar rha hai toh main xampp ka mysql koh 3307 kar liya sir ...


error kyu aa rha hai agar aapko pata hai toh bata dena sir


thank you

luckysuraj
Автор

As an android developer is it necessary that we should learn how to build an API using node or django?? Btw nice video :)

ujjwaldeep
Автор

Hello brother i have an APi key through which i have to pass request. Will the method be same. I am working in developing app for CS-CART. But i am confused with API

drb
Автор

What is the advantage of OkHttp over HttpUrlConnection.

muhammadasad
Автор

kindly update the Restful API project in your GitHub profile. Because it doesn't contain files.

bilalaslam
join shbcf.ru