Gson Demo
This repository demonstrates working of Popular JSON processing Library Gson.
This app Connects to Youtube API and fetch Channel Video List and shows details in a Custom Listview.
To include Library in Project we have added
compile 'com.google.api-client:google-api-client-gson:1.21.0'
to build.gradle file in the App folder.
The project contains Four Classes
- MainActivity.java: Main Activity file of the Application.
- CustomListAdapter: Adapter class extending BaseAdapter for custom ListView
- Utility: Class containing helper functions.
- YoutubeResponse: Class which gets mapped to the Youtube API response. We are using GSon Library to do the Mapping.
The project has only one Activity the MainActivity with a TextView and a Button for searching channel data based on channel ID entered in TextView.
App Permissions
App uses only android.permission.INTERNET
permission.