【问题标题】:Android in-app billing v3Android 应用内结算 v3
【发布时间】:2014-06-04 04:21:39
【问题描述】:

美好的一天!

我正在为我的应用实施应用内结算 v3。我遵循了 android 教程中的所有步骤,但它显示“找不到应用程序”

我将 apk 文件上传到 Alpha 版本。 创建的产品列表。 我在测试人员名单中。 包名相同。

    super.onCreate(savedInstanceState);
    bindService(new 
            Intent("com.android.vending.billing.InAppBillingService.BIND"),
                    mServiceConn, Context.BIND_AUTO_CREATE);

    case R.id.ss_next:
        startService(new Intent(this, service_test.class).setFlags(3));

        break;
    case R.id.d_bok:
        stopService(new Intent(this, service_test.class));
        ArrayList<String> skuList = new ArrayList<String> ();
        skuList.add("premiumUpgrade");
        skuList.add("gas");
        Bundle querySkus = new Bundle();
        querySkus.putStringArrayList("ITEM_ID_LIST", skuList);
        try {
            Bundle buyIntentBundle = mService.getBuyIntent(3, "",
                    "25coins", "i", "b");

            PendingIntent pendingIntent = buyIntentBundle.getParcelable("BUY_INTENT");
            startIntentSenderForResult(pendingIntent.getIntentSender(),
                       1001, new Intent(), Integer.valueOf(0), Integer.valueOf(0),
                       Integer.valueOf(0));
        } catch (RemoteException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (SendIntentException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

提前致谢!

【问题讨论】:

  • 当您下载应用程序时会发生这种情况
  • @Pawanasati 你能澄清一下吗?
  • techotopia.com/index.php/… 我使用了这个链接,它也可以在测试帐户上正常工作
  • 什么时候上传??需要一个小时
  • @Pawanasati 我按照教程进行操作,它适用于谷歌测试产品,但不适用于我的

标签: android google-play payment in-app-billing


【解决方案1】:

你必须在你的 AndroidManifest.xml 中设置:

<!-- VERY IMPORTANT! Don't forget this permission, or in-app billing won't work. -->
<uses-permission android:name="com.android.vending.BILLING" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-15
    • 1970-01-01
    • 2011-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多