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

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @abdelmalekboubekeur2570
    @abdelmalekboubekeur2570 3 ปีที่แล้ว

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

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

    will this work on Android 10+?

  • @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

  • @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

  • @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??

  • @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

  • @abhirams7217
    @abhirams7217 3 ปีที่แล้ว

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

  • @sulmanrasheed007
    @sulmanrasheed007 3 ปีที่แล้ว

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

  • @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 3 ปีที่แล้ว +1

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

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

      @@TechnicalCoding have you uploaded the video??

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

    Code is 44

  • @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

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

    Bhai give code!! Please

  • @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

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

    Very informative video