I am using a amazon apps with my android apps.
PurchasingManager.initiateItemDataRequest(skuKye); is defined the error like skuKye is string.U have to convert it into the set data type.
Please guide me
I am using a amazon apps with my android apps.
PurchasingManager.initiateItemDataRequest(skuKye); is defined the error like skuKye is string.U have to convert it into the set data type.
Please guide me
The initiateItemDataRequest method requires a Set<String> containing the SKUs for the request. If you have only one SKU, you should be able to call it this way:
Set<String> skuSet = new HashSet<String>();
skuSet.add(skuKye);
PurchasingManager.initiateItemDataRequest(skuSet);
skuSet. The code in your comment looks okay to me. Which line exactly has the syntax error? Did you import Set and HashSet from java.util? (Perhaps you can edit your question and post the exact code, formatted for readability. Also post a few lines around it, in case a nearby syntax error is causing the message.)