Exemple #1
0
        /**
         * Requests to restore all transactions.
         *
         * @param context
         */
        public static void restoreTransactions(Context context)
        {
            long nonce = Security.generateNonce();

            BillingService.restoreTransations(context, nonce);
        }
Exemple #2
0
        /**
         * Requests purchase information for the specified notification. Immediately
         * followed by a call to
         * {@link #onPurchaseInformationResponse(long, bool)} and later to
         * {@link #onPurchaseStateChanged(Context, String, String)}, if the request
         * is successful.
         *
         * @param context
         * @param notifyId
         *            id of the notification whose purchase information is
         *            requested.
         */
        private static void getPurchaseInformation(Context context, string notifyId)
        {
            long nonce = Security.generateNonce();

            BillingService.getPurchaseInformation(context, new string[] { notifyId }, nonce);
        }