Android 使用 Google 的位置服務對話框 (Android Use Google's location service dialog)


問題描述

Android 使用 Google 的位置服務對話框 (Android Use Google's location service dialog)

我在我的應用程序中使用地理圍欄。如果用戶在第一次設備運行後第一次切換位置,我們會要求他同意谷歌位置。但是如果用戶不同意,地理圍欄的初始化會返回錯誤代碼 1000。

有沒有辦法再次要求從我的應用中使用 Google 位置?

我知道 此任務,但此對話框僅在首次啟動位置設置時啟動。如果用戶拒絕,恕我直言,無法顯示對話框。或者有什麼辦法嗎?

謝謝你的回答


參考解法

(by Michael Drdlíček)

參考文件

  1. Android Use Google's location service dialog (CC BY‑SA 2.5/3.0/4.0)

#google-play-services #google-location-services #Android #android-geofence #location






相關問題

無法從 Android SDK 管理器安裝/下載 SDK (Unable to install/download SDK from Android SDK manager)

google-play-services_lib.jar bị thiếu trong thư mục lib SDK google_play_services (google-play-services_lib.jar missing from SDK google_play_services lib folder)

谷歌播放服務認證(oauth 2.0) (Google play service authentication (oauth 2.0))

在帶有 Android 的 Xamarin Studio 上使用 AdMob,Google Play 服務不存在 (Use AdMob on Xamarin Studio with Android, Google Play Services don't exist)

谷歌登錄使用新的 GoogleSignInOptions 獲取訪問令牌 (Google login get access token with new GoogleSignInOptions)

在組織內分發 Android 應用 (Distribute Android apps within organization)

如何提供啟用 GPS 的選項 (How to give option for enable GPS)

玩遊戲服務,我們能知道我們什麼時候通過另一個hiscore嗎? (Play Game Services, can we know when we pass another hiscore?)

Android 使用 Google 的位置服務對話框 (Android Use Google's location service dialog)

statusCode=SIGN_IN_REQUIRED, resolution=null 只有開發者 ID 可以登錄 else 錯誤 (statusCode=SIGN_IN_REQUIRED, resolution=null Only developer Id can Login else error)

項目中同時擁有 GMS 和 HMS (Have both GMS and HMS in the project)

谷歌cast MediaNotificationService 中的大量RemoteServiceExceptions (Large number of RemoteServiceExceptions in Google's cast MediaNotificationService)







留言討論