What's the best way to organize selling extra content in app?

Hello,

So I’m setting up my game so I can sell extra levels. I’ve been through the android developer publisher web pages and I’m using prime31 plug in to make it easier. I think I understand the process involved in initiating the purchase, brining up the android market place screen and confirming the purchase, but I’m not sure what is meant to actually happen when the user purchases the additional content. Ideally I’d like it to be really flexible so that purchasing could do any or some of the following:

Unlock some feature which shipped in the original APK but was locked.
Add additional data files to the existing APK. These could be XML or PNG, WAV etc
Replace the entire APK with a new one

I don’t know how to go about doing any of the above so any advise would be most appreciated. The docs don’t seem to talk about this at all. Can anyone with experience of doing this tell me what is supposed to happen?

BTW I just set up the PRIME32 Mobclix plugin and it works great.

regards,

Tony

OK I think I’ve answered my own question. Basically, as far as I can gather, it’s entirely up to the developer to handle the result of a successful purchase.

this link explains the flow better than I can: نظام الفوترة في Google Play  |  Google Play's billing system  |  Android Developers

Once the application gets the confirmation that the purchase has been successful then it’s up to the app to handle the actual work involved in the situations I’ve described in my original post. So here’s my naive take on how things might work.

In the case of unlocking a feature which shipped with the original APK I’ll have a variable in the persistent data which is initially false but gets set to true when the user purchases that content. That seems simple enough?

In the case of downloading additional levels. Well it seems like I’d need to set up some sort of data server which can send data to the application when it requests it and stores it with the application. I’ve no idea how to do that and if someone could tell me it would be great
In the case of replacing the entire install I’m not sure if that is possible? Again someone could possibly tell me.

For now I’ll just go with the easy first option as I’m pretty sure I can code that already and it seems pretty simple :slight_smile:

Just watch out for lodsys: