New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compat - PlacePicker closes immediately after launch #2
Comments
Same issue here |
@CyanDeveloper @cr05s19xx Can you provide error logs? I just tested this on API 25, 26, 27, and 28 with no issue |
No error.. it closes immediatly like "permission denied" issue.. but if I change it with Compat AutoComplete all works well. So, it isn't permissions problem. |
What API version are you using? |
I run it on Samsung S7 with Android 8.0.0 |
There's no crash log in Logcat when this happens? Can you try testing on a more recent API version as well? Would like to see if this is specific to the API version + device or not. I've run this with Android 8.0.0 on a Pixel 2 and it ran without issue. |
@amuramoto ... No log, no crash.. simply closes PP activity returning to MainActivity that show the options to pick a place (PlacePicker, AutoComplete and PlacePhotos).. Is the same behavior as an api error, but without errors.. it close activity immediatly. Anyway, I'll try run it on an emulated device and another physical device, letting you know if works or not. |
Ok thanks - I'm not able to reproduce the error, so it is difficult to help debug at this point |
There is an error being thrown, but my biggest suspect is this error: https://stackoverflow.com/questions/30067210/android-place-picker-closes-immediately-after-launch... I'm not sure why this is happening, especially since the other components work perfectly |
@cr05s19xx Can you share the error being thrown? I don't think the SO issue you pointed to is the root cause (at least not in all cases) since I am able to run the sample without the described behavior. |
Same issue |
With the new SDK, the PlacePicker will only work for API keys that were activated prior to the PlacePicker's deprecation date (January 29, 2019). Or, at least, that's how I interpret the email Google sent me when they announced the new SDK:
So the PlacePicker might not be working for some people while other features do, simply because your API key isn't flagged to use the PlacePicker through the deprecation period. |
This is not true. You have misinterpreted the text of the email. He simply says that in July 2019 the PlacePicker will be removed from their libraries as they have updated them. But currently it is still possible to use it (until July) using the new "compat" library. |
Checking back in on this... Can anyone provide an error log? Also, check that you are calling StartActivityForResult rather than StartActivity |
Closing since we can't replicate and haven't received any error logs |
The problem still exist |
@gavingt You're right ! it worked for me when i tried with my previous API Key of my old Google Developer account. Hope there's a market place for old Google API Keys : ) |
I'm trying to complete the Udacity Advanced Android App Development course and running into the same issue.
Cross-posting to https://stackoverflow.com/questions/30067210/android-place-picker-closes-immediately-after-launch |
any solution ?? already follow stackover that need to enable places api in cloud console. |
You can't use PlacePicker any more. It's been turned off. It's gone forever. |
By installing the demo app ther is an issue on PlacePicker.
CurrentPlace and AutoComplete features works correctly but PP is shown and closed immediately without errors or warnings.
It can't be a API Key issue because 2/3 features works perfectly showing data.
The text was updated successfully, but these errors were encountered: