Abstraction

Android System Architecture
Physical Device Hardware, Android Operating System, Framework, App

urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestMethod("GET");
urlConnection.setReadTimeout(10000 /* milliseconds */);
urlConnection.setConnectTimeout(15000 /* milliseconds */);
urlConnection.connect();

GET(Read):Requests data from a specified resource
POST(Write):Submits data to be processed to a specified resource
https://www.w3schools.com/tags/ref_httpmethods.asp

HTTP request method
https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods

Why are we using a GET instead of a POST?
1.You want to retrieve data from the server
2.You’re not posting new information to the server

url connection
https://developer.android.com/reference/java/net/URLConnection.html?utm_source=udacity&utm_medium=course&utm_campaign=android_basics#connect()