Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Android app development: displaying images from the internet
Rating: 4.2 out of 5(25 ratings)
3,072 students

Android app development: displaying images from the internet

Working with third-party API services
Created byLeonid Ivankin
Last updated 10/2022
English

What you'll learn

  • How do I send requests and receive responses from the Internet?
  • How to display a picture by link?
  • How to use libraries and tools such as Glide, Picasso, Jetpack compose, HttpURLConnection, Ok Http, Json, Gson, RxJava, coroutines, Flow, Retrofit, MVP
  • How to work with the API of third-party services

Course content

1 section16 lectures1h 22m total length
  • Introduction3:08
  • Choosing an example1:58
  • Step 1. Display the picture with Glide2:52

    implementation 'com.github.bumptech.glide:glide:4.13.2'

    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

  • Step 2. Display the picture with Picasso1:55

    implementation 'com.squareup.picasso:picasso:2.71828'

  • Step 3. Switching from xml to jetpack compose4:29

    implementation 'androidx.activity:activity-compose:1.5.1'

    implementation 'androidx.compose.material:material:1.2.1'

  • Step 4. Display the photo with compose3:08

    implementation "com.github.skydoves:landscapist-glide:2.0.0"

  • Step 5. Send a request to the network and receive the result using HttpURLConnec6:39
  • Step 6. Send a request to the network and get the result using OkHttp4:21

    implementation implementation 'com.squareup.okhttp3:okhttp:4.9.1'

  • Step 7. Parsing a query with Gson and retrieving data from it6:02

    implementation 'com.google.code.gson:gson:2.8.9'

  • Step 8. Using rxJava to handle multi-threading when receiving requests8:02
  • Step 9. Using kotlin coroutines to handle multi-threaded queries4:22
  • Step 10. Using kotlin flow to handle multithreading when receiving requests6:09
  • Step 11. Sending a request to the network and getting the result with Retrofit7:19


    implementation 'com.squareup.retrofit2:retrofit:2.9.0'

    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'

    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'

  • Step 12. Get a list of pictures5:45
  • Step 13. Applying the MVP pattern15:45
  • Overall conclusion0:30

Requirements

  • Knows how to create a project in Android Studio, has basic knowledge in compose

Description

What is this course about?

This course will help you understand how to work with the Internet on an android device, how to download and display a picture, which libraries and tools to use for this.


My course will have a number of distinguishing features:

  1. I will use the startup method. That is, try to do things so that we can see the results faster, whatever they may be, and write less code at the same time. Because, from my point of view, visual validation helps us know that we're moving in the right direction. So the initial versions of the application will not be quite architecturally correct. However, we will fix this later on.

  2. I will try to use all new technologies: Glide, Picasso, Jetpack compose, HttpURLConnection, OkHttp, Json, Gson, RxJava, coroutines, Flow, Retrofit, MVP and others. Exactly the ones that are required in the android developer jobs.

  3. I will try to do one action in several ways, so that you have a choice and an understanding of what's going on.

  4. I will provide complete code so that you can insert it into your project and reproduce it without too much difficulty.

  5. We will go from the simple to the complex, but always rely on the visual result.

After completing the course, you will be able to make an application that will display a list of photos from the Internet.


Who will benefit from this course?

This course will be useful for intermediate-level android developers who have no experience with the Internet yet. Beginner developers who have no experience at all will probably not be able to take it. You're better off taking the beginner's course and then coming back to this course.


Who this course is for:

  • Middle Android Developer