根據This Official Post谷歌將選擇器窗口小部件不工作
我按照以下步驟將選擇器UI對話框,地圖整合。
啓動代碼
PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder();
startActivityForResult(builder.build(this), PLACE_PICKER_REQUEST);
內
if (requestCode == PLACE_PICKER_REQUEST) {
if (resultCode == RESULT_OK) {
Place place = PlacePicker.getPlace(this, data);
tvChooseLocation.setText(place.getName());
}
}
我已經添加的所有權限清單文件
問題是我無法從選擇位置& API_KEY onActivityResult()放置選取器對話框。
選擇按鈕默認情況下禁用。
可能的重複https://stackoverflow.com/questions/39092825/disable-select-button-while-selecting-location-of-anonymous-location-using-place – AndrewR
@AndrewR謝謝,但答案仍未找到。 – Aks4125
你解決了這個問題嗎?我得到相同的行爲 – GEPD