I have finished this feature in my app. You should follow these steps to do
it:
1. Upload app to market with your real id list
2. Purchase some of them
3. Re install to run restore transaction
4. All response from server will display in this function (NOTICE: even
restore transaction or after purchase)
@Override
public void onPurchaseStateChange(PurchaseState
purchaseState,
String itemId, int quantity, long purchaseTime, String
developerPayload) {
Log.e(TAG, "onPurchaseStateChange" + itemId + " - ");
if (Consts.DEBUG) {
Log.e(TAG, "onPurchaseStateChange() itemId: " + itemId + " "
+ purchaseState);}
}
//Do everything here: update database......
}
About restore transaction:
@Override public void
onRestoreTransactionsResponse(RestoreTransactions request,
ResponseCode responseCode) {}
It just noticed for user know restore ok
If you have any question, Contact me: [email protected]
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en