我正在尝试为 Amazon App Store 设置应用内购买,但在尝试请求商品数据时遇到了问题。我在 Kindle Fire 上调试。这是我的代码和我在 LogCat 中看到的内容:
@Override
public void onStart() {
super.onStart();
PurchasingManager.registerObserver( new AmazonPurchasingObserver( getActivity() ) );
PurchasingManager.initiateItemDataRequest( SKU_SET );
}
LogCat 输出:
05-21 10:46:30.399: D/PurchasingManager(10474): In App Purchasing SDK - Sandbox Mode: PurchasingObserver registered: com.myapp.android.service.amazon.AmazonPurchasingObserver@406129f0
05-21 10:46:30.407: D/SandboxRequestHandler(10474): In App Purchasing SDK - Sandbox Mode: sendItemDataRequest
05-21 10:46:30.423: W/ActivityManager(1409): Unable to start service Intent { act=com.amazon.testclient.iap.itemData flg=0x10000000 (has extras) }: not found
因此,如果 Kindle 还没有针对上述意图的服务,那么在哪里com.amazon.testclient.iap.itemData
?