Location Autosuggestions TextView - [Android Google Maps Course]

  Рет қаралды 96,597

CodingWithMitch

CodingWithMitch

Күн бұрын

Пікірлер: 256
@fernandoluis53
@fernandoluis53 4 жыл бұрын
Finally someone who speaks ENglish did a tutorial about this. Thank god
@fmr7155
@fmr7155 5 жыл бұрын
as Places_API got deprecated, could you please make a new tutorial for location autosuggestions?
@ahmedsaifaldeen6881
@ahmedsaifaldeen6881 5 жыл бұрын
the Place picker or Google Places For Android is deprecated now, so what can we do or what is the alternative ??
@chiragrawal3027
@chiragrawal3027 5 жыл бұрын
developers.google.com/places/android-sdk/client-migration#find_autocomplete_predictions check this out!
@cristiantamas9296
@cristiantamas9296 6 жыл бұрын
don't forget to add in gradle : implementation 'com.google.android.gms:play-services-places:15.0.1' implementation 'com.google.android.gms:play-services-location:15.0.0' also i added by myself in the java class bcz i didn't had: import com.google.android.gms.location.places.Places; ( to be sure you have all the imports, copy mitch's code)
@jordicolomer4117
@jordicolomer4117 3 жыл бұрын
Sometime's in life you spend 4 hours to find a solution...And you find it between comments XDDD Thanks a lot man!!!
@agent-playz7916
@agent-playz7916 2 жыл бұрын
Thanks a lot man was struggling with this 👍
@BKBees
@BKBees 7 жыл бұрын
These are great. You deserve a some type of credit for my hive log app, lol, I have used your tutorials extensively. Thank you.
@codingwithmitch
@codingwithmitch 7 жыл бұрын
no worrires. That's what they're for :D
@tololomgidi8098
@tololomgidi8098 4 жыл бұрын
Hello there Mitch, I looked at your video on Location Autosuggestions and I'm having problems with the autocompleteprediction and autocompletefilter and also the geodataclient....They all are giving me errors. I am not sure on how to fix those errors. Thank you in advance.
@msjgml4081
@msjgml4081 6 жыл бұрын
MITCH YOU ARE THE BOSS!!!!!!!
@TheYannsonnboys
@TheYannsonnboys 7 жыл бұрын
Amazing man and thank you so much
@ugotnoting
@ugotnoting 6 жыл бұрын
I was getting **Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}** and I looked everywhere for a solution. But my problem was my API key. Double check if the API key in the manifest is the same as the one in the console. Somehow mine changed.
@aceallen2505
@aceallen2505 5 жыл бұрын
I'm getting this in logcat..please help resolve this Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} Also, I couldn't find enable option for Places SDK for Android. I am using the Places API.
@Graccous
@Graccous 5 жыл бұрын
@@aceallen2505 i have the same problem, and don't know how resolve this, meaby some one help resolve?
@hamzamehmood1318
@hamzamehmood1318 5 жыл бұрын
@@Graccous I tried everything enbaled API 10 times but still auto suggestions are not showing
@aceallen2505
@aceallen2505 5 жыл бұрын
@@hamzamehmood1318 how did you resolve it?
@hamzamehmood1318
@hamzamehmood1318 5 жыл бұрын
@@aceallen2505 i didnot resolve it
@riyaemmanuel4505
@riyaemmanuel4505 5 жыл бұрын
Superb! So Helpful
@josealzugaray17
@josealzugaray17 5 жыл бұрын
help me please! error: incompatible types: GoogleApiClient cannot be converted to GeoDataClient I get that error when compiling
@Behloolaligmailcom
@Behloolaligmailcom 5 жыл бұрын
Same here
@jimmytrivedi
@jimmytrivedi 4 жыл бұрын
@@Behloolaligmailcom Any solution?
@jimmytrivedi
@jimmytrivedi 4 жыл бұрын
Have you find any solution?
@shahghani8990
@shahghani8990 7 жыл бұрын
Hi Mitch, can you please tell me how to find the LatLng Bound. I want to restrict the autocomplete result to areas of specific city. like all the areas of Los angeles
@jubachebah2826
@jubachebah2826 6 жыл бұрын
hi, i want to do the same, have find a solution please ?
@jubachebah2826
@jubachebah2826 6 жыл бұрын
if you want to restrict the results to a specific country you cand do this: AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("DZ") // "DZ" is for Algeria .build(); once you have created the filter , you just need to add it when you initialise your mPlaceAutoCompte like this: mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, mGoogleApiClient, LAT_LNG_BOUNDS, typeFilter);
@androidstudio1564
@androidstudio1564 6 жыл бұрын
The PlaceAutoCompleteAdapter's "GeoDataClient" variable is not accepted by my MapActivity ' s GoogleApiClient variable, thus generates an error. I recheck everything but still cannot get it to work. I hope you can help me Mitch on that, thanks!
@cforge2411
@cforge2411 6 жыл бұрын
on top // The entry points to the Places API. private GeoDataClient mGeoDataClient; private PlaceDetectionClient mPlaceDetectionClient; in init // Construct a GeoDataClient. mGeoDataClient = Places.getGeoDataClient(this, null); // Construct a PlaceDetectionClient. mPlaceDetectionClient = Places.getPlaceDetectionClient(this, null); mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, mGeoDataClient, LAT_LNG_BOUNDS, null);
@cforge2411
@cforge2411 6 жыл бұрын
developers.google.com/places/android-sdk/googleapi-migration check the example here
@kevinwang8716
@kevinwang8716 6 жыл бұрын
getGeoDataClient is not working anymore now, any other tips?
@andrewsmith489
@andrewsmith489 6 жыл бұрын
Make sure you're using the correct constructor, it's overloaded afterall. mGeoDataClient = Places.getGeoDataClient(Context context); if you try to use most of the other constructors it won't work as they've become deprecated. You can check the reference doc for more info. developers.google.com/android/reference/com/google/android/gms/location/places/Places
@shankarsalesforceseries5196
@shankarsalesforceseries5196 6 жыл бұрын
@@andrewsmith489 Thanks. It's working.
@vsagar787
@vsagar787 6 жыл бұрын
Thanks man good view for autocomplete in input field
@ashhcrackk
@ashhcrackk 5 жыл бұрын
sir this PlaceAutoCompleteAdapter is now old , and google says its not supported for the latest playservices, pls provide me with a solution through which i can achieve similar type of results and can continue with you further videos. please sir, its a bit urgent , i hope you will reply thank you
@dhananjaya26
@dhananjaya26 5 жыл бұрын
Heii, I got stuck up in this video... AutoComplete Suggestions not working for me....getting an error Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} in the Toast.
@dhananjaya26
@dhananjaya26 5 жыл бұрын
@Dalton John Logronio I have almost done it almost 10 times
@mohamed_shinety
@mohamed_shinety 4 жыл бұрын
did you solve this problem ???
@ravinabhayani9679
@ravinabhayani9679 7 жыл бұрын
i have getting error java.lang.IllegalStateException: Already managing a GoogleApiClient with id 0
@kelvinkwong6365
@kelvinkwong6365 6 жыл бұрын
i have same error too
@zeinebkefi1097
@zeinebkefi1097 6 жыл бұрын
same here :(
@zeinebkefi1097
@zeinebkefi1097 6 жыл бұрын
i've tried to clean project i had a nullpointer exception at first time i run then i added this ( task.getResult() != null) and it worked (y) public void onComplete(@NonNull Task task) { if(task.isSuccessful() && task.getResult() != null){ Log.d(TAG, "onComplete: localisation trouvée!"); Location currentLocation = (Location) task.getResult(); //mMap.setOnCameraMoveListener(); same as creating a method on movecamera moveCamera(new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude()), 15f,"Ma localisation");
@TheOrbMaverick
@TheOrbMaverick 6 жыл бұрын
Set the global variable mGoogleApiClient to null and then wrap the mGoogleApiClient code under init in an if statement i.e. private GoogleApiClient mGoogleApiClient = null; if(mGoogleApiClient == null) { mGoogleApiClient = new GoogleApiClient .Builder(this) .addApi(Places.GEO_DATA_API) .addApi(Places.PLACE_DETECTION_API) .enableAutoManage(this, this) .build(); }else{ Toast.makeText(this, "Theres a problem", Toast.LENGTH_LONG).show(); } worked for me.
@katarzynabielecka-golik4694
@katarzynabielecka-golik4694 6 жыл бұрын
Ita Enang working in my code too. Thank you !
@mdelclaro
@mdelclaro 6 жыл бұрын
Do you know why did they change the Adapter's code? They're using GeoDataClient instead of GoogleApiClient. I had to get the adapter's code from your github...
@codingwithmitch
@codingwithmitch 6 жыл бұрын
Matheus Del Claro I think the API has changed since I made these videos
@lilydas4256
@lilydas4256 6 жыл бұрын
What are the necessary changes to be made?
@mdelclaro
@mdelclaro 6 жыл бұрын
Actually, I didn't change anything. I got the code from Mitch's github. And I also wouldn't know what to change. Perhaps Mitch can help on this...
@aarushiarya7417
@aarushiarya7417 6 жыл бұрын
GoogleApiClient has been deprecated, you can refer to the document here(developers.google.com/android/guides/google-api-client). Instead the PlaceAutocompleteAdapter now use GeoDataClient, refer here(developers.google.com/android/reference/com/google/android/gms/location/places/GeoDataClient). So, you can change GoogleApiClient to GeoDataClient to make the code work.
@lilydas4256
@lilydas4256 6 жыл бұрын
aarushi arya thank you
@lilydas4256
@lilydas4256 6 жыл бұрын
I have tried implementing your app done the full coding can you please help me solve it otherwise it'll be a waste the error now appears saying after maps activity get loaded saying: Error contacting API{statusCode=PLACES_API_KEY_INVALID, resolution=null}
@divyajagadeesh4913
@divyajagadeesh4913 6 жыл бұрын
Did you ever figure this out? I'm getting the same error.
@lilydas4256
@lilydas4256 6 жыл бұрын
Divya Jagadeesh nope I no longer used Mitch's codes.. I used completely different codes..
@timothee52
@timothee52 6 жыл бұрын
Did you figured it out Divya ?
@timothee52
@timothee52 6 жыл бұрын
I found it actually. It's because you have restricted to Android Apps the API. I know Mitch says you have to do it. But when you say : No restrictions. It works for me. Hope it helped
@mohammadasad6370
@mohammadasad6370 6 жыл бұрын
Hey! I just figured out that I enabled "Places API" instead of "Places SDK for Android" and after enabling Places SDK for Android everything started working perfectly.
@yogeshgurjar257
@yogeshgurjar257 Жыл бұрын
is billing account important for places api
@ralphordanza3487
@ralphordanza3487 5 жыл бұрын
Is there a way to customize the pop up list of places?
@VlVALDl
@VlVALDl 4 жыл бұрын
Hi! GoogleApiClient is not actual. Place.GEO_DATA_API is wrong. How to code this Builder today?
@lakshmikanthgangaramaiah5249
@lakshmikanthgangaramaiah5249 4 жыл бұрын
Hi Mitch, what if i already have API key : Android key (auto created by Firebase)? because now if i use the SHA-1 key for google places, i will not be able to load photos from firbase on my mainfeed of app!! please help
@osamajune9
@osamajune9 4 жыл бұрын
Mitch please Update this tutorial because its depricated and we are having problems....
@umeshmanolkar6590
@umeshmanolkar6590 6 жыл бұрын
i want in my app should only display near by shops in range of 1.5km. After clicking on any shop location other activity should open. Can you help me please
@fatimafarhana7110
@fatimafarhana7110 5 жыл бұрын
Hey Mitch. Thanks for this tutorial. I am facing an error though. I have followed all the steps according to this video but my app is getting crashed. What can I do?
@curiouskuala
@curiouskuala 7 жыл бұрын
PLEAAAAAASE. can you make a tutorial about user picking a location and that location will be posted in a textview??? :D i really do appreciate that
@mugunthanm4527
@mugunthanm4527 3 жыл бұрын
Hi mitch, i got an error like the below error contacting api status statuscode=NETWORK_ERROR resolution=null Can you tell me how to fix this problem
@marthaatdarumatech5381
@marthaatdarumatech5381 5 жыл бұрын
Does anyone know how this TextView translates to fees? Does Google charges when a suggestion is selected only or by session for Android apps?
@howtodoanything304
@howtodoanything304 6 жыл бұрын
Am getting this error "Error getting autocomplete prediction API call: Status{statusCode=NETWORK_ERROR, resolution=null} " any solutions, thank ypu
@samuelsuther1583
@samuelsuther1583 5 жыл бұрын
I'm getting the same error as well. Tried stackoverflow but to no avail. Do you remember how you got around it?
@kiranmarrapu
@kiranmarrapu 6 жыл бұрын
Hello, "PlaceAutocompleteAdapter" is showing errors when I copy the code from "GitHub" at all these import statements "import com.google.android.gms.location.places.AutocompleteFilter; import com.google.android.gms.location.places.AutocompletePrediction; import com.google.android.gms.location.places.AutocompletePredictionBufferResponse; import com.google.android.gms.location.places.GeoDataClient;". Though my build.gradle has "implementation "com.google.android.gms:play-services-location:15.0.1"" statement. Can you help me on this error?
@CaferBeyazal
@CaferBeyazal 6 жыл бұрын
Hey Kiran , build gradle file add this line 'implementation 'com.google.android.gms:play-services-places:15.0.0', your bug is fixed
@kiranmarrapu
@kiranmarrapu 6 жыл бұрын
Thanks. It worked
@shrutikohakade9119
@shrutikohakade9119 6 жыл бұрын
I also had the same problem . It really worked. I wasted 3 hrs finding solution to it. thanks!!
@saibhargav5491
@saibhargav5491 6 жыл бұрын
how i will get api
@lavisingh5516
@lavisingh5516 6 жыл бұрын
@@shrutikohakade9119 Same here
@nishchaypahade5094
@nishchaypahade5094 6 жыл бұрын
@9:00 Did u just read "Earlier" as "Later" ??
@ragibkhan7925
@ragibkhan7925 7 жыл бұрын
i have a problem ... the thing works fine the fst time i press the map button .. bt if i go back to tha main activity and pree the map btton again thn the map does isitialize bt my locetion and all other stuff dont work at aLL
@abubakarkaleem1607
@abubakarkaleem1607 6 жыл бұрын
Thank you!.... Your course is very helpful i think it is much better than google Documentation. make a course for image slider like whats app
@rajatpalankar864
@rajatpalankar864 5 жыл бұрын
com.google.android.gms.tasks.RuntimeExecutionException: com.google.android.gms.common.api.ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED i m Getting this Error Map API and Place API are been enabled
@ehtashamali821
@ehtashamali821 5 жыл бұрын
I'm getting this below exception whenever I write text in search box. Exception: E/PlaceAutocompleteAd: Error getting autocomplete prediction API call com.google.android.gms.tasks.RuntimeExecutionException: com.google.android.gms.common.api.ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED I have enable the PLACES API in Google Console but it stilll give me the error .API ACCESS NOT CONFIRMED. Please guide me to resolve this problem. Thanks
@starlite5097
@starlite5097 4 жыл бұрын
Hi, is there a solution for that Adapter in kotlin?
@yurymatatov2447
@yurymatatov2447 6 жыл бұрын
good job!
@PavLosMavRis
@PavLosMavRis 4 жыл бұрын
Can you please make a new video about that because Google doesn't use some of those method so basically we can't make a textview like this.
@ShivamSingh-lg6bx
@ShivamSingh-lg6bx 6 жыл бұрын
Did anyone notice at 6:48 every place in the dropdown is of India?
@MrDiegoaz3
@MrDiegoaz3 6 жыл бұрын
When i click on a item, does not directly add the marker, I have to press enter in order to add the marker. Why can be?
@MrDiegoaz3
@MrDiegoaz3 6 жыл бұрын
Solved like this: mSearchText.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int position, long id) { geoLocate(); } });
@codywaldecker8260
@codywaldecker8260 5 жыл бұрын
Google Places for Android is now depreciated. In order to use the autosuggestions, you have to use the regular Places API. That means that you have to set up billing and pay to use anything Places. Not really worth it anymore.
@fedorrussel3810
@fedorrussel3810 5 жыл бұрын
fuck me. fuck google
@carrapax
@carrapax 4 жыл бұрын
Does anyone know how to do an updated AutocompleteAdapter class pls?
@raonegamming729
@raonegamming729 5 жыл бұрын
Google Places for Android is now depreciated then what solution is it??
@edwardliew3937
@edwardliew3937 6 жыл бұрын
I found error required: 'android :support.v4app.FragmentActivity" WHat this means?
@angelsantos5245
@angelsantos5245 7 жыл бұрын
In the logcat i get this error google Api Client cannot be converted to GeoData Client, what do i do?
@moalenngren3154
@moalenngren3154 7 жыл бұрын
I get the same thing! Did you find a solution to it?
@moalenngren3154
@moalenngren3154 7 жыл бұрын
Alright I found the problem. The current file on GitHub isn't the same code as it was when Mitch used it. They have probably updated it, so it no longer works with the code Mitch uses. So I just copied Mitch code (paused and tried to see everything, haha) and then it worked!
@dimapindrik7733
@dimapindrik7733 7 жыл бұрын
Use this : mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, Places.getGeoDataClient(this, null), LAT_LNG_BOUNDS, null);
@hythamtarek3183
@hythamtarek3183 7 жыл бұрын
@Dima ..There is some issues about your solution but guys can use it and fix these issues ... thank you !
@jashshah7066
@jashshah7066 6 жыл бұрын
@Dima I tried the above code but app still crashes..
@ratandeepsharma5706
@ratandeepsharma5706 6 жыл бұрын
Cannot resolve the symbol getAutocompletePredictions . Plz help
@ceazarmasula5670
@ceazarmasula5670 5 жыл бұрын
Sir, I'm getting an error "Error contacting API: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}". Can you help please. and Thanks
@aceallen2505
@aceallen2505 5 жыл бұрын
I got the same, did you resolve it?
@ceazarmasula5670
@ceazarmasula5670 5 жыл бұрын
@@aceallen2505 Nope. Been trying for days.
@ceazarmasula5670
@ceazarmasula5670 5 жыл бұрын
@@aceallen2505 I know I had enabled Places API on Console but I'm still getting this error
@aceallen2505
@aceallen2505 5 жыл бұрын
Yep me too! enabled places API not couldn't resolve
@SuperBlueGlow
@SuperBlueGlow 5 жыл бұрын
Did you manage to fix the problem eventually? I feel like I've tried everything on the internet with no result
@joekevinrayan5234
@joekevinrayan5234 5 жыл бұрын
Im getting an error; error contacting api! What are the complete implementation and setup of the api required. If someone could help me please leave me a reply
@rohithmangal1038
@rohithmangal1038 4 жыл бұрын
Hello sir I am Ranjeet here , and i got an error about setAdapter "error: cannot find symbol method setAdapter(PlaceAutocompleteAdapter) where PlaceAutocompleteAdapter is a type-variable: PlaceAutocompleteAdapter extends Object declared in class MapActivity" can You explain the error sir?
@cesarpantoja1099
@cesarpantoja1099 5 жыл бұрын
you can help me with this error ? Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}
@mertturker101
@mertturker101 4 жыл бұрын
any solution?
@mohamed_shinety
@mohamed_shinety 4 жыл бұрын
any solution???
@marchino3577
@marchino3577 5 жыл бұрын
When I enter the location in the textfield, it show me the follow error: "Error contacting API: Status(statusCode=ERROR, resolution=null)". What it mean?
@marchino3577
@marchino3577 5 жыл бұрын
@Uncanny Tricks no
@mertturker101
@mertturker101 4 жыл бұрын
@@marchino3577 can u solve it?
@jimmytubo667
@jimmytubo667 6 жыл бұрын
how to get the place selected and save it to string
@LifeCasts
@LifeCasts 6 жыл бұрын
How to search location in an specific country suppose, i am searching a place using postcode in Uk, so how ?
@jubachebah2826
@jubachebah2826 6 жыл бұрын
AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("FR") .build(); once you have created the filter , you just need to add it when you initialise your mPlaceAutoCompte like this: mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, mGoogleApiClient, LAT_LNG_BOUNDS, typeFilter);
@accelarkyex603
@accelarkyex603 6 жыл бұрын
Hi Sir Mitch can i ask how to fix the app because when i first run and install the application the app was perfectly fine but when i reopen the app it doesn't ask any more about the permission and doesn't locate my location nor search for the places please someone help me thanks in advance :) PS: i already check the Manifest File it's the same as in the tutorials
@codingwithmitch
@codingwithmitch 6 жыл бұрын
It should only ask the permission once. Are you seeing any errors?
@accelarkyex603
@accelarkyex603 6 жыл бұрын
@@codingwithmitch yes it asked permission once and no errors appearing. but when i close the application and reopen the application it just displays the map and event the search doesn't display places suggestions
@dimpalbhatia5037
@dimpalbhatia5037 7 жыл бұрын
How to restrict users to select text from the suggested list????
@aceallen2505
@aceallen2505 5 жыл бұрын
I'm getting this in logcat..please help resolve this Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} Also, I couldn't find enable option for Places SDK for Android. I am using the Places API.
@Bhabani93
@Bhabani93 5 жыл бұрын
Ace Allen errorstrike.com/2019/02/places-autocomplete-error-fix-2019/
@alitonoliveira1700
@alitonoliveira1700 5 жыл бұрын
And what about "No results found"? How to solve it?
@officialtopchefbeats
@officialtopchefbeats 6 жыл бұрын
Anything that says getAutoPredictions All red. Any suggestions?
@nursaadat
@nursaadat 6 жыл бұрын
Maybe You just forgot to include a dependency in Your app build gradle file implementation 'com.google.android.gms:play-services-places:15.0.1'
@yunusemre9868
@yunusemre9868 6 жыл бұрын
This PlaceAutoCompleteAdapter method's constructor wants GoogleDataClient object instead of GoogleApiClient object. Am i the only one who get this error?
@abhisheksharma529
@abhisheksharma529 6 жыл бұрын
same here
@yunusemre9868
@yunusemre9868 6 жыл бұрын
no i dont have got. i couldn't use that thing in my project. sad
@idkeidekn
@idkeidekn 6 жыл бұрын
no not even that is working
@tabishshaikh2338
@tabishshaikh2338 5 жыл бұрын
mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, Places.getGeoDataClient(this, null),LAT_LAG_BOUND,null); facing issue on this constructor.
@vayneecoaug5662
@vayneecoaug5662 5 жыл бұрын
the second parameter is deprecated, use Places.getGeoDataClient(this) instead, more information can be found: developers.google.com/android/reference/com/google/android/gms/location/places/Places
@fernandoluis53
@fernandoluis53 4 жыл бұрын
this videos is deprecated. new video?
@sudhanshusharma9159
@sudhanshusharma9159 5 жыл бұрын
location.addOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(@NonNull Task task) { if(task.isSuccessful()) { Log.d(TAG, "location found: "); Location currentLocation = (Location) task.getResult(); here current location returns null. Can someone help in this issue.
@ubaidurrehman7668
@ubaidurrehman7668 6 жыл бұрын
error: cannot find symbol method getAutocompletePredictions please help
@Frazmologist
@Frazmologist 5 жыл бұрын
Add this to your gradle file - implementation 'com.google.android.gms:play-services-places:16.0.0' (can upgrade the version to the latest current version if this is outdated)
@udithasampath4991
@udithasampath4991 6 жыл бұрын
Error contacting API{statusCode=ERROR, resolution=null} how to solved
@javidaliyev3725
@javidaliyev3725 5 жыл бұрын
anyone resolved this error? Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}
@sistemasinfo2419
@sistemasinfo2419 5 жыл бұрын
podrías javi
@anamayojha2248
@anamayojha2248 6 жыл бұрын
Can you please tell me how to restrict it for country India?? I am not able to get it.
@jubachebah2826
@jubachebah2826 6 жыл бұрын
AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("FR") .build(); once you have created the filter , you just need to add it when you initialise your mPlaceAutoCompte like this: mPlaceAutocompleteAdapter = new PlaceAutocompleteAdapter(this, mGoogleApiClient, LAT_LNG_BOUNDS, typeFilter);
@muzamilqureshi9673
@muzamilqureshi9673 5 жыл бұрын
Hi ! bro can u tell me .how to change search hint text of place_autocomplete_search_input ...i have searched alot on internet but i found nothing...plzzz help me. ill me be thankful to u... 8)
@Bhabani93
@Bhabani93 5 жыл бұрын
Muzamil Qureshi errorstrike.com/2019/02/places-autocomplete-error-fix-2019/
@muzamilqureshi9673
@muzamilqureshi9673 5 жыл бұрын
@@Bhabani93 cannot resolve getSupportFragmentManager();
@dhananjaya26
@dhananjaya26 5 жыл бұрын
haai@@Bhabani93 this link is out of service ... can you send me the code to my mail dhananjayaswn@gmail.com
@wojciechwrobel1462
@wojciechwrobel1462 6 жыл бұрын
Hello guys, anyone has a problem, with autofilling? I mean Error getting autocomplete prediction API call: Status{statusCode=ERROR, resolution=null}
@fairuzelqimochammad805
@fairuzelqimochammad805 2 жыл бұрын
yeah I have the same problem, did you find the solution?
@wojciechwrobel1462
@wojciechwrobel1462 2 жыл бұрын
@@fairuzelqimochammad805 not really sure about that, it was 4 years ago :D
@ainasyazwani9271
@ainasyazwani9271 5 жыл бұрын
I got the error on the getCount() in line below: Log.i(TAG, "Query completed. Received " + autocompletePredictions.getCount() + " predictions."); How to solve this?
@ehtashamali821
@ehtashamali821 5 жыл бұрын
Same here. Did you resolve that ?
@ainasyazwani9271
@ainasyazwani9271 5 жыл бұрын
@@ehtashamali821 no, i can resolve it
@ehtashamali821
@ehtashamali821 5 жыл бұрын
@@ainasyazwani9271 I resolved this issue by using old API KEY which is generated before January 29 and it works. Both Google Place Picker and Auto Complete Suggestion Api is not working with the API KEY which is generated after January 29. Both above APIs are depreciated after June 29.
@ainasyazwani9271
@ainasyazwani9271 5 жыл бұрын
@@ehtashamali821 where do you get the old API KEY?
@ranaibrahim3957
@ranaibrahim3957 6 жыл бұрын
how can i restrict the search result to a country
@cforge2411
@cforge2411 6 жыл бұрын
set LatLngBounds according to that country's coordinates
@zamacan9048
@zamacan9048 6 жыл бұрын
please can you write this line of code ?@@cforge2411
@cforge2411
@cforge2411 6 жыл бұрын
@rana ibrahim reading it now, I'm highly disappointed in my previous answer the correct answer I've posted below
@cforge2411
@cforge2411 6 жыл бұрын
@@zamacan9048 it should go like this - now (for about the past 2-3 years) you can use country code directly AutocompleteFilter typeFilter = new AutocompleteFilter.Builder() .setCountry("AU") .build(); mPlaceAutocompleteAdapter.setFilter(typeFilter); /* AU there is the country code for Australia depending on your country use the code mentioned in en.wikipedia.org/wiki/ISO_3166-1_alpha-2 this and other such info is found in the docs here developers.google.com/places/android-sdk/autocomplete#restrict_autocomplete_results I haven't run and tested it yet, but it's fairly close to the working answer. I'll test and update once I'm on Android Studio */
@zamacan9048
@zamacan9048 6 жыл бұрын
@@cforge2411 thankyoou for your answer I've tried the following: mPlaceAutocompleteAdapter.setFilter(typeFilter); .....not working autocompleteFragment.setFilter(typeFilter); .......not working Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN) .setFilter(typeFilter) .build(this); ..... not working May be the place um putting those codes .... sorry for that,, um a beginner coder :)
@fahrionline8901
@fahrionline8901 7 жыл бұрын
Hi may u plz guide how to make android app of different videos with the help of source code
@syhrhzlkrn2283
@syhrhzlkrn2283 3 жыл бұрын
Stuck because so many Places Api deprecated
@mohammadasad6370
@mohammadasad6370 6 жыл бұрын
Anyone getting this saying: Error contacting API{statusCode=PLACES_API_KEY_INVALID, resolution=null} One of the reasons for its cause is not enabling the "Places SDK for Android" or enabling the different API for places. Enable "Places SDK for Android" instead of "Places API". It works in my case.
@aceallen2505
@aceallen2505 5 жыл бұрын
I couldn't see this enable an option for Places SDK for Android, could you help me?
@jaykhatwani5617
@jaykhatwani5617 5 жыл бұрын
same here@@aceallen2505
@24holiday68
@24holiday68 5 жыл бұрын
The codes in the github have been changed, it is now different from what you are doing, can someone help me out
@mukundieldridge7803
@mukundieldridge7803 5 жыл бұрын
lets Just unsubscribe from his Channel ... this is very much useless
@amrudeshbalakrishnan8143
@amrudeshbalakrishnan8143 6 жыл бұрын
These methods has been deprecated refer the documentation for the new steps
@codingwithmitch
@codingwithmitch 6 жыл бұрын
Ya watch my new google maps course
@abangapplication9783
@abangapplication9783 6 жыл бұрын
Kya unsaon pag restrict nga philippines ra ang boundary sa search kya
@jamesm.8392
@jamesm.8392 5 жыл бұрын
Mitch pl check out my comments about Google Maps FAB posted by Mike Downes AND SEE WHAT YOU THINK
@sarthaksrivastav1200
@sarthaksrivastav1200 6 жыл бұрын
you are not showing what you done with api key.
@letslearncomputerprogramming
@letslearncomputerprogramming 6 жыл бұрын
org.json.JSONException_ Index 0 out of range [0..0) API return the empty
@daddejlift
@daddejlift 6 жыл бұрын
For those who straggle for this problem *Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}* go to the console and enable the Places SDK for Android.. it will solve your problem
@aceallen2505
@aceallen2505 5 жыл бұрын
I couldn't see this enable an option for Places SDK for Android, could you help me?
@daddejlift
@daddejlift 5 жыл бұрын
console.cloud.google.com/google/maps-apis/apis/places-backend.googleapis.com/ this bro the link i cant explain here ..
@aceallen2505
@aceallen2505 5 жыл бұрын
​@@daddejlift I'm getting this in logcat..please help resolve this Error getting autocomplete prediction API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null} Also, I couldn't find enable option for Places SDK for Android. I enabled the Places API, the one you're talking about.
@Bhabani93
@Bhabani93 5 жыл бұрын
Ace Allen errorstrike.com/2019/02/places-autocomplete-error-fix-2019/ go to this site they fixed this issue
@Graccous
@Graccous 5 жыл бұрын
@@Bhabani93 it's ok but how to update Mitch code? When i update my aokication die .. I don't found step-4 and when i implements step 3 my code is blinking red ..
@ГНОМ-ГРИМ
@ГНОМ-ГРИМ 5 жыл бұрын
Thanks man good view for autocomplete in input field
Retrieving the Google Place Object - [Android Google Maps Course]
16:25
Get Device Location - [Android Google Maps Course]
11:18
CodingWithMitch
Рет қаралды 141 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Location | Getting Current location | FusedLocationProviderClient
12:41
DO NOT do this in a Software Engineering Interview
7:59
CodingWithMitch
Рет қаралды 9 М.
Add Marker to Google Map - [Android Google Maps Course]
11:12
CodingWithMitch
Рет қаралды 98 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 83 М.
Google Maps Place Picker - [Android Google Maps Course]
8:34
CodingWithMitch
Рет қаралды 56 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН