I am making an Android app based on in app purchase. In my app I have a sample video and if a user wants to buy it, I want to make an in app purchase through Android Market site.
I went through the steps in Downloading the Sample Application.
I downloaded the sample app and I tried to use it for checking purpose. I added my public key of my market account and added the video name I have to show to the user. In my market account, in the in app product list I added the details of my video title, description, product id.
In the developer site I found the following line:
Do not publish the sample application; leave it as an unpublished draft application.
The sample application is for demonstration purposes only and should not be made publicly available on Android Market.
When I run the app and click the buy button an alert box gets appeared saying that
“The Item that you requested is not available for purchase”.
at last i found my mistake with the help of a sample app. The in app product id which is given in the market account must be given in two places of the app. In the
CatalogEntry[] CATALOG and in the strings.xml file the ids entered must be the same.i have given the same id in Catalog entry but not in the strings.xml filenow the in app products gets listed out correctly.