Here is my code, I would like to ask some questions as I talk to this whole service receiver completely New.
This works fine, I get a checkout, I buy, Google says that I will get my item soon.
My question is, if the handler closes after the application closes, or after that activity, then my app will still get notification, and gems can be updated?
Any hint or clue helps me better understand it will be awesome = D
I checked and my service is still running in the background, so it is good: ) But is it taking forever to update, or get anyone know? Then I came to know that I was not receiving my call because I installed the handler In addition to forgotten handler, it seemed that activity was updated outside, and too soon. The app has been closed before its update, but will it still be updated?
button bPurchase = (for buttons) SearchVBIID (RID BP purchase); BPurchase.setOnClickListener (New View.OnClickListener) {Public Zero onClick (see v) Confirm {check box = (checkbox) findViewById (R.id.bConfirm);; (confirm.isChecked ()) {Toast message = Toast .makeText (PurchaseActivity.this, "Check Confirmation Box", Toast.LENGTH_SHORT); msg.setGravity (Gravity.CENTER, msg.getXOffset () / 2, msg.getYOffset () / 2); msg.show () ; Return;} if (BillingHelper.isBillingSupported ()) {BillingHelper.requestPurchase (mContext, "android.test.purchased"); // android.test.purchased or android.test.canceled or android.test.refunded} else { Log.i ("", "can not be purchased on this device");}}}); } Public handler mTransactionHandler = new handler (public) void handleMessage (android.os.Message msg) {Log.i ("", "Transaction complete"); Logs. I ("", "Transaction Status:" + Billing Wheelers. Latest Shopping Purchase Chestets); Log.i ("", "The item is an attempted purchase:" + billinghalar.litest shopping.product id); If (Billing Helper.Lestest purchase was purchased ()) {long g = jamupgrade.jetgames (); G = G + 1000; GemUpgrades.setGems (g); Toast msg1 = toast. Make text (purchase activity, "get", toast. LNNHHHRT); Msg1.setGravity (Gravity.CENTER, msg1.getX ostate () / 2, msg1.getYOffset () / 2); Msg1.show (); } Else {// Failure}}; }; "Text" itemprop = "lesson">
Comments
Post a Comment