13. In-App Billing

Creating applications that have the ability to up-sell, allow the purchase of items, or add functionality can fill an important role in the application’s marketing strategy. Most users are familiar with “pay-to-win” strategies as well as “gifting” systems. Pay-to-win systems often allow users to download the application for free but penalize them with lesser power-ups or limited playing time unless they purchase upgrades. Gifting systems work on a similar principle, allowing users to purchase items for others instead of powering up themselves.

Until recently, Google did not have an official support system in place for these models for the Android Platform, and developers had to create their own system or integrate with third ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.