This tutorial is awesome!
Ok, I was able to get everything to work, but like many I'm having problems restoring my managed purchases. I'm not worried about piracy at all, so after my purchase is successful I'm just storing with preferences.
However, after reinstalling, when I try to repurchase my item, I get a dialog from the market that says, "Item already purchased, You have already purchased this item, or the purchase is still pending."
I guess the idea is to a) check to see if the user prefs is there and b) if it's not there, before calling
- Code: Select all
BillingHelper.requestPurchase(mContext, "my.item");
do something with?
- Code: Select all
protected static void restoreTransactionInformation(Long nonce)
But how exactly do I do that? All I want to do is check to see if the person has already bought "my.item".
I wish this all worked like this:
- Code: Select all
if (myItemPurchased == true){
//do stuff
}