Code example for Bundle

Methods: putIntputLongputString

    public boolean isSuccess() { 
    	return success;
    protected Bundle makeRequestBundle() {
        final Bundle request = new Bundle();
        request.putString(KEY_BILLING_REQUEST, getRequestType());
        request.putInt(KEY_API_VERSION, getAPIVersion());
        request.putString(KEY_PACKAGE_NAME, packageName);
        if (hasNonce()) { 
    		request.putLong(KEY_NONCE, nonce);
        return request;
    public void onResponseCode(ResponseCode responde) {
    	// Do nothing by default 
    protected void processOkResponse(Bundle response) {    	
    	// Do nothing by default 
    public long run(IMarketBillingService mService) throws RemoteException {
        final Bundle request = makeRequestBundle();
        final Bundle response;
        try { 
            response = mService.sendBillingRequest(request);        	
        } catch (NullPointerException e) {
    		Log.e(this.getClass().getSimpleName(), "Known IAB bug. See:", e);
        	return IGNORE_REQUEST_ID;        	
Connect your IDE to all the code out there  Get Codota for Java