<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Android-app-using-Kotlin%2FC3%2FDisplay-Search-Result%2FEnglish-timed</id>
		<title>Android-app-using-Kotlin/C3/Display-Search-Result/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Android-app-using-Kotlin%2FC3%2FDisplay-Search-Result%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Android-app-using-Kotlin/C3/Display-Search-Result/English-timed&amp;action=history"/>
		<updated>2026-05-31T00:08:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Android-app-using-Kotlin/C3/Display-Search-Result/English-timed&amp;diff=54017&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot; {| border=1 | '''Time''' | '''Narration'''  |- | 00:01 | Welcome to the''' Spoken Tutorial''' on''' Display Search Result.'''  |- | 00:06 | In this tutorial we will learn to...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Android-app-using-Kotlin/C3/Display-Search-Result/English-timed&amp;diff=54017&amp;oldid=prev"/>
				<updated>2020-10-13T10:40:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {| border=1 | &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; | &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- | 00:01 | Welcome to the&amp;#039;&amp;#039;&amp;#039; Spoken Tutorial&amp;#039;&amp;#039;&amp;#039; on&amp;#039;&amp;#039;&amp;#039; Display Search Result.&amp;#039;&amp;#039;&amp;#039;  |- | 00:06 | In this tutorial we will learn to...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{| border=1&lt;br /&gt;
| '''Time'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Welcome to the''' Spoken Tutorial''' on''' Display Search Result.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:06&lt;br /&gt;
| In this tutorial we will learn to&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:09&lt;br /&gt;
| Use '''RecyclerView''' to display the thumbnail of videos&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:14&lt;br /&gt;
|Get the thumbnail from a specific '''Spoken Tutorial YouTube URL'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:20&lt;br /&gt;
|Pass the '''videoID''' of the selected '''Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:25&lt;br /&gt;
|Run the '''Kotlin''' '''App '''and  Display the thumbnail of the selected video&lt;br /&gt;
|-&lt;br /&gt;
| 00:31&lt;br /&gt;
| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:34&lt;br /&gt;
| '''Ubuntu Linux 16.04''' operating system &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:38&lt;br /&gt;
| '''Android Studio''' version 3.x and&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:42&lt;br /&gt;
| '''Android Phone '''with minimum of '''Android''' OS version '''4.03'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:49&lt;br /&gt;
| To follow this tutorial, you should have basic knowledge of&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:53&lt;br /&gt;
| '''Java programming language '''and  '''Android Studio '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:57&lt;br /&gt;
|If not, then go through the relevant tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:02&lt;br /&gt;
| Earlier, we '''parsed''' the '''JSON data''' received from the '''server'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:07&lt;br /&gt;
| The '''data''' is stored in an '''arraylist finalResultsArrayList'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:12&lt;br /&gt;
| We will use this '''arraylist''' to display the searched result to the user&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:17&lt;br /&gt;
| Let us open '''Android Studio'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:20&lt;br /&gt;
| Open the project''' ST Search.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:24&lt;br /&gt;
| Go to '''activity underscore second dot xml'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:29&lt;br /&gt;
| We will use the tool '''RecyclerView''' to display the thumbnail of videos.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01:35&lt;br /&gt;
| In the '''Palette''' search box, type '''RecyclerView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:39&lt;br /&gt;
| Then drag the '''RecyclerView''' to the layout.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:43&lt;br /&gt;
| '''Add project Dependency''' pop up box appears.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01:47&lt;br /&gt;
| Click on '''Ok''' button to accept the dependency.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:52&lt;br /&gt;
|Wait until the '''Gradle build''' is finished.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:56&lt;br /&gt;
|  '''RecyclerView '''recycles''' '''the visible views on the screen to show new views.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:02&lt;br /&gt;
| When we scroll, it will use the same place to display new images.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:08&lt;br /&gt;
| This way '''RecyclerView''' is efficient and faster.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:13&lt;br /&gt;
| Let us switch back to '''Android Studio''' interface.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:18&lt;br /&gt;
| In the '''Attributes''' window, type '''videos underscore recyclerview''' in the '''ID''' field.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:26&lt;br /&gt;
|Join the top '''constraint''' of '''RecyclerView '''to the bottom of the '''Selectedoption TextView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:33&lt;br /&gt;
|Align the other '''constraints''' of '''RecyclerView''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:39&lt;br /&gt;
| Change its '''layout width''' and '''layout height attribute''' to '''match constraint '''&lt;br /&gt;
|-&lt;br /&gt;
| 02:45&lt;br /&gt;
|It helps to adjust the space occupied by the '''RecyclerView'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:50&lt;br /&gt;
| Next we will create our own custom layout file which will be used to fill a single item of '''RecyclerView'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:58&lt;br /&gt;
| On the top left panel, under '''project''', go to '''app.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:03&lt;br /&gt;
|Right-click on '''App''' then select '''New ''' '''XML ''' and  '''Layout XML File'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:11&lt;br /&gt;
|'''Configure Component '''window appears.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:14&lt;br /&gt;
|In the '''Layout File Name,''' type '''my underscore customlayout '''and click on '''Finish '''button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:24&lt;br /&gt;
| A new file '''my underscore customlayout dot xml '''is created'''.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:30&lt;br /&gt;
|In this we will create a custom '''view''' for the '''RecyclerView'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:35&lt;br /&gt;
| In the '''Component Tree '''panel, we already have '''LinearLayout''' as '''root''' in the '''layout''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:42&lt;br /&gt;
|The '''LinearLayout''' will stack the items either horizontally or vertically.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:48&lt;br /&gt;
| First, let us set the '''layout  height '''of '''LinearLayout''' to '''wrap content''' in the '''Attribute '''panel.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:56&lt;br /&gt;
|'''wrap content '''will expand or shrink according to the space required while adding the tools.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:04&lt;br /&gt;
|After this, the '''LinearLayout''' will only occupy height as much as it is required.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:11&lt;br /&gt;
| Next, we need to display thumbnail of each video in each list item.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:17&lt;br /&gt;
|So, now we will add an '''ImageView''' in the '''layout'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:22&lt;br /&gt;
| In the '''Palette''', search for '''ImageView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:26&lt;br /&gt;
|Drag and drop it on the '''Linear Layout''' in the '''component Tree.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:31&lt;br /&gt;
| A '''Resources''' dialog box opens.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:34&lt;br /&gt;
|On the left side, under '''Drawable''', click '''Project,''' then select the image '''ic underscore launcher '''and click on '''OK''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:45&lt;br /&gt;
|In the '''Attribute''' window, type '''video underscore thumbnail''' in the '''ID''' field.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:52&lt;br /&gt;
| Next we need a '''TextView''' to show the title of the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:57&lt;br /&gt;
| So, drag a '''TextView''' and drop it in the '''component tree''' on''' video underscore thumbnail.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:06&lt;br /&gt;
|The '''ImageView''' and '''TextView''' are embedded together.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:11&lt;br /&gt;
|In the output, we can see the thumbnail of the video in the '''ImageView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:16&lt;br /&gt;
| In '''LinearLayout''', there are no '''constraints'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:19&lt;br /&gt;
|The '''Textview''' places itself in the '''LinearLayout.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:23&lt;br /&gt;
| As a unique '''ID''' for the '''TextView''' we will type '''video underscore title.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:29&lt;br /&gt;
|Change the '''textAppearance attribute''' of '''TextView''' to '''AppCompat dot Display1'''&lt;br /&gt;
&lt;br /&gt;
The text will look larger now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:39&lt;br /&gt;
| We need one more '''TextView''' to show the '''video level''' which are '''Basic, Intermediate''' and '''Advanced'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:46&lt;br /&gt;
| Drag a '''TextView''' and drop it in the '''component tree''' on '''video_title'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:54&lt;br /&gt;
|As a unique ID to this '''TextView''' we will type '''video underscore level.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:00&lt;br /&gt;
| Click on the '''LinearLayout''' on the''' Component Tree'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:04&lt;br /&gt;
|In the '''Attributes''' window, change the '''orientation''' of '''LinearLayout''' to '''vertical'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:10&lt;br /&gt;
|This changes the '''TextView''' and '''ImageView''' orientation to vertical position.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:16&lt;br /&gt;
|Change its '''ID attribute''' to '''itemLinearLayout.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:21&lt;br /&gt;
|This '''ID''' will be used in '''on click listener method '''later.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:26&lt;br /&gt;
|Now, our custom layout is ready.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:29&lt;br /&gt;
| Next we’ll change the size of the image so that it looks larger. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:34&lt;br /&gt;
|So change the '''layout width '''of '''ImageView '''to '''match parent'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:40&lt;br /&gt;
|We will also change the''' layout height''' to 200dp. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:46&lt;br /&gt;
| We require an '''adapter''' to populate this custom '''layout''' in our '''RecyclerView''' view.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:52&lt;br /&gt;
| On the top left panel, under '''project''',&lt;br /&gt;
&lt;br /&gt;
Click on '''app  java'''  then  '''com dot example dot spoken dot stsearch'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:05&lt;br /&gt;
|Right-click and select''' New, Kotlin File or Class'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:11&lt;br /&gt;
|In the pop-up window, type the name as '''MyAdapter''' and click on '''OK '''button'''.'''&lt;br /&gt;
|-&lt;br /&gt;
| 07:18&lt;br /&gt;
| A new file gets created named '''MyAdapter dot kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:23&lt;br /&gt;
|In this, we will write the '''Kotlin''' code for the '''Adapter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|07:28&lt;br /&gt;
| Type the below code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:30&lt;br /&gt;
|What we have done is, we have created a '''class MyAdapter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:36&lt;br /&gt;
|'''mContext '''is the '''context''', that is the '''application''' which is used to fill the thumbnail images.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:44&lt;br /&gt;
|'''videoList '''will contain the list of all videos of type '''VideoItem class.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:51&lt;br /&gt;
|On compiling, the '''constructor''' for the values in the brackets, are created automatically.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:58&lt;br /&gt;
|So we don’t need to do that.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:02&lt;br /&gt;
| The code shows error.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:04&lt;br /&gt;
|It is because we have not yet '''declared MyViewHolder class '''and '''implemented '''the required '''methods'''.&lt;br /&gt;
|-&lt;br /&gt;
| 08:12&lt;br /&gt;
| So first we will declare''' MyViewHolder class.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:17&lt;br /&gt;
|Type the code inside '''MyAdapter class''' as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:22&lt;br /&gt;
| Now we will '''implement''' the required '''methods'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:26&lt;br /&gt;
|First we will create the '''onCreateViewHolder method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:30&lt;br /&gt;
|Copy and paste the code for this '''method''' from the '''Code file myadapter dot kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:39&lt;br /&gt;
|Here we created a '''view''' having '''my underscore customlayout dot xml''' and '''returned''' it through '''MyViewHolder class.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:50&lt;br /&gt;
| Now we will create the next required '''method '''which is '''onBindViewHolder.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:56&lt;br /&gt;
|Type the following code below '''onCreateViewHolder method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:02&lt;br /&gt;
|Press '''Alt+Enter''' keys and resolve the warnings.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:07&lt;br /&gt;
|We will use the '''position variable''' to know which item we are filling.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:12&lt;br /&gt;
|We first get the '''VideoItem object '''which is being filled currently in '''singleVideoItem'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:19&lt;br /&gt;
| Here we set the text of the '''video underscore title '''and''' video underscore level''' from the '''singleVideoItem’s '''values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:27&lt;br /&gt;
| Next step is to fill the thumbnail image into the '''ImageView'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:32&lt;br /&gt;
|We can get the thumbnail from a specific '''spoken tutorial YouTube URL.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:37&lt;br /&gt;
|The '''URL''' has this format: &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:40&lt;br /&gt;
|So we will use the '''URL''' and pass the '''videoID''' for which we need the thumbnail image.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:47&lt;br /&gt;
|We have used '''Picasso''', to load the image into '''video underscore thumbnail ImageView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:54&lt;br /&gt;
| We have created '''setOnClickListener method''' for''' linear layout''' and named it as '''itemLinearLayout'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:02&lt;br /&gt;
|When the thumbnail is clicked, it will play the '''YouTube''' video in the '''ThirdActivity'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:08&lt;br /&gt;
|We have not created the '''ThirdActivity '''and so it shows an error now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:33&lt;br /&gt;
|We pass the '''videoID''' and '''videoTitle''' to the '''ThirdActivity''' by '''putExtra method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:20&lt;br /&gt;
|We have added a required flag of '''Intent  dot FLAG underscore ACTIVITY underscore NEW underscore TASK.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:29&lt;br /&gt;
|This is required by '''YouTube''' activity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:33&lt;br /&gt;
|Then we start the '''intent''' using '''mContext variable.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:38&lt;br /&gt;
| Type the next '''method getItemCount '''below '''onBindViewHolder method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:45&lt;br /&gt;
|The '''function getItemCount '''returns the number of items to be shown inside '''RecyclerView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:52&lt;br /&gt;
|The '''adapter''' code is completed now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:55&lt;br /&gt;
| Let’s now create the third activity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:58&lt;br /&gt;
| On the top left panel, under '''project''', go to '''app.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:03&lt;br /&gt;
|Right click on '''app''' then select '''New ''' '''Activity ''' '''Empty Activity'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:11&lt;br /&gt;
| '''Configure Activity''' window pops up.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:14&lt;br /&gt;
|Type the name of the '''Activity''' as '''ThirdActivity''' and click on the '''Finish''' button.&lt;br /&gt;
&lt;br /&gt;
Wait for the process to finish.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:24&lt;br /&gt;
| Go to '''MyAdapter dot Kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:27&lt;br /&gt;
|The error in our '''playVideoIntent '''code is resolved as we have created the '''ThirdActivity.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:34&lt;br /&gt;
| Next we will initialize the '''RecyclerView''' in '''SecondActivity dot kt.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:40&lt;br /&gt;
| Go to '''SecondActivity dot kt.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:43&lt;br /&gt;
| Type the code before the '''volley''' code to initialize the '''RecyclerView.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:52&lt;br /&gt;
| Next we will create an '''object''' for '''MyAdapter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:57&lt;br /&gt;
| Declare the '''variable''' globally so that we can use it in '''extractjson data method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:04&lt;br /&gt;
|Type this code before''' onCreate method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:09&lt;br /&gt;
| Now we will initialize the value of '''myAdapter variable''' inside '''oncreate method ''' after '''findViewById''' method&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:18&lt;br /&gt;
|Copy paste the code from the code file '''Secondactivity dot kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:28&lt;br /&gt;
|Then set the required things to '''myRecyclerView '''as shown below.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:34&lt;br /&gt;
| In the '''extractJsonData method''', add the below line for notifying that the '''data''' has been received.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:42&lt;br /&gt;
| Then go to '''ThirdActivity dot kt '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:46&lt;br /&gt;
| In '''onCreate method''' type this code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:52&lt;br /&gt;
|Here we store the '''video ID''' and '''Title''' of the '''video''' that was clicked in''' second activity.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:59&lt;br /&gt;
| We will see a message with the '''video''' name that was clicked as output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:04&lt;br /&gt;
| Let us now run the '''App''' to see the output on the '''Android''' phone &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:11&lt;br /&gt;
| Select the '''FOSS''' and '''Language''' and click on the '''Search''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:16&lt;br /&gt;
|We can see that the '''video''' thumbnail loads on the next page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:21&lt;br /&gt;
|Scroll down to see all the thumbnails that are loaded for the selected '''FOSS''' and language.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|13:28&lt;br /&gt;
|Video title and level are displayed as well.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:32&lt;br /&gt;
|When we select a video the '''third activity''' opens.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:36&lt;br /&gt;
|It shows the selected '''video '''name as message.&lt;br /&gt;
|-&lt;br /&gt;
| 13:40&lt;br /&gt;
| This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:45&lt;br /&gt;
| In this tutorial we learnt to&lt;br /&gt;
&lt;br /&gt;
Use '''RecyclerView''' to display the thumbnail of videos.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:53&lt;br /&gt;
| Get the thumbnail from a specific '''Spoken Tutorial YouTube URL'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:58&lt;br /&gt;
| Pass the '''videoID''' of the selected '''Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:02&lt;br /&gt;
| Run the '''Kotlin''' '''App '''and  Display the thumbnail of the selected video&lt;br /&gt;
|-&lt;br /&gt;
| 14:08&lt;br /&gt;
| As an assignment do the following.&lt;br /&gt;
&lt;br /&gt;
Select a different '''FOSS '''and '''Language''' and check the thumbnails which are loaded.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:17&lt;br /&gt;
| The video at the following link summarises the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|14:24&lt;br /&gt;
| The Spoken Tutorial Project Team conducts workshops and gives certificates on passing online tests.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:24&lt;br /&gt;
| Please post your timed queries in this forum. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:38&lt;br /&gt;
| Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.&lt;br /&gt;
&lt;br /&gt;
More information on this mission is available at this link.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:50&lt;br /&gt;
| The '''Android app '''and the script for this tutorial was contributed by Abhishek Shah.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 14:56&lt;br /&gt;
|And this is Nirmala Venkat along with the Spoken Tutorial team from IIT Bombay, signing off. &lt;br /&gt;
&lt;br /&gt;
Thanks for watching.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>