Android In-app Purchases: Part 3 – The Final Step
If you’re looking to increase your Android app monetization you might want to learn more about in-app purchases. In the previous articles I talked about the high-level aspects of the topic and the initial steps to the actual implementation using Eclipse with the Android SDK.
Today, I will guide you through the final steps to implement in-app purchases and give you some personal advice about it.
Testing with Dummy Data
Our app currently has a lot of dummy or “static response” data provided by Google. We should ensure the basic code we have created is working correctly before introducing our own SKUs, prices and other variables. You cannot test In-app purchasing/billing using the emulator. You will need to load your app onto an actual device that is running Android version 1.6 or higher. The easiest way to do this is to connect your device to your PC via USB and right click your app in Eclipse and choose “Run As Android Application”. Then click the “Buy” button in your app. If you see the following screen, you are on the right track.