简体   繁体   English

如何从Android应用程序内部更改Play商店更新设置

[英]How to change Play Store update settings from inside of an Android app

I would like to change the way Play Store updates my application. 我想更改Play商店更新我的应用程序的方式。 That is, I want to allow users to choose whether to download updates via WiFi or / and mobile network, without having to leave my app. 也就是说,我想允许用户选择是否通过WiFi或/和移动网络下载更新,而不必离开我的应用程序。

Is it possible to change the settings of the Play Store from within my application? 是否可以在我的应用程序中更改Play商店的设置? And if so, how? 如果是这样,怎么办? Is there any type of Intent, that allows me to check and change these settings? 是否有任何类型的Intent,可以让我检查和更改这些设置?

Thanks for the answers! 感谢您的回答!

No, it is not possible to change playstore settings from your application, instead you can send user to playstore settings whenever he wants to change the update settings. 不可以,无法从您的应用程序更改Playstore设置,而是可以在用户想要更改更新设置时将用户发送到Playstore设置。
you can do this by using below code 您可以通过使用以下代码来做到这一点

try {
  Intent intent = new Intent("com.google.android.finsky.activities.SettingsActivity");
  intent.setClassName("com.android.vending", "com.google.android.finsky.activities.SettingsActivity");
  startActivity(intent);
}
catch(Exception e) {
  e.printStackTrace();
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 从 Play 商店下载的应用程序中的语言更改和设置完全被破坏 - Android language change and settings are completely broken inside app downloaded from Play Store 如何从Play商店接收应用更新 - How to receive an app update from Play Store Android Play商店应用更新 - Android Play Store App Update 如何让用户从应用程序内部为Android应用程序评分(无需重定向到Play商店) - How to Let Users Rate an Android App from inside the App (without redirecting to the Play Store) Android kotlin开发的Play商店APP更新检查 - Android APP update check from play store developed by kotlin 我可以强制我的Android应用从Play商店进行更新吗? - Can I force my Android app to update from the Play Store? 如何在 Play 商店中针对特定国家/地区发布 Android 应用更新? - How to release an Android app update for specific countries on Play Store? 如何在 Play 商店中为 Android 生产包实施应用内更新 - How to implement In app Update for Android production bundle in Play Store 如何从Google Play商店更新Cordova Sencha Touch应用程序? - How to update cordova sencha touch app from google play store? 如何检测来自 Play 商店的 expo 应用程序更新? - How to detect update from play store for expo app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM