Question

I'm trying to run the Android Inapp Billing Example but have apparently done something wrong since it doesn't work as intended.

My best clue about what is wrong is that when the market billing pop-up show the title is "Sample application title by Sample Merchant" and since I don't find that text anywhere neither in the code or in the Developer Console I think that my application is attempting to connect to someone else account for payment.

Any ideas what is wrong, I have copied in my "key" into the application as instructed in the description.

Thanks in advance Roland

Was it helpful?

Solution

Yeah,

You're running your app compiled from eclipse so it's being signed with your development key.

You need to sign it with a release key and you need to be sure that in the Security.java file you've set the base64EncodedPublicKey to your android market public key (available under the Edit Profile link in the android market app).

So steps are:

  1. Make sure you put your public key into the Security.java file
  2. Export a release build of your application
  3. Run adb install YOURAPKNAME to put your application on the phone

Then you will see the sample app pop up listing your application title and you as the merchant + you will be able to make real purchases.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top