Android – Google Image Search API Example (JSON Parsing + Web API call demo)

By -



Hello All,

As the title depicts clearly that today i am going to write an article on web API call + JSON parsing and display the parsed response into the custom listview. Please go through this custom listview link if you are not aware about to define custom adapter for ListView.

Let me give you idea about what exactly i have included in this example:

  1. AsyncTask
  2. JSON Parsing
  3. Custom adapter for ListView
  4. Google Image Search web API Call (I have used this links for this example: https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=%22android%22&rsz=8, just check this link, it will return you JSON response with 8 images data, check below image.)

FYI, i have included the ImageLoader.java class from the solution provided by Fedor.

Download full example code: Android – Google Image Search API Example (JSON Parsing + Web API call demo)

Output:

Android - Web API Call + JSON Parsing - 1

Android - Web API Call + JSON Parsing - 1


Android - Web API Call + JSON Parsing - 2

Android - Web API Call + JSON Parsing - 2

Android - Web API Call + JSON Parsing - 3

Android - Web API Call + JSON Parsing - 3

Android - Web API Call + JSON Parsing - 4

Android - Web API Call + JSON Parsing - 4

Paresh Mayani

Paresh Mayani is a lead android developer from India. Currently, He is Sr. Software engineer at InfoStretch Solutions Pvt. Ltd. He has been developing android apps since very 1st version i.e. Android 1.5, he says he has seen days and nights of Android history. He is the Head/Organizer of Google Developers Group (GDG), Ahmedabad

Loading Facebook Comments ...
Loading Disqus Comments ...