Get User's last known location in android || Android studio tutorial

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 37

  • @learningvideo7526
    @learningvideo7526 4 роки тому +2

    Bhai please Android studio Error solve
    ''Error while waiting for device the emulator process for AVD phone was Killed ''
    aapko pata hai to bata do, internet per
    nhi mila answer iska

    • @bestsongsreelsshortslatest1170
      @bestsongsreelsshortslatest1170 4 роки тому

      Use your physical mobile phone instead.

    • @learningvideo7526
      @learningvideo7526 4 роки тому

      @@bestsongsreelsshortslatest1170 physical mobile main. work karta hai but mujh e emulator main use karna hai

    • @bhuvneshjangid9138
      @bhuvneshjangid9138 3 роки тому

      Go to avd manager click on wipe data and run again (100%) work it

  • @dhanbelgica6975
    @dhanbelgica6975 3 роки тому +1

    Thank you for this video.
    Can you sir make a tutorial on how to locate nearby users?
    I used your tutorial. I send the longt and lat in my database for users to locate nearby users, but don't know how to do it. Thank you

  • @abdelmalekboubekeur2570
    @abdelmalekboubekeur2570 3 роки тому

    do you have to open google maps for the app to work ?

  • @maggawattanalekhawong5683
    @maggawattanalekhawong5683 3 роки тому

    Please can someone help me, why does my location is null, I cant get lat or long, I do this in both Kotlin and Java and still , it doesn't resolve my problem, please anyone help me

  • @AbdulSamad-yu1zn
    @AbdulSamad-yu1zn 3 роки тому

    Hii Dear all how are you? I hope you all will be fine.
    I am facing null lat/long issue as i am using fusedlocationproviderclient...
    If mobile GpS button is enabled then i get location.. if i disable or reEnable it then i get null location.. if if i close or open app again and again
    Is there any other service or anything instead of this which works fine??

  • @jaishriramOnly
    @jaishriramOnly 2 роки тому

    will this work on Android 10+?

  • @abhirams7217
    @abhirams7217 3 роки тому

    NO Error but I am not getting the output. i mean its not fetching the location

  • @alexeyohhh9536
    @alexeyohhh9536 4 роки тому +2

    can't get coordinates. I click a button but nothing

    • @TechnicalCoding
      @TechnicalCoding  4 роки тому +1

      well that's because it's last known location retrieve by other apps not current location. It is assumed that last known location is current location in some cases. But if your device doesn't store that you can't get the coordinates with this code. I will create a video to retrieve actual current location stay tuned for that and happy coding.

    • @thaliaamargianou7870
      @thaliaamargianou7870 4 роки тому +1

      @@TechnicalCoding have you created that video... to get the actual current location?

    • @asadullahshahid5845
      @asadullahshahid5845 3 роки тому +1

      @@TechnicalCoding have you uploaded the video??

  • @sulmanrasheed007
    @sulmanrasheed007 3 роки тому

    Your title is "Getting current location" but you are using " Getting Last Location" method.

  • @abdelmalekboubekeur2570
    @abdelmalekboubekeur2570 3 роки тому

    i'm new to this can any one tell me what did i do wrong ?
    this is the error i got
    requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION});
    ^
    required: String[],int
    found: String[]
    reason: actual and formal argument lists differ in length

  • @denemeuyesi1212
    @denemeuyesi1212 3 роки тому

    We need the code I can't read that screen properly.

  • @ashutoshgond2850
    @ashutoshgond2850 3 роки тому

    Can I contact you to help me in my project

  • @KrishnaKumar-jr6ol
    @KrishnaKumar-jr6ol 3 роки тому +1

    Bro how to get current location

    • @TechnicalCoding
      @TechnicalCoding  3 роки тому

      I know it's getting last location but I will soon make a video about how to get actual current location

  • @virtualbro8571
    @virtualbro8571 4 роки тому +1

    Bhai give code!! Please

  • @uditchoudhury5540
    @uditchoudhury5540 3 роки тому +1

    Code is 44

  • @lixaifan3374
    @lixaifan3374 4 роки тому +1

    Very informative video