google-developer-training / advanced-android-kotlin-geo-maps Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Describe the problem
ContextCompat.checkSelfPermission function receives context and a string but in the lab it is not passed as a string.
In which lesson and step of the codelab can this issue be found?
Lesson 8 (task enable location tracking ) step 3.
How to reproduce?
The problem is a syntactical problem, copying the code from that step will always reproduce the error
Versions
android studio 4.2
target api : api 26
codelab: advanced-android-kotlin
In lesson 3, in the into and step 2, the "Google API Console" links are now pointing to URLs that start with "https://login.corp.google.com/request?s=pantheon.corp.google.com:443/uberproxy/&d=https://pantheon.corp.google.com/..." rather than the expected page.
Describe the problem
You add a line with code:
Locale.getDefault(),
that won't compile, since you never instructed the learner to add:
import java.util.Locale
in the import section.
In which lesson and step of the codelab can this issue be found?
Google Maps 4.1 Step 5 Add markers Step 3
How to reproduce?
Follow Google Maps 4.1 Step 5 Add markers Step 3 and then compile. Won't work. In general the code in the lection after that won't compile, because you are missing the:
import java.util.Locale
Versions
Additional information
I'm just following the class and the code fails to compile.
codelab: advanced-android-kotlin
Describe the problem
When i click on the link to take me to google api console it takes me to pantheon.corp.google.com
In which lesson and step of the codelab can this issue be found?
Lesson number + step number. (e.g., Lesson 3.1, Step 1.3)
I have seen this error on this page https://codelabs.developers.google.com/codelabs/advanced-android-kotlin-training-maps/#2
How to reproduce?
What are the exact steps to reproduce the problem?
Just click on the link to Google API Console
codelab: advanced-android-kotlin
Describe the problem
This is actually not a mistake. It's just that after clicking the https://mapstyle.withgoogle.com/ link, it shows the intro for the new "Cloud-based Maps Styling". And the user must click the small line "No thanks, take me to the old style wizard" below to follow the steps in the codelab.
In which lesson and step of the codelab can this issue be found?
6. Task: Style your map
Step 1: Create a style for your map
How to reproduce?
As stated above.
Versions
Not applicable.
Additional information
Nil.
codelab: advanced-android-kotlin
First step for tutorial requires to use Google Maps Activity Template which is not available
Describe the problem
In the section "4. Task: Add map types" your code won't run because you need to add the following code:
import android.view.Menu
import android.view.MenuItem
in the file MapsActivity.kt
after you added the code mentioned here:
override fun onOptionsItemSelected(item: MenuItem) = when (item.itemId) {
after this code, which is step 8, you need to add a step 8.1 before 9 saying :
Add the following code to MapsActivity.kt after all the imports, but before
class MapsActivity : AppCompatActivity(), OnMapReadyCallback {
import android.view.Menu
import android.view.MenuItem
In which lesson and step of the codelab can this issue be found?
Lesson 4.1.1 + 8
How to reproduce?
Follow the instructions in the page and when reaching 9, you will see the error in the Android Studio.
Versions
Additional information
There are a couple of missing import in order to be able to compile
codelab: advanced-android-kotlin
Describe the problem
A clear and concise description of what the problem is.
The anchor on "Google API Console", instead of going to this link https://console.developers.google.com/apis
is pointing to some Google internal authentication form
In which lesson and step of the codelab can this issue be found?
Lesson number + step number. (e.g., Lesson 3.1, Step 1.3)
How to reproduce?
Click on any of these links
Versions
Additional information
Add any other context about the problem here.
codelab: advanced-android-kotlin
Describe the problem
the section of the code below no longer works, for the Manifest.permission..... it wants you to rename permission and for the
map.isMyLocationEnabled = true it wants you to add a permission check. also if you download the master file from here and after you upload your api key. it doesn't move to current location.
private fun isPermissionGranted() : Boolean {
return ContextCompat.checkSelfPermission(
this,
Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED
}
// Checks if users have given their location and sets location enabled if so.
private fun enableMyLocation() {
if (isPermissionGranted()) {
map.isMyLocationEnabled = true
}
else {
ActivityCompat.requestPermissions(
this,
arrayOf<String>(Manifest.permission.ACCESS_FINE_LOCATION),
REQUEST_LOCATION_PERMISSION
)
}
}
Versions
Additional information
Add any other context about the problem here.
codelab: advanced-android-kotlin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.