Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.net.Uri;
import android.util.Log;

public class Main {
    private static String url = "https://www.googleapis.com/books/v1/volumes?";

    private static String getUrl(String search) {

        Uri builtUri = Uri.parse(url).buildUpon().appendQueryParameter("q", search)
                .appendQueryParameter("maxResults", "20").build();
        Log.d("DEBUG", builtUri.toString() + ". Search = " + search);
        return builtUri.toString();

    }
}