GithubHelp home page GithubHelp logo

advanced-android-kotlin-geo-maps's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advanced-android-kotlin-geo-maps's Issues

Advanced Android in Kotlin: Google Maps 4.1 [Step #][description]

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

Advanced Android in Kotlin: Google Maps 4.1 Step 5 Add markers

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

  1. What version of Android Studio are you using? Android Studio Dolphin | 2021.3.1 Patch 1
  2. What API level are you targeting? 19

Additional information
I'm just following the class and the code fails to compile.

codelab: advanced-android-kotlin

Advanced Android in Kotlin: Google Maps 4.1 [Step #][description]

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

Advanced Android in Kotlin: Google Maps 4.1 [Step #][description]

Describe the problem
There is an error at "map.isMyLocationEnabled = true". The problem states call requires permission check. Here is the code from the codelab:

image


Note: the code should be this instead.

image

Finally, the code worked for me. Let me know if it helped you too. =)

Advanced Android in Kotlin: Google Maps 4.1 [Step #][description]

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

Advanced Android in Kotlin: Google Maps 4.1 4. Task: Add map types

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

  1. What version of Android Studio are you using? Android Studio Dolphin | 2021.3.1 Patch 1
  2. What API level are you targeting? 19

Additional information
There are a couple of missing import in order to be able to compile

codelab: advanced-android-kotlin

Advanced Android in Kotlin: Google Maps 4.1 [2][Google API Console]

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

  1. What version of Android Studio are you using? 4.0.0
  2. What API level are you targeting? 28

Additional information
Add any other context about the problem here.

codelab: advanced-android-kotlin

Advanced Android in Kotlin: Google Maps 4.1 [Step #][description]

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

  1. I am using version 4.1.1
  2. min API is set to API 19 and the targeted API is ###30

Additional information
Add any other context about the problem here.

codelab: advanced-android-kotlin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.