【发布时间】:2015-01-07 01:07:40
【问题描述】:
我已经在我的应用程序中实现了应用内购买,但我遇到了这个问题
使用 startService 的隐式 Intent 不安全:Intent { act=com.android.vending.billing.InAppBillingService.BIND } android.content.ContextWrapper.bindService:538 com.bulbulapps.bulbul.v3.BillingProcessor.bindPlayServices:106 com.bulbulapps.bulbul.v3.BillingProcessor.:99
我的代码:
getContext().bindService(new Intent("com.android.vending.billing.InAppBillingService.BIND"), serviceConnection, Context.BIND_AUTO_CREATE);
但该行正在生成警告隐式意图与 startService 不安全。
支付弹窗来了,支付也成功了,但是成功后它没有出现在 OnActivity 结果中
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (!bp.handleActivityResult(requestCode, resultCode, data))
super.onActivityResult(requestCode, resultCode, data);
Toast.makeText(getApplicationContext(), "onActivityResult", Toast.LENGTH_LONG).show();
}
我的要求是购买成功后必须办理。
【问题讨论】:
标签: android in-app-purchase in-app-billing