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

  Рет қаралды 61,188

Coding with Dev

Coding with Dev

Күн бұрын

Пікірлер: 114
@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 5 ай бұрын
Thanks man!!!! you made the simplest code, that actualy works!!!!!
@asakimdowin2944
@asakimdowin2944 2 жыл бұрын
thanks, I was looking for getting location when no internet, your code is a big help.
@Savaggalll
@Savaggalll 2 ай бұрын
Thanks!! Your code really simplified lots of staff and save me from tons of problems👍
@DeepCoderMK
@DeepCoderMK 7 ай бұрын
Thank you for valuable video
@muleyshubham
@muleyshubham 3 жыл бұрын
Great ! I'm also from Abad, maharashtra ! ❤️
@ANUBHAMGNANAPRIYA
@ANUBHAMGNANAPRIYA Жыл бұрын
Thank You Sir. It worked.
@ronanhruti
@ronanhruti Жыл бұрын
thanks men
@samentertainment5497
@samentertainment5497 4 жыл бұрын
Omg, you're the best 🥺♥️
@isaiasmponcio
@isaiasmponcio 4 жыл бұрын
woww pure gold thanks master
@aplutsharma
@aplutsharma 4 жыл бұрын
Good
@shubhammahalkar3847
@shubhammahalkar3847 4 жыл бұрын
Great, worked for me
@tharakhgormaniad9820
@tharakhgormaniad9820 2 жыл бұрын
THANK YOU SOO SOSO SO SO MUCH!!!!!
@ParvezAlam-kl6wn
@ParvezAlam-kl6wn 2 жыл бұрын
thanks you sir
@CR471i
@CR471i 2 жыл бұрын
Thank you so much!!!!
@kiranbahalaskar5813
@kiranbahalaskar5813 4 жыл бұрын
Awesome 👍
@aryagustiana101
@aryagustiana101 3 жыл бұрын
Thank You Sir
@CodingwithDev
@CodingwithDev 3 жыл бұрын
Thank you for ur valuable response
@ishanmadushanka3709
@ishanmadushanka3709 2 жыл бұрын
thank you ❤
@няє-в4н
@няє-в4н 3 жыл бұрын
Thanku sir
@sharathkumarhk4260
@sharathkumarhk4260 4 жыл бұрын
Thank you so much man!!!
@lucasmartins6914
@lucasmartins6914 4 жыл бұрын
NICEEE VERY GOOOD thanks
@CodingwithDev
@CodingwithDev 4 жыл бұрын
Thanks for ur valuable response.
@לינויעוז
@לינויעוז Жыл бұрын
thank you
@ImranHossain-mh6dk
@ImranHossain-mh6dk 2 жыл бұрын
Emulator working but physical devices not working place help
@amanihrd7609
@amanihrd7609 2 жыл бұрын
did you find a solution ?
@timothy5840
@timothy5840 2 жыл бұрын
Quick question can i display the long and lat in edit text?
@asadullahshahid5845
@asadullahshahid5845 4 жыл бұрын
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 4 жыл бұрын
Just add some loader there
@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.
@IbrahimIceCold
@IbrahimIceCold 4 жыл бұрын
Thank you
@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?
@huynhphuso
@huynhphuso 2 жыл бұрын
public void onLocationChanged(@NonNull Location location) (It done work ?)
@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 4 жыл бұрын
Use this geolocation form and source code to get your current location : kzbin.info/www/bejne/m5-4eIuPgtBpeZo
@manarahmed205
@manarahmed205 3 жыл бұрын
Please can you tell me how I can display all nearby places in textview??
@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 4 жыл бұрын
@@felipeguerra9649 if huawei model i receive error MainActivity cannot be cast to android.location.LocationListener, since not support google play service
@minaturabio2023
@minaturabio2023 3 жыл бұрын
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)".
@nsaiharshit3128
@nsaiharshit3128 3 жыл бұрын
Thank you sir! The coordinates are visible but the address is not printing. Can you please help?
@atakisigoyusov7448
@atakisigoyusov7448 2 жыл бұрын
+
@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
@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 2 жыл бұрын
+
@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
@eggwarrior5630
@eggwarrior5630 3 жыл бұрын
Hi sir, how can i use SMS manager here to send the location to predefine contact?
@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....
@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 ?
@anikettyagi4264
@anikettyagi4264 2 жыл бұрын
Sir second activity ka tool bar pa kaise aaiga adress
@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
@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
@waterfallphd8040
@waterfallphd8040 Жыл бұрын
But how set location by my value
@yachanakatharani2679
@yachanakatharani2679 4 жыл бұрын
hello @coding with Dev I cant get location what should I do even though my code is same as u
@CodingwithDev
@CodingwithDev 4 жыл бұрын
Hello Yachana ,sry for that,.. if all is worked ...if taking a few second for gating address... wait some time automatically get address..
@sonkhanh2770
@sonkhanh2770 5 ай бұрын
i cant get address when deloyed in real phone with Android 13 :(((
@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.
@2020imraj
@2020imraj 2 жыл бұрын
this code is not working on my android 12. please create another video.
@anugoudvoddepally348
@anugoudvoddepally348 Жыл бұрын
I am getting rong location can u pls help me
@PradeepKumar-cq1dz
@PradeepKumar-cq1dz 2 жыл бұрын
OnLocationChanged not working for me🥺help me bro. How can clear that issue 🥺
@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 2 жыл бұрын
+
@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
@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 😊
@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
@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 4 жыл бұрын
@@nehaadulkar5050 use this kzbin.info/www/bejne/m5-4eIuPgtBpeZo
@HARJEETBScH
@HARJEETBScH 2 жыл бұрын
my app keeping stopping when going to this activity
@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 4 жыл бұрын
@@zaheraabuhantash9146 permit to share, use this geolocation form for alternative kzbin.info/www/bejne/m5-4eIuPgtBpeZo
@shyamsunder-mg7nv
@shyamsunder-mg7nv 2 жыл бұрын
hey need your help , geocoder.getFromLocation(latitude, longitude, 1) is not working for android v12
@sanji2823
@sanji2823 2 жыл бұрын
Ok
@MauricioMartinez0707
@MauricioMartinez0707 2 жыл бұрын
ILY
@krunalgamit3430
@krunalgamit3430 3 жыл бұрын
Real device do 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
@ankurgupta4696
@ankurgupta4696 3 жыл бұрын
Even your Source code is not working now
@pushkarprabhat7152
@pushkarprabhat7152 4 жыл бұрын
Get USA location
@pushkarprabhat7152
@pushkarprabhat7152 4 жыл бұрын
How to solve this problem please help
@gefgef1256
@gefgef1256 3 жыл бұрын
not working
@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)
@gowindahariana2360
@gowindahariana2360 3 жыл бұрын
thank you
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Real-Time GPS User Tracking Geolocation API JavaScript Programming
13:38
Android App - Location Manager
17:56
Ali Farhat
Рет қаралды 4,9 М.
Geocoders | Geocoding and Reverse Geocoding
8:07
Mafia Codes
Рет қаралды 13 М.
Broadcasts & Broadcast Receivers - Android Basics 2023
11:33
Philipp Lackner
Рет қаралды 60 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН