This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The original sample is from here: http://syntx.io/how-to-send-an-http-request-from-android-using-httpurlconnection/ | |
//Deprecated funcitons and non-working code are modeifed. | |
//For more reference, please visit: http://developer.android.com/reference/java/net/HttpURLConnection.html | |
//I am using Google Books APIs for this sample. | |
//The returned book objects might have different format according to the language/country. (The second book obejct in data.json is the Japanese version) | |
//execute the AsyncTask some place in the UI thread | |
//new CatalogClient().execute("https://www.googleapis.com/books/v1/mylibrary/bookshelves/3/volumes?country=US"); | |