Android Place Picker closes immediately after launch

后端 未结 14 1362
难免孤独
难免孤独 2020-11-27 04:57

I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inent

14条回答
  •  轮回少年
    2020-11-27 05:54

    In manifest file com.google.android.geo.api_key and com.google.android.maps.v2.API_KEY shouldnot be same.

    go to https://console.developers.google.com/project

    login and follow these steps to get key for placepicker places.

    create or choose existing > use google apis > Google Places API for Android > enable > credentials in left menu > add credentials > api key > android key > create > copy key.

    paste your key at manifest "com.google.android.geo.api_key"

    Note : there is a limit of 1000 requests per day for google places api. after you have to pay money. Better to avoid PlacePicker.

提交回复
热议问题