# Android Apprentice

**URL:** https://forums.kodeco.com/c/books/android-apprentice/37.md?page=1

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 2

---

## [CH 15 Google Places](https://forums.kodeco.com/t/ch-15-google-places/68678)

<div class="topic-metadata">

**Author:** [@liltimtim](https://forums.kodeco.com/u/liltimtim)\
**Replies:** 7\
**Last updated:** [June 2, 2019, 5:34pm UTC](https://forums.kodeco.com/t/ch-15-google-places/68678 "2019-06-02T17:34:30Z")

</div>

I’m trying to get through this tutorial however I believe that the use of the Places API has drastically changed? According to Google it seems you don’t create a Google API Client anymore? Further, the property Places.…

---

## [Chapter 16 Saving Bookmarks with Room](https://forums.kodeco.com/t/chapter-16-saving-bookmarks-with-room/52171)

<div class="topic-metadata">

**Author:** [@williammr](https://forums.kodeco.com/u/williammr)\
**Replies:** 4\
**Last updated:** [May 27, 2019, 12:05pm UTC](https://forums.kodeco.com/t/chapter-16-saving-bookmarks-with-room/52171 "2019-05-27T12:05:50Z")

</div>

After I implemented the class MapsViewModel the application always crashed after the installing process. The error is java.lang.RuntimeException: Cannot create an instance of the class …placebook.viewmodel.MapsViewModel…

---

## [Crashing Error in v 2.0](https://forums.kodeco.com/t/crashing-error-in-v-2-0/71017)

<div class="topic-metadata">

**Author:** [@mwbeatty](https://forums.kodeco.com/u/mwbeatty)\
**Replies:** 2\
**Last updated:** [May 20, 2019, 6:33pm UTC](https://forums.kodeco.com/t/crashing-error-in-v-2-0/71017 "2019-05-20T18:33:39Z")

</div>

So glad to see v 2.0 released today. I’ve started digging in and found a small error in the code. On ppg 87-88 of the PDF the code uses Integer.toString(score) and Integer.toString(timeLeft) to create the Score and Time…

---

## [Chapter 4 - Suggestion for Cleaner Code](https://forums.kodeco.com/t/chapter-4-suggestion-for-cleaner-code/65357)

<div class="topic-metadata">

**Author:** [@kithril](https://forums.kodeco.com/u/kithril)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 11:30am UTC](https://forums.kodeco.com/t/chapter-4-suggestion-for-cleaner-code/65357 "2019-04-04T11:30:26Z")

</div>

I am an experienced iOS developer enjoying and finding useful this book. I do, however, have a suggestion. Avoiding magic numbers and repetition of code are important principles in software development. The Timefighter …

---

## [Is Your Phone Compatible with Android Studio 3.3? RESOLVED](https://forums.kodeco.com/t/is-your-phone-compatible-with-android-studio-3-3-resolved/61434)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 4\
**Last updated:** [February 6, 2019, 9:44pm UTC](https://forums.kodeco.com/t/is-your-phone-compatible-with-android-studio-3-3-resolved/61434 "2019-02-06T21:44:53Z")

</div>

I apologise in advance if this is not the right forum but I wanted to share my experience as an ‘apprentice’ Android developer trying to test on a real phone. This would be the 1st ‘challenge’ once Android Studio 3.3 is …

---

## [Chapter 10, problem with runnig final code](https://forums.kodeco.com/t/chapter-10-problem-with-runnig-final-code/64549)

<div class="topic-metadata">

**Author:** [@dnd](https://forums.kodeco.com/u/dnd)\
**Replies:** 5\
**Last updated:** [March 15, 2019, 11:22pm UTC](https://forums.kodeco.com/t/chapter-10-problem-with-runnig-final-code/64549 "2019-03-15T23:22:54Z")

</div>

Hi, I did evething on chapter 10 and my program fails after adding task to ListDetailActivity I got “ListMaker has stopped” in log I’ve: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.danieldominiak.listm…

---

## [Chapter 13 SHA1 Key for Release Builds?](https://forums.kodeco.com/t/chapter-13-sha1-key-for-release-builds/61688)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 6\
**Last updated:** [February 18, 2019, 5:20am UTC](https://forums.kodeco.com/t/chapter-13-sha1-key-for-release-builds/61688 "2019-02-18T05:20:17Z")

</div>

Chapter 13 P 241 states ‘getting the SHA1 key for release builds will be covered in Section VI, “Submitting Your App”. ‘ However, Section VI does not cover the ‘release’ SHA-1 or API keys for a Google Maps API based app. …

---

## [Book Update Suggestions: JetPack, AndroidX and Bottom Navigation](https://forums.kodeco.com/t/book-update-suggestions-jetpack-androidx-and-bottom-navigation/62395)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 18, 2019, 2:40am UTC](https://forums.kodeco.com/t/book-update-suggestions-jetpack-androidx-and-bottom-navigation/62395 "2019-02-18T02:40:05Z")

</div>

I am going thru an online course, Android Studio 3.3 and using JetPack, AndroidX and Bottom Navigation (for a List/Tasks project). I strongly recommend the new updated RW book embrace these technologies and approach, esp…

---

## [Chapter 19: Completed Map Places Project. Lessons Learnt](https://forums.kodeco.com/t/chapter-19-completed-map-places-project-lessons-learnt/61433)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 10, 2019, 3:18am UTC](https://forums.kodeco.com/t/chapter-19-completed-map-places-project-lessons-learnt/61433 "2019-02-10T03:18:34Z")

</div>

Persevere! The current book version (Android Studio 3.0) needs an update for Android Studio 3.3 and you will find differences between the book and the AS 3.3 screen. But, persevere, as the final product, the Maps Places …

---

## [Chapter 31: Alpha Tester Installs App, but Map Not Showing](https://forums.kodeco.com/t/chapter-31-alpha-tester-installs-app-but-map-not-showing/61499)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 3\
**Last updated:** [February 10, 2019, 3:08am UTC](https://forums.kodeco.com/t/chapter-31-alpha-tester-installs-app-but-map-not-showing/61499 "2019-02-10T03:08:38Z")

</div>

Followed the steps methodically to forward the Places/Map project to an Alpha Tester. All steps completed, Alpha Tester got email on their phone and installed the app (as in P648). The app launches, asks for permission …

---

## [Chapter 17 Detail Activity: How to Copy from Starter Projects?](https://forums.kodeco.com/t/chapter-17-detail-activity-how-to-copy-from-starter-projects/61062)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 6\
**Last updated:** [February 10, 2019, 2:39am UTC](https://forums.kodeco.com/t/chapter-17-detail-activity-how-to-copy-from-starter-projects/61062 "2019-02-10T02:39:23Z")

</div>

When the book states ‘copy from starter project’, what are the exact steps expected: use Mac Finder to copy from Starter folder to my Project (or my Mac Finder folder), or open the Starter project and drag-drop from Star…

---

## [Book updated soon?](https://forums.kodeco.com/t/book-updated-soon/59015)

<div class="topic-metadata">

**Author:** [@mwbeatty](https://forums.kodeco.com/u/mwbeatty)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 3:05am UTC](https://forums.kodeco.com/t/book-updated-soon/59015 "2019-02-06T03:05:36Z")

</div>

I hope this book is updated soon. As it is, it seems to be useless at this point. If one uses SDK 28, the code in the book does not match the current SDK. I tried telling Android Studio to use SDK 26 but I cannot do that…

---

## [Chapter 18 Erratas](https://forums.kodeco.com/t/chapter-18-erratas/61342)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 2:35pm UTC](https://forums.kodeco.com/t/chapter-18-erratas/61342 "2019-02-04T14:35:57Z")

</div>

---

## [Chapter 18: Refactor BookmarkMarkerView](https://forums.kodeco.com/t/chapter-18-refactor-bookmarkmarkerview/61333)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 2:14pm UTC](https://forums.kodeco.com/t/chapter-18-refactor-bookmarkmarkerview/61333 "2019-02-04T14:14:47Z")

</div>

The books states …and press Enter. This will automatically update all references …’ In Android Studio 3.3, there is sometimes an intermediate step where a ‘Refactoring Preview’ window opens on the bottom left hand of th…

---

## [Chapter 17 Detail Activity: Adding Image Fun to Bookmark Class](https://forums.kodeco.com/t/chapter-17-detail-activity-adding-image-fun-to-bookmark-class/61266)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 2:12pm UTC](https://forums.kodeco.com/t/chapter-17-detail-activity-adding-image-fun-to-bookmark-class/61266 "2019-02-04T14:12:00Z")

</div>

P326 The book states ‘Open the Bookmark class in the model package and add the following code as the body of the class: …’ A clearer instruction would be '…after the current end/closing bracket of the class definition, …

---

## [Chapter 18: PhotoOptionDialogFragment 3 Errors](https://forums.kodeco.com/t/chapter-18-photooptiondialogfragment-3-errors/61335)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 4:08am UTC](https://forums.kodeco.com/t/chapter-18-photooptiondialogfragment-3-errors/61335 "2019-02-04T04:08:37Z")

</div>

The book code, as is, produces 3 compiler errors (hence app cannot run). (this.context) twice return AlertDialog.Builder(activity) images below. Please advise the new correct code to proceed. Thanks.

---

## [Chapter 16 P 316: \[Coroutines\] launch(CommonPool) Unresolved Reference](https://forums.kodeco.com/t/chapter-16-p-316-coroutines-launch-commonpool-unresolved-reference/60868)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 3:16am UTC](https://forums.kodeco.com/t/chapter-16-p-316-coroutines-launch-commonpool-unresolved-reference/60868 "2019-01-29T03:16:16Z")

</div>

The book states: implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.3 then launch(CommonPool) { mapsViewModel.addBookmarkFromPlace(placeInfo.place, placeInfo.image) } This produces an Unresolved Re…

---

## [Chapter 16 P 301 Packages Matching Hierarchy](https://forums.kodeco.com/t/chapter-16-p-301-packages-matching-hierarchy/60858)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 3:11am UTC](https://forums.kodeco.com/t/chapter-16-p-301-packages-matching-hierarchy/60858 "2019-01-29T03:11:27Z")

</div>

The book hierarchy is (bottom to top): Model 2. Room 3. DA 4. Repo 5. ViewModel 6. UI The packages sequence stated as: db 2. model 3. repo 4. ui 5. viewmodel The packages order does not correspond to the hierarchy.…

---

## [Chapter 16 P 305: Cannot Resolve Symbol arg0](https://forums.kodeco.com/t/chapter-16-p-305-cannot-resolve-symbol-arg0/60804)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 2:39am UTC](https://forums.kodeco.com/t/chapter-16-p-305-cannot-resolve-symbol-arg0/60804 "2019-01-29T02:39:10Z")

</div>

The book states: // 3 @Query(“SELECT \* FROM Bookmark WHERE id = :arg0”) fun loadBookmark(bookmarkId: Long): Bookmark @Query(“SELECT \* FROM Bookmark WHERE id = :arg0”) fun loadLiveBookmark(bookmarkId: Long): LiveData …

---

## [Chapter 16 P 302: Could not find method kapt()](https://forums.kodeco.com/t/chapter-16-p-302-could-not-find-method-kapt/60801)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 2:26am UTC](https://forums.kodeco.com/t/chapter-16-p-302-could-not-find-method-kapt/60801 "2019-01-29T02:26:04Z")

</div>

The book states: 1 to 4 implementation & annotationProcessor, then // 5 kapt “android.arch.persistence.room:compiler:” + “$room\_version” When run, the error appears: Could not find method kapt() for arguments \[and…

---

## [ListMaker Fragments: Did Anyone Complete This Project?](https://forums.kodeco.com/t/listmaker-fragments-did-anyone-complete-this-project/60738)

<div class="topic-metadata">

**Author:** [@mazen\_kilani](https://forums.kodeco.com/u/mazen_kilani)\
**Replies:** 1\
**Last updated:** [January 26, 2019, 11:22pm UTC](https://forums.kodeco.com/t/listmaker-fragments-did-anyone-complete-this-project/60738 "2019-01-26T23:22:44Z")

</div>

I completed first 10 chapters, and due to differences between the book and Android Studio 3.3, struggled thru it but managed to get it done. I am sceptical that I shall ever use the knowledge gained (would anyone use Sha…

---

## [Android Apprentice Chap 1 Setup](https://forums.kodeco.com/t/android-apprentice-chap-1-setup/59419)

<div class="topic-metadata">

**Author:** [@whodges007](https://forums.kodeco.com/u/whodges007)\
**Replies:** 4\
**Last updated:** [January 15, 2019, 10:30am UTC](https://forums.kodeco.com/t/android-apprentice-chap-1-setup/59419 "2019-01-15T10:30:02Z")

</div>

Hello, I am setting up for Timefighter in the Android Apprentice project. After the setup is completed and the code is loaded, I get an error on this import statement. import android.support.v7.app.AppCompatActivity W…

---

## [Chapter 7 - match\_parent option not available in latest Android Studio](https://forums.kodeco.com/t/chapter-7-match-parent-option-not-available-in-latest-android-studio/45546)

<div class="topic-metadata">

**Author:** [@lincbarr](https://forums.kodeco.com/u/lincbarr)\
**Replies:** 3\
**Last updated:** [December 19, 2018, 3:05pm UTC](https://forums.kodeco.com/t/chapter-7-match-parent-option-not-available-in-latest-android-studio/45546 "2018-12-19T15:05:50Z")

</div>

In Android Studio v3.1.3 (latest version) the match\_parent option is no longer available the layout\_width and layout\_height in RecyclerView Attributes.

---

## [Errata for v. 1.0.1](https://forums.kodeco.com/t/errata-for-v-1-0-1/55068)

<div class="topic-metadata">

**Author:** [@rohde](https://forums.kodeco.com/u/rohde)\
**Replies:** 2\
**Last updated:** [December 13, 2018, 8:56am UTC](https://forums.kodeco.com/t/errata-for-v-1-0-1/55068 "2018-12-13T08:56:42Z")

</div>

No chapters has a number in the heading, even though these do exist in the contents. In the Layout-chapter in the beginning it talks about the Messages tab. This tab doesn’t exist in Android Studio anymore - it has been…

---

## [Book vs video tutorials: any difference in curriculum?](https://forums.kodeco.com/t/book-vs-video-tutorials-any-difference-in-curriculum/55948)

<div class="topic-metadata">

**Author:** [@ask\_morgana](https://forums.kodeco.com/u/ask_morgana)\
**Replies:** 2\
**Last updated:** [December 12, 2018, 3:06am UTC](https://forums.kodeco.com/t/book-vs-video-tutorials-any-difference-in-curriculum/55948 "2018-12-12T03:06:24Z")

</div>

Hi, I have started video tutorials on Android path. I noticed you also have a book about Android. I am wondering if the curriculum of the book repeats video tutorials and if the apps are identical (at least i understood …

---

## [V1.0 vs. V1.1 Table of Contents](https://forums.kodeco.com/t/v1-0-vs-v1-1-table-of-contents/56519)

<div class="topic-metadata">

**Author:** [@liltimtim](https://forums.kodeco.com/u/liltimtim)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 6:47pm UTC](https://forums.kodeco.com/t/v1-0-vs-v1-1-table-of-contents/56519 "2018-11-28T18:47:07Z")

</div>

When you open v 1.0 on a Mac you can see its table of contents and easily navigate to each section however in version 1.1 its totally missing this. Preview shows it as one giant PDF and you cannot easily navigate throug…

---

## [Error of compilation chapter 3](https://forums.kodeco.com/t/error-of-compilation-chapter-3/56146)

<div class="topic-metadata">

**Author:** [@gg33](https://forums.kodeco.com/u/gg33)\
**Replies:** 4\
**Last updated:** [November 25, 2018, 4:09am UTC](https://forums.kodeco.com/t/error-of-compilation-chapter-3/56146 "2018-11-25T04:09:45Z")

</div>

Hello ! I am a beginner in Android development and I wanted to start learning with Kotlin. I bought the android apprentice book and I am currently following chapter 3. On page 71, I try to run the app after implementin…

---

## [Ch 14 User Location and Permission](https://forums.kodeco.com/t/ch-14-user-location-and-permission/52095)

<div class="topic-metadata">

**Author:** [@williammr](https://forums.kodeco.com/u/williammr)\
**Replies:** 4\
**Last updated:** [November 3, 2018, 12:13pm UTC](https://forums.kodeco.com/t/ch-14-user-location-and-permission/52095 "2018-11-03T12:13:17Z")

</div>

Hello, I have an error in the function getCurrentLocation. private fun getCurrentLocation() { if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS\_FINE\_LOCATION) != PackageManager.PERMISSION\_GRANTE…

---

## [Workaround For Gradle Errors](https://forums.kodeco.com/t/workaround-for-gradle-errors/53506)

<div class="topic-metadata">

**Author:** [@designatednerd](https://forums.kodeco.com/u/designatednerd)\
**Replies:** 1\
**Last updated:** [October 30, 2018, 11:49pm UTC](https://forums.kodeco.com/t/workaround-for-gradle-errors/53506 "2018-10-30T23:49:00Z")

</div>

Hey folks, I’m one of the Tech Editors. We’ve had some people getting this pop-up when trying to open existing projects: This is because newer versions of Gradle and Kotlin have come out since the book was published. …

---

## [Chapter 1 - System Image API 28?](https://forums.kodeco.com/t/chapter-1-system-image-api-28/53275)

<div class="topic-metadata">

**Author:** [@ttrrooyy](https://forums.kodeco.com/u/ttrrooyy)\
**Replies:** 2\
**Last updated:** [October 30, 2018, 10:55pm UTC](https://forums.kodeco.com/t/chapter-1-system-image-api-28/53275 "2018-10-30T22:55:05Z")

</div>

I am just starting with this book. There is now an option to download API 28. Does it matter if I use this instead of API 27?

[Previous page](https://forums.kodeco.com/c/books/android-apprentice/37.md)

[Next page](https://forums.kodeco.com/c/books/android-apprentice/37.md?page=2)
