Code example for Handler

Methods: post

0
     * @param itemId a string identifying the item 
     * @param quantity the quantity of items in this purchase 
     */ 
    void postPurchaseStateChange(final PurchaseState purchaseState, final String itemId,
            final int quantity, final long purchaseTime, final String developerPayload, final String purchaseToken) {
        mHandler.post(new Runnable() {
            @Override 
            public void run() { 
                onPurchaseStateChange( 
                        purchaseState, itemId, quantity, purchaseTime, developerPayload, purchaseToken);
            } 
        }); 
    } 
}