Closed yrezgui closed 4 years ago
Android 10 (Q) has been released since the first publication of this codelab. Mentions of this version being a prerelease should be removed.
https://github.com/googlecodelabs/while-in-use-location/blob/7dd0fcb112fe3fe8413eaee53c52718d5bd06c76/base/src/main/java/com/example/android/whileinuselocation/MainActivity.kt#L87-L92
Also use this code instead:
private val runningQOrLater = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q
Android 10 (Q) has been released since the first publication of this codelab. Mentions of this version being a prerelease should be removed.
https://github.com/googlecodelabs/while-in-use-location/blob/7dd0fcb112fe3fe8413eaee53c52718d5bd06c76/base/src/main/java/com/example/android/whileinuselocation/MainActivity.kt#L87-L92
Also use this code instead: