google-developer-training / basic-android-kotlin-compose-training-mars-photos

Solution code for Android Basics in Kotlin course
https://developer.android.com/courses/android-basics-kotlin/course?gclid=CjwKCAjw4c-ZBhAEEiwAZ105RTyT-iaLHzrhMBUXdMhO230ZDwOwxxI2x4RgK8DwBxK8t1h0wmU_QxoCi4YQAvD_BwE
Apache License 2.0
72 stars 66 forks source link

Get Data from the Internet #162

Open Yuki-Naka-Sharing-Study opened 1 month ago

Yuki-Naka-Sharing-Study commented 1 month ago

URL of codelab: https://developer.android.com/codelabs/basic-android-kotlin-compose-getting-data-internet?hl=ja#7

Describe the problem 取得された写真の数を出力するため、marsUiState を次のように更新します。

val listResult = MarsApi.retrofitService.getPhotos() marsUiState = MarsUiState.Success( "Success: ${listResult.size} Mars photos retrieved" )

と書かれているが、不足しているコードがある。

間違いがこれで2個目です。まともなコンテンツを出すようにして頂きたいです。