How to Implement Place Picker in Android Studio | PlacePicker | Android Coding

  Рет қаралды 33,720

Android Coding

Android Coding

5 жыл бұрын

Place Picker Tutorial : In This Video, You Will Learn How to Integrate Place Picker in Android Studio.
Build.Gradle :
implementation 'com.google.android.gms:play-services:12.0.1'
API KEY : AIzaSyDNGNXz6WK_QbPz4w2-AUrVzYBI_ASemj0
AndroidManifest :
uses-permission android:name="android.permission.INTERNET"/
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/
uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/
meta-data android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyDNGNXz6WK_QbPz4w2-AUrVzYBI_ASemj0"/
All File :
1) activity_main.xml 2) MainActivity.java
Table Of Content :
0:23 - Project Creation
0:40 - XML Code
3:48 - Java Code
7:59 - Output
Presented By : Android Coding
Background Music By : NoCopyrightSounds
Download Apk Link :
drive.google.com/open?id=126u...
All My App Links :
1) QR Scanner App : bit.ly/ScannerAndGenerator
2) Colors Code App : bit.ly/ColorsCode
3) Age Calculator App : bit.ly/AndroidAgeCalculator
Enjoy & Stay Connected With Us!
► Subscribe To Android Coding : bit.ly/KZfaq-AndroidCoding
► Like Us On Facebook : bit.ly/Facebook-AndroidCoding
► Follow Us On Instagram : bit.ly/Instagram-AndroidCoding
► Follow Us On Twitter : bit.ly/Twitter-AndroidCoding
#PlacePicker #AndroidTutorial #12H1r

