Тёмный

Android Get Current Location | Latitude, Longitude | Address | Geocoder | Location Manager | Android 

Coding with Dev
Подписаться 3,3 тыс.
Просмотров 60 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 115   
@nanwarma
@nanwarma 3 года назад
Thank you sir! It works fine. For those who keep on getting USA as your location, go check your emulator location and be sure to set as your current latitude/longitude.
@MemeVaultTheOriginal
@MemeVaultTheOriginal 2 месяца назад
Thanks man!!!! you made the simplest code, that actualy works!!!!!
@Savaggalll
@Savaggalll 10 дней назад
Thanks!! Your code really simplified lots of staff and save me from tons of problems👍
@asakimdowin2944
@asakimdowin2944 Год назад
thanks, I was looking for getting location when no internet, your code is a big help.
@muleyshubham
@muleyshubham 3 года назад
Great ! I'm also from Abad, maharashtra ! ❤️
@ANUBHAMGNANAPRIYA
@ANUBHAMGNANAPRIYA Год назад
Thank You Sir. It worked.
@DeepCoderMK
@DeepCoderMK 4 месяца назад
Thank you for valuable video
@ronanhruti
@ronanhruti Год назад
thanks men
@samentertainment5497
@samentertainment5497 3 года назад
Omg, you're the best 🥺♥️
@asadullahshahid5845
@asadullahshahid5845 3 года назад
Really Thank you for the code, It was working fine on emulator but taking too much time on phone? Can you guide please how can I make it bit faster??
@lakshaykumar7448
@lakshaykumar7448 3 года назад
Just add some loader there
@isaiasmponcio
@isaiasmponcio 4 года назад
woww pure gold thanks master
@ParvezAlam-kl6wn
@ParvezAlam-kl6wn 2 года назад
thanks you sir
@tharakhgormaniad9820
@tharakhgormaniad9820 2 года назад
THANK YOU SOO SOSO SO SO MUCH!!!!!
@CR471i
@CR471i Год назад
Thank you so much!!!!
@shubhammahalkar3847
@shubhammahalkar3847 4 года назад
Great, worked for me
@няє-в4н
@няє-в4н 2 года назад
Thanku sir
@huynhphuso
@huynhphuso Год назад
public void onLocationChanged(@NonNull Location location) (It done work ?)
@aryagustiana101
@aryagustiana101 3 года назад
Thank You Sir
@CodingwithDev
@CodingwithDev 3 года назад
Thank you for ur valuable response
@ishanmadushanka3709
@ishanmadushanka3709 2 года назад
thank you ❤
@לינויעוז
@לינויעוז Год назад
thank you
@gowindahariana2360
@gowindahariana2360 3 года назад
thank you
@aplutsharma
@aplutsharma 3 года назад
Good
@spyrostsekos6937
@spyrostsekos6937 3 года назад
hey there! amazing tutorial! thanks in advance! can we use this code in case we just want to use the data but not actually mention or show them to the interface?
@sharathkumarhk4260
@sharathkumarhk4260 4 года назад
Thank you so much man!!!
@kiranbahalaskar5813
@kiranbahalaskar5813 4 года назад
Awesome 👍
@arpitanand6534
@arpitanand6534 4 года назад
A great tutorial. Subscribed!
@CodingwithDev
@CodingwithDev 4 года назад
Thank you for ur response
@arpitanand6534
@arpitanand6534 4 года назад
@@CodingwithDev A humble request, can you please make a guide video on how one should learn this whole location thing. Like which APIs should one use and which have been deprecated. And which API for which use. Also, what are the APIs that are generally used in the android development world. I have searched about this info all over the internet but couldn't find a good one. And I think this is the most important thing a beginner needs to look for while getting into android development. Please consider making this video, would be a great help to us.
@lucasmartins6914
@lucasmartins6914 4 года назад
NICEEE VERY GOOOD thanks
@CodingwithDev
@CodingwithDev 4 года назад
Thanks for ur valuable response.
@nehaadulkar5050
@nehaadulkar5050 4 года назад
@CodingWithDev It shows methe location of USA but, I live in INDIA. How can this issue be solved???? Please help out.
@naturelife845
@naturelife845 4 года назад
@Coding with Dev same issues. It shows only USA location but I live in Sri Lanka.How can I fix this?
@ConsulthinkProgrammer
@ConsulthinkProgrammer 3 года назад
Use this geolocation form and source code to get your current location : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-enUGXYMk6C8.html
@timothy5840
@timothy5840 2 года назад
Quick question can i display the long and lat in edit text?
@ImranHossain-mh6dk
@ImranHossain-mh6dk 2 года назад
Emulator working but physical devices not working place help
@amanihrd7609
@amanihrd7609 Год назад
did you find a solution ?
@nsaiharshit3128
@nsaiharshit3128 3 года назад
Thank you sir! The coordinates are visible but the address is not printing. Can you please help?
@atakisigoyusov7448
@atakisigoyusov7448 Год назад
+
@zeynepserradirier2705
@zeynepserradirier2705 3 года назад
this app has been working for a while, but now it's not working and I'm not getting any errors.
@atakisigoyusov7448
@atakisigoyusov7448 Год назад
+
@shyamsunder-mg7nv
@shyamsunder-mg7nv 2 года назад
hey need your help , geocoder.getFromLocation(latitude, longitude, 1) is not working for android v12
@rockymalobago4075
@rockymalobago4075 Год назад
Hello! Can you make a tutorial video about How to get coordinate from fixed marker at center of google maps in java android studio..,, there is a video of what I'm talking about
@rockymalobago4075
@rockymalobago4075 Год назад
I already sent it to your email
@PradeepKumar-cq1dz
@PradeepKumar-cq1dz 2 года назад
OnLocationChanged not working for me🥺help me bro. How can clear that issue 🥺
@minaturabio2023
@minaturabio2023 2 года назад
Do you have an example of code for an app using internal location . The application should make use of the "wi-fi received signal strength indicator (RSSI)".
@manarahmed205
@manarahmed205 3 года назад
Please can you tell me how I can display all nearby places in textview??
@sonkhanh2770
@sonkhanh2770 2 месяца назад
i cant get address when deloyed in real phone with Android 13 :(((
@imamnovtiananda
@imamnovtiananda 4 года назад
Please make tutorial SIMPLE CRUD WITH FIREBASE
@CodingwithDev
@CodingwithDev 4 года назад
yes, i will try in future
@imamnovtiananda
@imamnovtiananda 4 года назад
Coding with Dev thank you before, when i input data like profile image, name, phone, address, gender and etc... in firts activity then my data will show another activity
@eggwarrior5630
@eggwarrior5630 3 года назад
Hi sir, how can i use SMS manager here to send the location to predefine contact?
@amralaa7827
@amralaa7827 4 года назад
Bro All work but address is empty and long/latitude does not contain data
@CodingwithDev
@CodingwithDev 4 года назад
Hello , if all is work ...if taking a few second for gating address... wait some time automatically get address..
@amralaa7827
@amralaa7827 4 года назад
@@CodingwithDev i am wating so long and i did not get the address , any solution?
@CodingwithDev
@CodingwithDev 4 года назад
Hello , please check source code i have provided GitHub link on video Description...
@amralaa7827
@amralaa7827 4 года назад
@@CodingwithDev yeah , it works but take 2mins , any solution to reduce time ?
@jaspreetmaan453
@jaspreetmaan453 3 года назад
If your device don't show location then open anyone of them google maps, swiggy , zomato etc. who uses your live location
@2020imraj
@2020imraj 2 года назад
this code is not working on my android 12. please create another video.
@waterfallphd8040
@waterfallphd8040 Год назад
But how set location by my value
@somebody1519
@somebody1519 4 года назад
Hi, could you please tell me what to do...I get Location in Russia, but all streets are in English languages, can I get streets’ name in Russian (Local) language? Or is it impossible?
@CodingwithDev
@CodingwithDev 4 года назад
Hello, As per i know isn't possible... on Android studio we used only English language... i have no idea about that...Thank you 😊
@sanji2823
@sanji2823 2 года назад
Ok
@kiranbahalaskar5813
@kiranbahalaskar5813 4 года назад
Sir i am waiting for your kotlin tutorial
@CodingwithDev
@CodingwithDev 4 года назад
Yes definitely bro , i am also excited about make kotlin tutorials...within 1 month i will try
@felipeguerra9649
@felipeguerra9649 4 года назад
Hi, great video, It works for me, but sometimes if it finds the location, sometimes it doesn't, or sometimes it takes a long time, what could I do? thanks
@atakisigoyusov7448
@atakisigoyusov7448 Год назад
+
@anugoudvoddepally348
@anugoudvoddepally348 Год назад
I am getting rong location can u pls help me
@yachanakatharani2679
@yachanakatharani2679 3 года назад
hello @coding with Dev I cant get location what should I do even though my code is same as u
@CodingwithDev
@CodingwithDev 3 года назад
Hello Yachana ,sry for that,.. if all is worked ...if taking a few second for gating address... wait some time automatically get address..
@anikettyagi4264
@anikettyagi4264 2 года назад
Sir second activity ka tool bar pa kaise aaiga adress
@karthikmanis5986
@karthikmanis5986 4 года назад
possible to get location with out button click
@CodingwithDev
@CodingwithDev 4 года назад
Hello Karthikmani , u can simply inside button click copy all these code and paste on onCreate method ..
@karthikmanis5986
@karthikmanis5986 4 года назад
@@CodingwithDev ok , but runtime permission and turn on location fn used in oncreate
@CodingwithDev
@CodingwithDev 4 года назад
Don't worry after that permission u paste the ur code....
@zaheraabuhantash9146
@zaheraabuhantash9146 4 года назад
I have tried it but it does not work with me, I live in Palestine. It works on the emulater but it does notwork with my mobile. If you have any ideas to help me, please.
@CodingwithDev
@CodingwithDev 4 года назад
Hello , if all is work ...if taking a few second for gatting address... wait some time automatically get address..
@zaheraabuhantash9146
@zaheraabuhantash9146 4 года назад
@@CodingwithDev Hello, I have waited for a long time but it is not working.
@ConsulthinkProgrammer
@ConsulthinkProgrammer 3 года назад
@@zaheraabuhantash9146 permit to share, use this geolocation form for alternative ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-enUGXYMk6C8.html
@parthobanerjee8248
@parthobanerjee8248 4 года назад
what dependencies are to be added in gradle script?
@CodingwithDev
@CodingwithDev 4 года назад
Hello partho, no need to added in dependencies are in gradle.. using LocationManager Class get the latitute and longitute and using Geocoder class converted to Address...
@felipeguerra9649
@felipeguerra9649 4 года назад
i think i used this implementation 'com.google.android.gms:play-services-location:17.0.0'
@sonyalfa2269
@sonyalfa2269 3 года назад
@@felipeguerra9649 if huawei model i receive error MainActivity cannot be cast to android.location.LocationListener, since not support google play service
@ogibinedi748
@ogibinedi748 3 года назад
how to get the address without triger a button
@CodingwithDev
@CodingwithDev 3 года назад
You can add after button click logic in OnCreate method...When call a activity u get current location automatically.
@HARJEETBScH
@HARJEETBScH 2 года назад
my app keeping stopping when going to this activity
@codecombination9337
@codecombination9337 4 года назад
Awesome work bro but it is showing my location in USA but i am in asia
@nehaadulkar5050
@nehaadulkar5050 4 года назад
Is your error solved??
@ConsulthinkProgrammer
@ConsulthinkProgrammer 3 года назад
@@nehaadulkar5050 use this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-enUGXYMk6C8.html
@krunalgamit3430
@krunalgamit3430 3 года назад
Real device do not working
@hanifahyulihandinipurbon5415
@hanifahyulihandinipurbon5415 4 года назад
Can you help me? How to save latlong on php mysql??
@CodingwithDev
@CodingwithDev 4 года назад
you can create web service for save the data on mySQL
@sulkiflisyarif3386
@sulkiflisyarif3386 4 года назад
not working on me
@sulkiflisyarif3386
@sulkiflisyarif3386 4 года назад
I downloaded your source code and still can't
@CodingwithDev
@CodingwithDev 4 года назад
Hello , if all is work ...if taking a few second for gating address... wait some time automatically get address..
@sulkiflisyarif3386
@sulkiflisyarif3386 4 года назад
@@CodingwithDev ok bro thx
@pushkarprabhat7152
@pushkarprabhat7152 4 года назад
Get USA location
@pushkarprabhat7152
@pushkarprabhat7152 4 года назад
How to solve this problem please help
@ankurgupta4696
@ankurgupta4696 3 года назад
Even your Source code is not working now
@GrumpyOldMan9
@GrumpyOldMan9 3 года назад
Only 10% of this silent movie is actually about the GPS location. Why do you need to explain how to create buttons, or an OnclickListener?? Waste someone else's time.
@MauricioMartinez0707
@MauricioMartinez0707 2 года назад
ILY
@gefgef1256
@gefgef1256 2 года назад
not working
@bhavyavora8289
@bhavyavora8289 3 года назад
i am not getting location on my physical phone but getting it on emulator
@bhavyavora8289
@bhavyavora8289 3 года назад
can u please help me out
@shaunakchaudhary2178
@shaunakchaudhary2178 4 года назад
Scam Not working
@CodingwithDev
@CodingwithDev 4 года назад
Hello Shaunak , what's the problem or error??
@aus_technology713
@aus_technology713 3 года назад
It is working fine
@asokmahr
@asokmahr 2 года назад
java.lang.NullPointerException: Attempt to invoke virtual method 'android.location.Location android.location.LocationManager.getLastKnownLocation(java.lang.String)' on a null object reference at com.example.map.MainActivity.getLocation(MainActivity.java:71) at com.example.map.MainActivity.access$100(MainActivity.java:21) at com.example.map.MainActivity$1.onClick(MainActivity.java:42)
@IbrahimIceCold
@IbrahimIceCold 4 года назад
Thank you
Далее
СОБАКА И  ТРИ ТАБАЛАПКИ Ч.2 #shorts
00:33
Get Real Time Location in Android Studio
15:22
Просмотров 12 тыс.
Google Map Intent | Android Studio | Java
18:10
Просмотров 1 тыс.
СОБАКА И  ТРИ ТАБАЛАПКИ Ч.2 #shorts
00:33