Current Location On Google Map in Android Studio | Kotlin | Android Studio Tutorial - Quick + Easy

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 19

  • @ojdlaw8674
    @ojdlaw8674 2 ปีที่แล้ว +2

    Nice Job Deeksha. Keep it up:)

  • @anitatagad9467
    @anitatagad9467 2 ปีที่แล้ว

    Yes now working ..if it is not working then change dependency to the gradle file ...choose dependency version as available in your project ..

  • @CodeByAshish
    @CodeByAshish 2 ปีที่แล้ว +1

    Good Tutorial

  • @ravindrasapkal1411
    @ravindrasapkal1411 ปีที่แล้ว

    how to come back after selecting the location in the map

  • @itsyBitsy5155
    @itsyBitsy5155 2 ปีที่แล้ว

    Hello mam can you upload nearby search app using kotlin please🙏

  • @eliarre1007
    @eliarre1007 ปีที่แล้ว

    to anyone who has crashes:
    1. be sure that you don't have :
    val mapFragment = supportFragmentManager
    .findFragmentById(R.id.map) as SupportMapFragment
    mapFragment.getMapAsync(this)
    inside onCreate()
    2. be sure that you have :
    private lateinit var mMap: GoogleMap
    in onCreate(), then your onMapReady override should look like this:
    mMap = googleMap
    val latlng= LatLng(currentLocation.latitude,currentLocation.longitude)
    val markerOptions = MarkerOptions().position(latlng).title("Twoja lokalizacja")
    mMap.animateCamera(CameraUpdateFactory.newLatLng(latlng))
    mMap.animateCamera (CameraUpdateFactory.newLatLngZoom(latlng, 7f))
    mMap.addMarker (markerOptions)
    3. better have these 2 permissions also (not necessary i think):

    this worked for me and app finally stopped crashing and map is no longer empty :)

  • @anitatagad9467
    @anitatagad9467 2 ปีที่แล้ว

    Not showing on my device the location why

  • @pilotodebits8145
    @pilotodebits8145 ปีที่แล้ว +1

    does not function....

  • @anitatagad9467
    @anitatagad9467 2 ปีที่แล้ว +1

    Running but not showing anything

  • @chayandevbera5008
    @chayandevbera5008 2 ปีที่แล้ว

    I am getting error in same code😭

  • @jinlilaw1343
    @jinlilaw1343 2 ปีที่แล้ว

    Hi, I would like to ask i done the ToDoList app u taught 2y ago however mine can add text but i cant tick the checkbox and delete ... can ik is thr something i missed?

    • @ojdlaw8674
      @ojdlaw8674 2 ปีที่แล้ว

      If you can add the link here..Perhaps it might help to assist you figure out what you want.

  • @Baris_FK
    @Baris_FK 2 ปีที่แล้ว

    it works

    • @Kemyikpe
      @Kemyikpe 2 ปีที่แล้ว

      Can you please assist me please,,,is just showing the package and google write up but the map is not showing

    • @Baris_FK
      @Baris_FK 2 ปีที่แล้ว +1

      @@Kemyikpe You need to turn on the Google maps SDK from gcloud console

    • @Kemyikpe
      @Kemyikpe 2 ปีที่แล้ว

      @@Baris_FK do you mean map SDK for Andriod?

    • @Baris_FK
      @Baris_FK 2 ปีที่แล้ว

      @@Kemyikpe yes

  • @nerox8580
    @nerox8580 2 ปีที่แล้ว +3

    getLocation is declared but never used