I reused the code from the Google PlaceAutocomplete project example from the Android team.
I used different keys for each project (Google Places for Android is also included in the Google console).
When I create and run a sample project, it works without problems.
However, when I run it from my application, sometimes it works, sometimes I got an unknown status code: 9000 (from status.toString ()).
I got this on the console:
04-08 01:15:39.331 16148-10791/? W/Places﹕ fa:633: gLocReplyElement unsuccessful status: 1 04-08 01:15:39.332 16148-10791/? W/Places﹕ fa:660: gPlaceQueryResult unsuccessful responseCode: 26 04-08 01:15:39.339 10558-11608/com.travelapp.karet W/karet﹕ Error getting autocomplete prediction API call: Status{statusCode=unknown status code: 9000, resolution=null}
This is very strange, so when I type s, I (start offering places), n, g. Therefore, when I reached the fourth letter, I sometimes got this error.
So the only part that was different was just the int clientId value that I passed to mgoogleApiClient.enableAutoManage ()
The sample project uses 0, while my project uses 9993938838939 (random number). -I'm not sure what value I should put here (he rejected a number that is already in use by another application)
Also, the codes were not different (only I put the googleclient variable in Activity, but the actual implementation of Autocomplete on the fragment)
Please, help.