Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8126719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:15:05+00:00 2026-06-06T07:15:05+00:00

Now I managed to sign the apk (using Eclipse Android Tools) and adb install

  • 0

Now I managed to sign the apk (using Eclipse Android Tools) and adb install .. to the device for testing.

But this removed the debug function, e.g. “step over” which make problem tracing much more difficult.

Is it possible to debug the inapp billing using Eclipse?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:15:06+00:00Added an answer on June 6, 2026 at 7:15 am

    When you go through the in app billing documentation, you kinda realize that it can take substantial amount of time to understand this complex piece of technology. Most developers feel the need for a working HelloWorld, and then later play around with the builds.

    I have uploaded 2 projects

    1. The android sample project. You can download this project, and immediately run the sample. This will help you quickly debug/trace thru and figure out how the in app billing works.

    2. A cleaned up project to help you integrate your app quickly. This can help like a library. Just integrate make your “purchase requests” on your “checkout” button action.

    Mind you : I have not incorporated the security recommendations. Read android in app billing documentation. Until then you are on your own risk.

    For 1

    • Download “http://www.4shared.com/file/f5wH3qke/InAppBilling1.html”
    • Create a new gmail account for all correspondence (Why, I will explain below)
    • Pay that 25$ and purchase a “Market Place” account.
    • Import the project to your eclipse environment
    • Create a signed application apk, File-Export-Select Your Project-Create OR Use keystore, it should be valid for 25 years from today.
    • Upload the signed apk to the market place as a “Draft Application”, DO NOT PUBLISH it.
    • For the uploaded apk, you need to add “In App Products”. You will find this link on the home page for your uploaded apk.
    • In Security.java dont forget to add your “public key” from your market place account “edit profile” page.
    • On the “In App Product List”, you need to add the following products one by one
      • The text below should used as “In app Product id”
      • sword_001 as Managed
      • potions_001 as Unmanaged
      • Title and Description dont matter (for testing purpose). Add what you need here.
      • Cost add 1$ (minimum)
    • Click auto fill
    • Save

    Publish the in app project (dont get confused here, you only need to publish the in app product, NOT the APP)

    • In the test account, add your personal gmail id here. Now, this gmail account needs to be configured as your first gmail account on your phone.
    • Yes, this WONT work on your emulator
    • Now the sample app should work.

    For 2

    Download “http://www.4shared.com/file/h8YnJyf_/InAppBillingIntegration.html”

    To integrate, in your calling activity initialize the checkout code

    Handler handler = new Handler() ;
    CheckoutPurchaseObserver checkout = new CheckoutPurchaseObserver(this, handler);
    

    To send the checkout request for your product

    checkout.sendCheckoutRequest(purchaseUri.toString(),null);
    

    Important Note :

    • This purchaseUri is the “In-app Product ID” of your resource on the “market.android.com/publish–>Create New In-App Product” options. This string should be set as the “in app product” id.
    • That’s why the “id” is most important. The “In-App Product ID” is how you refer to that particular product.
    • Also, in Security.java dont forget to add your “public key” from your market place account “edit profile” page.**

    Debugging Notes

    • LogCat will show all errors as InAppBilling tag
    • This project creates a shared_preferences named “inappbilling” And debug is set to true
    • The androidmanifest.xml may not be needed since this project does not
      have a home screen.

    Why do we need to create a new gmail account ?

    Simple. The account you purchase your market place account for, cant be used for “testing” your in app billing. Since you cannot purchase products for yourself. And your primary account on your device should be set as a “test account” on the market place account. Chicken-Egg issue here. Hope its clear.

    An interesting blog I came by “http://crazyviraj.blogspot.com/2011/06/some-notes-on-implementing-in-app.html“ (not mine).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using an applet and I don't want to sign it right now
Hi I have now managed to write my macro but the whole thing stops
I'm just started doing 'hands-on' learning of Actionscript 3 using FlashDevelop. I've now managed
I managed to create a secondary Activity, but now I wonder how I can
I finally managed to obfuscate my Android application, now I want to test it
I managed to detect when I swipe a certain image. Now I want the
I've managed to setup sonata admin/user/doctrineormadmin bundle with many many problems. Now it is
Is there a managed system-level sequential number generator? DateTime.Now.Ticks won't do because the operations
I've worked myself through the rapidXML sources and managed to read some values. Now
Now this isn't a question as to which of the technologies is better, since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.