android - 如何获取 Google Play 商店区域设置

标签 android google-play-services

我知道Google Play商店通过IP地址、帐户信息来确定其位置。但有没有办法获取 Google Play 商店正在使用的区域设置?

最佳答案

如果您从 Google Play 商店获取应用内可购买商品,它们将具有一个price_currency_code,即“价格的 ISO 4217 货币代码”。例如,如果价格以英镑指定,则price_currency_code 为“GBP” “。”

我认为,如果不向 Google Play 查询可用产品(并返回至少一种产品),就无法获取此信息。

更多信息请访问 Google's API documentation .

关于android - 如何获取 Google Play 商店区域设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19288379/

相关文章:

android - 如何使用 Google Play Services 6.5 粒度依赖管理

android - 使用按钮在布局/Activity 之间切换

Android 自定义 ArrayAdapter 不停留在滚动条上

android - 在项目中添加 BlurringView

android - 可绘制到字节[]

android - 我想添加实现 'com.google.android.gms:play-services-maps:17.0.0' ,但显示消息错误

java - 将布局分成两部分?

android - 为什么 LocationSettingsResult startResolutionForResult 不调用 onActivityResult?

android - google play services 8.3.0 - 获取 g+ 封面图片(已弃用 Plus.PeopleApi.getCurrentPerson() )

android - 在 Android 中使用注册 ID 从 GCM 注销设备