Пікірлер: 83
@kcrstudios6796
@kcrstudios6796 5 жыл бұрын
I was just watching the video and I haven't tried your tutorial yet, but it sure appears to be a handy tutorial, big ups, you are worthy of my subscription and yes, my thumbs up.
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Thanks
@kcrstudios6796
@kcrstudios6796 5 жыл бұрын
@@AndroidCoding you are welcome, but just out of curiosity, is there not a way to go around the issue of the map disappearing without having to disable internet connection?
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Not yet but can be ahead as soon as possible
@buzzminkyunghoon3856
@buzzminkyunghoon3856 5 жыл бұрын
Yes. More Google maps tutorials. Please
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Ok. Give me Suggestion
@widiaksap9747
@widiaksap9747 3 жыл бұрын
thanks for your class sir, this explanation so clea, I like it..
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Welcome
@widiaksap9747
@widiaksap9747 3 жыл бұрын
@@AndroidCoding hi sir, how to active search cordinate in place picker.?
@SLCODEGEN
@SLCODEGEN 2 жыл бұрын
Thank you so much its Working fine.
@AndroidCoding
@AndroidCoding 2 жыл бұрын
You're welcome. Glad to help.
@kunalpatil3645
@kunalpatil3645 3 жыл бұрын
Thank you so much..!
@AndroidCoding
@AndroidCoding 3 жыл бұрын
You're welcome
@forester1
@forester1 2 жыл бұрын
Always get a easiest solution ☺️
@nandachorom811
@nandachorom811 2 жыл бұрын
Mr i want to ask something, why my place picker can't be reused? i see not error but I/Counters: exceeded sample count in FrameTime and survace is not valid? please reply to me. thankyou
@angelica1458
@angelica1458 3 жыл бұрын
omg I love u, thaaaaaaaaaaaaaaaaanks!!
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Thanks for love and support. You're welcome. Keep learning.
@adielmoran6986
@adielmoran6986 3 жыл бұрын
This is just what I had days of looking for, thank you very much !!! I only have a small problem, it turns out that when I click the button to open the map it opens it but immediately closes it and I have to open it a second time, do you know what this error is due to? It is no exception or something is just a small problem at the time of opening, I would appreciate it if you help me !!! regards
@ericn1337
@ericn1337 3 жыл бұрын
hi, did you face this error, Failed to resolve: com.google.android.gms:play-services:12.0.1?
@adielmoran6986
@adielmoran6986 3 жыл бұрын
@@ericn1337 Hello I faced something similar and looking for several sites I found that I had to implement a more updated library which is the following: implementation 'com.google.android.gms: play-services-places: 17.0.0' and for that let us recognize the "Places" another must be implemented which is: implementation 'com.google.android.libraries.places: places: 2.4.0' I hope it helps you!
@ericn1337
@ericn1337 3 жыл бұрын
@@adielmoran6986 wow,thank, I will try it , thank you
@jinalgandhi2192
@jinalgandhi2192 3 жыл бұрын
When I am selecting address and name, it is not showing, it is not getting displayed, place licker is working fine and the location gets selected too, but it does not display it's coming blank in place of textview
@Unreadmanusripts
@Unreadmanusripts 5 жыл бұрын
Even though I have switched off the internet like you suggested, the app still immediately closes. And I am using the virtual device. Android Studio Emulator.
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Check in real device.
@Unreadmanusripts
@Unreadmanusripts 5 жыл бұрын
@@AndroidCoding It's working now thank you. But the nearby places do not show up. Nor can I "search" for a new place.
@orlandoglez872
@orlandoglez872 4 жыл бұрын
does the user have to turn on and off the internet? why?
@ronydebnath6852
@ronydebnath6852 4 жыл бұрын
I have done same as you but when I click picker button then it closed.I also try your apk but same problem.Now what can I do?
@ronydebnath6852
@ronydebnath6852 4 жыл бұрын
plz help me.
@dilshodiskandarov7144
@dilshodiskandarov7144 3 жыл бұрын
Super
@AndroidCoding
@AndroidCoding 3 жыл бұрын
Thanks
@sugamdas8
@sugamdas8 2 жыл бұрын
In Java code PlacePicker.IntentBuilder this line is showing error in PlacePicker. Can anyone please help me out? 🙏
@aniketkanitkar1998
@aniketkanitkar1998 4 жыл бұрын
I have followed your tutorial, and also installed your apk, but I am facing an issue that the place picker UI gets closed immediately when launch, please give me the solution for it. I am facing the same issue in the apk provided in the description. Please help me out of it. I am running the app on real device. Thank you
@roberts.s
@roberts.s 4 жыл бұрын
I got same problem. This method is deprecated, now google have new API call Autocomplete Place. This is the documentation: developers.google.com/places/android-sdk/autocomplete#add_an_autocomplete_widget But, you must do activated billing account in console.developers.google.com Google give $300 for first time, you can use it for free until this credit off or 12 months of using API.
@yudapradana1137
@yudapradana1137 2 жыл бұрын
Can u make onClick Open map, when u click?
@dilshodiskandarov7144
@dilshodiskandarov7144 3 жыл бұрын
How to change the map type to "MAP TYPE HYBRID" ?
@kshitijchavan8595
@kshitijchavan8595 2 жыл бұрын
my picker Button is not working, it is not sending me to the map
@Fagone87
@Fagone87 5 жыл бұрын
Hi, How can we change the Latitude and Longitude by the address on the result?
@AndroidCoding
@AndroidCoding 5 жыл бұрын
you can't change longitude and latitude manually
@Fagone87
@Fagone87 5 жыл бұрын
@@AndroidCoding But how can I replace the latitude and longitude by the address?
@dhilipkumar1412
@dhilipkumar1412 5 жыл бұрын
Sir my map is closing is while click on online mode....how to nullify this error.. anyone pls help me. My project is stucking with this issue
@TheBlueRaven
@TheBlueRaven 4 жыл бұрын
I have the same issue. Did you resolved it? Can you help me?
@aw__69
@aw__69 4 жыл бұрын
The api deprecated error shows, also the dex file error, what do i do about that ?
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Sorry, I have no idea about this.
@sajjankiran3179
@sajjankiran3179 4 жыл бұрын
for DEX error, add the following in gradle implementation 'androidx.multidex:multidex:2.0.1' multiDexEnabled true (in android->defaultConfig)
@jonturnik
@jonturnik 4 жыл бұрын
у меня такая ошибка: Cannot fit requested classes in a single dex file (# methods: 73791 > 65536)
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Enable the multidex your problem will be resolved.
@jonturnik
@jonturnik 4 жыл бұрын
@@AndroidCoding thank you!
@AndroidCoding
@AndroidCoding 4 жыл бұрын
Welcome
@anshupathak1150
@anshupathak1150 5 жыл бұрын
Map is closing immediately when I open.
@AndroidCoding
@AndroidCoding 5 жыл бұрын
when you open the app please make sure your internet is turn off,after click on place picker button you can on your internet.
@anshupathak1150
@anshupathak1150 5 жыл бұрын
@@AndroidCoding then every time I have to do internet off and on. Then user will also confused first they have to internet turn off again on.
@roberts.s
@roberts.s 4 жыл бұрын
@@AndroidCoding do you have another solution ? I don't think user will understand this problem, if the app released
@babanana4006
@babanana4006 3 жыл бұрын
@@AndroidCoding how do we so that we don't need to turn off wifi and the internet when using it?
@ljstudents9518
@ljstudents9518 3 жыл бұрын
search not working is this
@GobindKumar-kr7mw
@GobindKumar-kr7mw 2 жыл бұрын
Your apk file is not working even I had turned on the location
@bell3752
@bell3752 5 жыл бұрын
its not working ,,Because google changed the place Api ,make one more tutorial on new update thank you
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Ok. But it's working properly
@bell3752
@bell3752 5 жыл бұрын
@@AndroidCoding i downloaded your apk ,but when i open its close immediately....!
@AndroidCoding
@AndroidCoding 5 жыл бұрын
when you open the app please make sure your internet is turn off,after click on place picker button you can on your internet. Try this
@bell3752
@bell3752 5 жыл бұрын
@@AndroidCoding who will do like this
@ezazgori6352
@ezazgori6352 4 жыл бұрын
Place picker is not getting imported
@jonpaolopanis7290
@jonpaolopanis7290 4 жыл бұрын
Hi. Were you able to resolve it? I am having the same issue.
@akshaydesai9218
@akshaydesai9218 2 жыл бұрын
This code is not working
@pcsgeeks4176
@pcsgeeks4176 5 жыл бұрын
Please GITHUB, i have errors.
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Tell me or send me a screen shot on Instagram.
@manikantadasar6554
@manikantadasar6554 2 жыл бұрын
Not working
@dineshpatidar211
@dineshpatidar211 5 жыл бұрын
In my case Map open and close immediately..! Why ..? Plz help..
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Make sure your internet is off. When you click the picker button.
@dineshpatidar211
@dineshpatidar211 5 жыл бұрын
@@AndroidCoding offline is working fine, but how can we use this online..?
@AndroidCoding
@AndroidCoding 5 жыл бұрын
After click on picker you can on your internet. See at 7:59
@dineshpatidar211
@dineshpatidar211 5 жыл бұрын
@@AndroidCoding ok sir, thanks for reply.
@AndroidCoding
@AndroidCoding 5 жыл бұрын
Welcome
@nileshmali7551
@nileshmali7551 3 жыл бұрын
Place Picker is now deprecated right?? is there any alternative that google has suggested?? Please guide
@cuijiashuo7705
@cuijiashuo7705 2 жыл бұрын
did you figure out an alternative way? cant find a way around this
@varadgujar3406
@varadgujar3406 4 жыл бұрын
search nhi ho rahe hai bro
@rashidkhanjamali4358
@rashidkhanjamali4358 2 жыл бұрын
First share Demo what you want To perform
@harshpalit6508
@harshpalit6508 2 жыл бұрын
Place Picker API is now deprecated and thus this video is no longer helpful
@arjunvenugopal4763
@arjunvenugopal4763 4 жыл бұрын
Place Picker is deprecated
@RohitKumar-ht4sr
@RohitKumar-ht4sr 4 жыл бұрын
use this library github.com/rtchagas/pingplacepicker
@dilshodiskandarov7144
@dilshodiskandarov7144 3 жыл бұрын
How to change the map type to "MAP TYPE HYBRID" ?
UNO!
00:18
БРУНО
Рет қаралды 3,4 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 39 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 72 МЛН
RecyclerView | Everything You Need to Know
25:07
Practical Coding
Рет қаралды 132 М.
Mapbox implementation in Android Studio using java
16:49
Everyday Programmer
Рет қаралды 9 М.
How to Send Notification in Android
14:15
Codes Easy
Рет қаралды 39 М.
How to implement Android Place Picker
16:17
Android Mine
Рет қаралды 100 М.
OLX Shopping | 08 Location Picker | Android Studio | Java
55:48
Atif Pervaiz
Рет қаралды 1,5 М.
UNO!
00:18
БРУНО
Рет қаралды 3,4 МЛН