![](/img/trans.png)
[英]how to solve Android Place Autocomplete intent issue?
我正在嘗試在我的應用程序中使用 google Place Autocomplete 。 如文檔中所述,有兩種使用此功能的方法:一種使用片段,另一種方法是使用 Intent,這就是我選擇的方法。 我的代碼如下 Gradle: Kotlin: 第1部分 第2部分 疊加的“Place Auto Com ...
[英]how to solve Android Place Autocomplete intent issue?
我正在嘗試在我的應用程序中使用 google Place Autocomplete 。 如文檔中所述,有兩種使用此功能的方法:一種使用片段,另一種方法是使用 Intent,這就是我選擇的方法。 我的代碼如下 Gradle: Kotlin: 第1部分 第2部分 疊加的“Place Auto Com ...
[英]Implementing Google places autoComplete textfield implementation in jetpack compose android
有人在 Jetpack Compose 項目中實現了谷歌自動完成建議文本字段或片段嗎? 如果是這樣的話,請指導或分享代碼片段,因為我在實施它時遇到了困難。 更新這是我觸發打開全屏對話框的意圖,但是當我開始在其中輸入時它會關閉,而且我無法弄清楚問題是什么並且需要有關處理活動結果以供閱讀的線索此 com ...
[英]How can a ViewModel function access the Place instance returned by PlaceSelectionListener of AutocompleteSupportFragment?
我正在使用 Kotlin 構建一個 Android 應用程序。 我有一個包含create_button的布局。 當用戶單擊按鈕時, onClick應該在我的 ViewModel 中調用onCreateJourney() 。 此 function 需要selectedPlaceId參數來更新 Jou ...
[英]How to add place options for mapbox placeautocomplete
我正在嘗試使用塞爾維亞的自定義語言和國家/地區構建自定義 PlaceAutocomplete。 我收到有關可打包數據的錯誤,但我很長時間都找不到解決方案。 因為我使用 MapBox,所以一切都很簡單,並且有完整的文檔,但是對於 PlaceOptions,他們的網站上沒有任何內容。 我以為 P ...
[英]com.google.android.gms.location.places.ui.placeautocompletefragment is deprecated
placeautocompletefragment已棄用。 我需要一個替代代碼。 這是代碼示例 ...
[英]Not able to remove search button in Auto complete Fragment in android
我正在使用自動完成片段使用谷歌位置搜索位置它工作正常。 現在我想刪除在代碼下面使用的搜索圖標,但顯示一個錯誤。 代碼和錯誤文本如下。 代碼示例 xml : 錯誤文本 錯誤:找不到符號變量 place_autocomplete_search_button 我還想更改自動完成片段的 ...
[英]Error getting autocomplete prediction API call: com.google.android.gms.common.api.ApiException: 9003: PLACES_API_ACCESS_NOT_CONFIGURED
我的 placeautocomplete 適配器不工作,我已經添加了 api 密鑰,計費也被批准了。 每當我點擊搜索一個地方時,它都會給我一個錯誤 ApiException:9003 並且 logcat 指向下面顯示的“PlaceAutocompleteAdapter.java”。 公共類 Pla ...
[英]Cannot Resolve Symbol "Place.Field"
我正在嘗試遷移新的 Auto Complete Place Picker 我已將庫從"com.google.android.gms:play-services"為新的"com.google.android.libraries.places:places-compat:2.0.0"和實施Support ...
[英]Android Google Place API Error Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}
您好,我遇到了Google Place API錯誤 根據Google的新政策“棄用通知:適用於Android的Places SDK的Google Play服務版本” 注意:Android的Google Play服務版本的Places SDK(在Google Play Servi ...
[英]Type mismatch. Required: Fragment, Found: PlaceAutocompleteFragment
我碰到一個 重復的ID,標簽null或父ID,以及placeAutocompleteFragment的另一個片段 誤差,所以我也跟着此溶液 ,試圖通過經由使用一個片段交易添加placeAutocompleteFragment修復它childFragmentManager ...
[英]Android Place Autocomplete Fragment: Unable to set text
谷歌最近更新了他們的安卓版 Places SDK,所以現在我也在更新我的代碼。 我正在嘗試使用AutocompleteSupportFragment來允許用戶設置他們的地址。 這是我的代碼: 在之前的 SDK 中,片段會自動將文本設置為所選地址。 這在新的 SDK 中不起作用(不確定這是否是故 ...
[英]PlaceAutocompleteFragment - null cannot be cast to non-null type (Kotlin)
我正在嘗試通過遵循此處的官方文檔將位置自動完成片段添加到我的片段中 我收到錯誤kotlin.TypeCastException: null cannot be cast to non-null type com.google.android.gms.location.places.ui.P ...
[英]Use place autocomplete for place picker
我正在與Android中的placepicker一起選擇一個地點並獲取有關該地點的詳細信息。 內置了用於位置選擇器活動的placeautocomplete片段。 當我們在此處提供任何地址時,它將直接選擇該位置並確認對話框出現,我不希望我希望我的位置圖標(相機)轉到該位置,然后用戶選擇未知位置 ...
[英]Get access to SupportPlaceAutocompleteFragment result listener
當通過以下方式選擇片段中的地址時,Google SupportPlaceAutocompleteFragment具有偵聽器: autocompleteFragment.setOnPlaceSelectedListener 但是,僅當關閉結果覆蓋並處理該結果時,該方法才有效。 我的目標是在 ...
[英]Add personal locations to Google Placeautocomplete list
有沒有辦法將地址固定到 Android 應用程序的 placeautocomplete 搜索的頂部? http://jsfiddle.net/v9rt3t2y/ ...
[英]NullPointerException while changing hint of PlaceAutoCompleteFragment
在我的一個片段中,我實現了PlaceAutocompleteFragment,如下所示: 最后兩行是我嘗試更改搜索欄中的提示文本。 但是,當我添加它們時,出現了異常 我也嘗試了placeAutocompleteFragment.setHint()。 我應該如何去代替setHi ...
[英]PlaceAutocompleteFragment on click first time getting only focus
使用自定義布局的PlaceAutocompleteFragment時遇到麻煩。 第一次單擊時,它只是獲得焦點,而第二次單擊時,它會彈出。 我在片段類里面使用過。 這是上傳視頻的鏈接。 我在自定義布局上使用了EditText 。 這是演示視頻 MainFragment.class ...
[英]Google Place Api: Requests from this Android client application com.package.name are blocked
我正在使用PlaceAutocompleteFragment ,當我單擊搜索字段PlaceAutocompleteFragment對話框消失時,出現此錯誤: {“錯誤”:[{“域”:“全局”,“原因”:“禁止”,“消息”:“此Android客戶端應用程序com.ganger.packa ...
[英]get Direction and get path android studio
我試圖從自動完成形式中選擇一個地方,並為其繪制了一條路徑,當我從自動完成中選擇一個地方時,應用程序崩潰了。 請看 ---------崩潰開始 E / AndroidRuntime:致命例外:主進程:com.saoutimohamed.tewsila,PID:5924 java. ...
[英]No resource found that matches the given name (at 'background …') when add placeautocomplete compile
我有一個問題。 當我為PlaceAutocomplete添加編譯時,我的項目給出了一個錯誤 這是我的app.gradle: app.gradle 顯示的錯誤如下: 錯誤 錯誤在多個文件中,其中之一是: 錯誤線 當我構建項目時,將生成此文件。 我 ...