Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid in-app purchase - RESULT_ITEM_UNAVAILABLE
    primarykey
    data
    text
    <p>I'm trying to integrate Android Market in-app purchases into my app, but unfortunately coming across an annoying error every time I try to purchase a test product.</p> <p>I've taken the sample application (Dungeons) and added it to my app. I've updated the Public Key and also updated the list of products to the following:</p> <pre><code>/** An array of product list entries for the products that can be purchased. */ private static final CatalogEntry[] CATALOG = new CatalogEntry[] { new CatalogEntry("lemonstorm.huru.full", "Full v", Managed.MANAGED), new CatalogEntry("android.test.purchased", "purchased",Managed.UNMANAGED), new CatalogEntry("android.test.canceled", "cancelled",Managed.UNMANAGED), new CatalogEntry("android.test.refunded", "Refunded",Managed.UNMANAGED), new CatalogEntry("android.test.item_unavailable", "unavailable",Managed.UNMANAGED) }; </code></pre> <p>I've exported the application using Eclipse, and installed it on my phone and also uploaded it to the Android Market website. Also on the Android Market website I've added lemonstorm.huru.full as an in-app purchase and published it.</p> <p>I've also added my googlemail account as a testing account (that is the one I'm signed into on my phone).</p> <p>When I run the application on my phone I get a RESULT_ITEM_UNAVAILABLE message whenever I try to buy lemonstorm.huru.full, but if I try for example, android.test.purchased, it works absolutely fine.</p> <p>The documentation for RESULT_ITEM_UNAVAILABLE states the following:</p> <blockquote> <p>Indicates that Android Market cannot find the requested item in the application's product list. This can happen if the product ID is misspelled in your REQUEST_PURCHASE request or if an item is unpublished in the application's product list.</p> </blockquote> <p>The product ID is definetely the same, it's definetely published and the request must be going through ok as it's the sample application and it worked for android.test.purchased</p> <p>Any thoughts would be appreciated!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload