Location Autosuggestions TextView - [Android Google Maps Course]

CodingWithMitch · 96K views · 2017 · 13:28

Open on YouTube

Software (other)Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as the tutorial they followed when building Places autocomplete in Android, usually while asking why the code now fails because of deprecated APIs or setup errors.

Recommended by 0 people across 0 different months, 2018 to 2021.

What it is

Part of CodingWithMitch's Android Google Maps course, this tutorial adds location autosuggestions to an AutoCompleteTextView using the Google Places API. It walks through the code with downloadable source, and the channel later published an updated 2018 version.

What people said

Cites Yahj Rodriguez · 2018-03 · Stack Overflow · on “Cannot resolve symbol GeoDataClient and AutoCompletePredictionBuffer”

My whole app.gradle dependency codes: apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "26.0.0" defaultConfig { applicationId "rjj.manilapuvtravelcompanion_2nd" minSdkVersion 19 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile

Cites Lorenzo Filizola · 2019-02 · Stack Overflow · on “How to implement google places autocomplete programmatically”

Autocomplete predictions don't show up in my MapsActivity when i type text in AutoCompleteTextView (mSearchText). I tried following the tutorial at the following link: [this video] . Some methods used in it recently became deprecated, so I checked the documentation at [LINK] , especially "Get place predictions programmatically" and "Migrating to the New Places SDK Client". I also followed a guide from the same guy to set up my API key, and I think that shouldn't be the problem here. This is my first Android application and my first question on this site, so please be patient with me. Places.initialize(getApplicationContext(), getString(R.string.google_maps_API_key)); PlacesClient placesClient = P

Cites Graccous · 2019-02 · Stack Overflow · on “Android help, SDK”

Yes I enable Places API and Maps SDK for Android but it still does not work. I try create second key but it also did not help. I copy map_activity.class from [this video] and he works with him

Cites Rares Taciu · 2019-03 · Stack Overflow · on “I've tried to implement Location Autosuggestions using the example in youtube tutorial, but I get an error”

here is the link for the tutorial [this video] , this is the link for the sample code [LINK] , and here is my code: mGoogleApiClient= new GoogleApiClient .Builder(this) .addApi(Places.GEO_DATA_API) .addApi(Places.PLACE_DETECTION_API) .enableAutoManage(this,this) .build(); mPlaceAdapter=new PlaceAutocompleteAdapter(this,mGoogleApiClient,LAT_LNG_BOUNDS,null); constructor of PlaceAutocompleteAdapter class: public PlaceAutocompleteAdapter(Context context, GeoDataClient geoDataClient, LatLngBounds bounds, AutocompleteFilter filter) { super(context, android.R.layout.simple_expandable_list_item_2, android.R.id.text1); mGeoDataClient = geoDataClient; mBounds = bounds; mPlaceFilter = filter; } I've have a

Cites Simon Perez · 2021-02 · Stack Overflow · on “How to implement google places autocomplete programmatically and get also the latlng with kotlin?”

I get the address but not the latlng package shweta.com.googleplacesautocomplete import android.util.Log import android.webkit.WebStorage import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.LatLngBounds import com.google.android.gms.tasks.Tasks import com.google.android.libraries.places.api.model.AutocompletePrediction import com.google.android.libraries.places.api.model.AutocompleteSessionToken import com.google.android.libraries.places.api.model.Place import com.google.android.libraries.places.api.model.TypeFilter import com.google.android.libraries.place