1

I am using place picker API and I didn't understand why it takes time when it is launched for the first time?
After the first run/launch, when we open it for the second time, it works fine.

Here's the code which I've implemented on a button click:

PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
try {
    startActivityForResult(builder.build(ImageStickerActivity.this), PLACE_PICKER_REQUEST);
} catch (GooglePlayServicesRepairableException e) {
    e.printStackTrace();
} catch (GooglePlayServicesNotAvailableException e) {
    e.printStackTrace();
}
s.jain
  • 43
  • 1
  • 9

1 Answers1

-1

s.jain. i find the solution. Actually there is problem in the MAP Api key. if the limit is exceed from 15000 users then place picker can not open and close instantly. change your API KEy.

 <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="Your Api key..." /> 

Add this line of code in manifest file let me know if its work or not

  • this is not a api key issue my place picker work fine but only issue is first time launch. Thank you – s.jain Feb 21 '18 at 09:52