/**
  * This is called when we receive a response code from Android Market for a
  * RequestPurchase request that we made.  This is used for reporting various
  * errors and also for acknowledging that an order was sent successfully to
  * the server. This is NOT used for any purchase state changes. All
  * purchase state changes are received in the {@link BillingReceiver} and
  * are handled in {@link Security#verifyPurchase(String, String)}.
  * @param context the context
  * @param request the RequestPurchase request for which we received a
  *     response code
  * @param responseCode a response code from Market to indicate the state
  * of the request
  */
 public static void responseCodeReceived(Context context, RequestPurchase request, Consts.ResponseCode responseCode)
 {
     if (sPurchaseObserver != null)
     {
         sPurchaseObserver.onRequestPurchaseResponse(request, responseCode);
     }
 }
Beispiel #2
0
 public void onRequestPurchaseResponse(RequestPurchase request, Consts.ResponseCode responseCode)
 {
     Toast.MakeText(m_activity, string.Format("Request response code: {0}", responseCode.ToString()), ToastLength.Long).Show();
 }
		/**
		 * This is called when we receive a response code from Android Market for a
		 * RequestPurchase request that we made.  This is used for reporting various
		 * errors and also for acknowledging that an order was sent successfully to
		 * the server. This is NOT used for any purchase state changes. All
		 * purchase state changes are received in the {@link BillingReceiver} and
		 * are handled in {@link Security#verifyPurchase(String, String)}.
		 * @param context the context
		 * @param request the RequestPurchase request for which we received a
		 *     response code
		 * @param responseCode a response code from Market to indicate the state
		 * of the request
		 */
		public static void responseCodeReceived(Context context, RequestPurchase request, Consts.ResponseCode responseCode) 
		{
			if (sPurchaseObserver != null)
				sPurchaseObserver.onRequestPurchaseResponse(request, responseCode);
		}
		public void onRequestPurchaseResponse(RequestPurchase request, Consts.ResponseCode responseCode)
		{
			Toast.MakeText(m_activity, string.Format("Request response code: {0}", responseCode.ToString()), ToastLength.Long).Show();
		}