Google Places API Android: Autocompletion closes too quickly -


i added place autocompletion android app. when click button (chooselocationbutton) opens autocomplete widget correctly. problem when want write name in search field. directly after clicked on first keystroke, autocomplete widget close , research not done. here written in run console:

w/iinputconnectionwrapper: reportfullscreenmode on inexistent inputconnection w/iinputconnectionwrapper: finishcomposingtext on inactive inputconnection 

here code:

autocompletefilter.builder = new autocompletefilter.builder();     try {         final intent intent = new placeautocomplete.intentbuilder(placeautocomplete.mode_fullscreen)                 .setfilter(a.settypefilter(autocompletefilter.type_filter_regions).build())                 .build(this);         chooselocationbutton.setonclicklistener(new view.onclicklistener() {             @override             public void onclick(view v) {                  startactivityforresult(intent, place_autocomplete_request_code);             }         });     } catch (googleplayservicesrepairableexception e) {         e.printstacktrace();         // todo handle exception!     } catch (googleplayservicesnotavailableexception e) {         e.printstacktrace();         // todo handle exception! toast?     } 

of course have enabled google places android api , google map android api in google developer console. have added api key androidmanifest.xml that:

<meta-data         android:name="com.google.android.geo.api_key"         android:value="@string/google_maps_key" /> 

in log observe this:

basicnetwork.performrequest: unexpected response code 400 https://www.googleapis.com/placesandroid/v1/getautocompletepredictions... 

followed by:

[67738] basicnetwork.performrequest: unexpected response code 403 https://www.googleapis.com/placesandroid/v1/getautocompletepredictions?key=...11-17 21:02:01.207 1053-1543/? e/places: places_api_invalid_app 

in run log of android studio have: places_api_key_expired

i hope can me.

thank you.

the problem solved when noticed google had created .xml file api key , created conflict api put in string.xml


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -