[英]Is there a way to redeem a promo code from within the app?
通过分析Play商店应用,我发现当前版本打开“ Redeem your code”对话框的意图如下:
try {
final Uri redeemUri = Uri.parse("https://play.google.com/redeem");
final Intent redeemIntent = new Intent(Intent.ACTION_VIEW, redeemUri);
startActivity(redeemIntent);
} catch (android.content.ActivityNotFoundException e) {
// Play Store app is not installed
}
请注意,在任何新版本的Play商店中,这可能都会更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.