Recall & Review
beginner
What is a GET request in Android networking?
A GET request asks a server to send data to the app. It is like asking for information without changing anything on the server.
Click to reveal answer
beginner
What is a POST request used for?
A POST request sends data from the app to the server. It is used to create or update information on the server.
Click to reveal answer
intermediate
Which Kotlin library is commonly used for making GET and POST requests in Android?
OkHttp is a popular Kotlin library for making HTTP requests like GET and POST in Android apps.
Click to reveal answer
beginner
In a POST request, where do you put the data you want to send?
You put the data in the request body, usually as JSON or form data.
Click to reveal answer
beginner
Why should network requests be done off the main thread in Android?
Because network calls can take time, doing them on the main thread would freeze the app UI. Using background threads keeps the app responsive.
Click to reveal answer
Which HTTP method is used to retrieve data without changing the server?
✗ Incorrect
GET requests ask the server to send data without modifying it.
Where is data sent in a POST request?
✗ Incorrect
POST requests send data inside the request body.
Which Kotlin library is commonly used for HTTP requests in Android?
✗ Incorrect
OkHttp is a popular library for HTTP networking in Kotlin Android apps.
Why should network requests not run on the main thread?
✗ Incorrect
Network calls can take time and freeze the UI if run on the main thread.
What does a POST request usually do?
✗ Incorrect
POST requests send data to the server to create or update resources.
Explain the difference between GET and POST requests in Android apps.
Think about asking for information versus sending information.
You got /4 concepts.
Describe why network requests should be done on background threads in Android.
Imagine waiting for a slow response while trying to use the app.
You got /4 concepts.