<?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%2FCreating-a-Search-App%2FEnglish-timed</id>
		<title>Android-app-using-Kotlin/C3/Creating-a-Search-App/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%2FCreating-a-Search-App%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Android-app-using-Kotlin/C3/Creating-a-Search-App/English-timed&amp;action=history"/>
		<updated>2026-05-31T02:09:06Z</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/Creating-a-Search-App/English-timed&amp;diff=54014&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot; {| border=1 |  &lt;center&gt;'''Time'''&lt;/center&gt; |  &lt;center&gt;'''Narration'''&lt;/center&gt; |- | 00:01 | Welcome to the''' Spoken Tutorial''' on''' Creating a Search App.'''  |- | 00:06 |...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Android-app-using-Kotlin/C3/Creating-a-Search-App/English-timed&amp;diff=54014&amp;oldid=prev"/>
				<updated>2020-10-13T10:34:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {| border=1 |  &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt; |  &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt; |- | 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; Creating a Search App.&amp;#039;&amp;#039;&amp;#039;  |- | 00:06 |...&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;
|  &amp;lt;center&amp;gt;'''Time'''&amp;lt;/center&amp;gt;&lt;br /&gt;
|  &amp;lt;center&amp;gt;'''Narration'''&amp;lt;/center&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Welcome to the''' Spoken Tutorial''' on''' Creating a Search App.'''&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;
|  Create a '''Search App''' for '''Spoken Tutorial Project '''and&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:13&lt;br /&gt;
|  Run the '''Kotlin''' '''App''' to see the output in an '''Android''' phone.&lt;br /&gt;
|-&lt;br /&gt;
| 00:19&lt;br /&gt;
| To record this tutorial, I am using&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:22&lt;br /&gt;
|  '''Ubuntu Linux 16.04''' operating system &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:26&lt;br /&gt;
|  '''Android Studio''' version 3.x and&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:30&lt;br /&gt;
|  '''Android Phone '''with minimum of '''Android''' OS version '''4.03'''&lt;br /&gt;
|-&lt;br /&gt;
|00:36&lt;br /&gt;
| To follow this tutorial, you should have basic knowledge&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:40&lt;br /&gt;
|  '''Java programming language '''and  '''Android Studio '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:46&lt;br /&gt;
| If not, then go through the relevant tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:51&lt;br /&gt;
| In this tutorial, we will create a '''Search App.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:55&lt;br /&gt;
| Using this '''App''', the user can search and find video tutorials from the '''Spoken Tutorial server.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:02&lt;br /&gt;
| Let us open '''Android Studio'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:06&lt;br /&gt;
| Click on '''Start a new Android Studio project''' to create a new '''project'''. &lt;br /&gt;
|-&lt;br /&gt;
| 01:12&lt;br /&gt;
| Enter a new '''application''' name as '''ST Search.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:17&lt;br /&gt;
| Repeat all the steps as we did earlier.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:21&lt;br /&gt;
|  We will keep the default value for the remaining fields.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:25&lt;br /&gt;
| Click on the '''Next '''button at the bottom of the window&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:29&lt;br /&gt;
| Again click on the '''Next '''button&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:32&lt;br /&gt;
| The next window is '''Add an activity to Mobile'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:37&lt;br /&gt;
| I’ll select '''Empty Activity '''and then click on the '''Next''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01:44&lt;br /&gt;
| In the next window, enter the '''Activity name''' as '''FirstActivity.'''   &lt;br /&gt;
|-&lt;br /&gt;
| 01:50&lt;br /&gt;
| Click on the '''Finish''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:55&lt;br /&gt;
| Now the '''Android Studio''' '''IDE''' opens.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:59&lt;br /&gt;
| Click on '''activity underscore first dot xml''' file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:04&lt;br /&gt;
| Delete the default '''Hello World TextView'''.&lt;br /&gt;
|-&lt;br /&gt;
| 02:08&lt;br /&gt;
| I have designed the '''app''' with two '''TextViews''' for '''FOSS''' and '''Language'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:14&lt;br /&gt;
| There are two '''Spinners'''. One to select the '''FOSS''' and another to select the '''Language'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:21&lt;br /&gt;
| A '''Search''' button to click and find the desired output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:26&lt;br /&gt;
| Pause the tutorial and design the '''layout''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:31&lt;br /&gt;
| Make sure that required '''constraints''' are added to position and align '''elements''' to other '''elements'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:39&lt;br /&gt;
| You can refer to the previous tutorials in this series for this task.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:44&lt;br /&gt;
| Note the '''attribute''' values which I have given for the tools.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:49&lt;br /&gt;
| Assign the same value when you design the '''layout'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:53&lt;br /&gt;
| Every '''FOSS '''in '''Spoken Tutorial''' has an '''ID '''associated with it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:59&lt;br /&gt;
|  Each '''language '''also has an '''ID '''associated with it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:04&lt;br /&gt;
| These '''IDs''' fetch the related videos from the '''Spoken Tutorial web server.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:10&lt;br /&gt;
|  Those particular videos are displayed for the user to watch using the''' ST Search app.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:17&lt;br /&gt;
|   The source code used in this tutorial are available in the '''Code files''' link of this tutorial page&lt;br /&gt;
 Please download and make use of it when you are practising&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:29&lt;br /&gt;
| Let us go back to '''Android Studio''' interface.&lt;br /&gt;
&lt;br /&gt;
Go to '''FirstActivity dot kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:37&lt;br /&gt;
| Type the code below inside '''onCreate method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:42&lt;br /&gt;
| Here we store the '''FOSS''' and '''Language''' with their '''ID'''s in '''HashMap data structure,''' as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:50&lt;br /&gt;
| The '''key '''and '''value '''pair are declared as '''String''' and '''Int data type'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:55&lt;br /&gt;
| Here '''Key''' will be '''FOSS name''' and '''value''' will be '''FOSS ID.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:00&lt;br /&gt;
| Next we will write '''HashMap''' for languages and their '''IDs'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:05&lt;br /&gt;
| Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:08&lt;br /&gt;
| Here '''key '''will be '''language''' and '''value '''will be '''language ID.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:13&lt;br /&gt;
| When we select a '''FOSS''', the '''language spinner''' should populate only the languages available for that '''FOSS'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:20&lt;br /&gt;
| So, we need to create a dynamic '''spinner''' for this.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:24&lt;br /&gt;
| Type the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:27&lt;br /&gt;
| Here we have declared a '''HashMap '''with '''String '''and''' ArrayList.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:32&lt;br /&gt;
| Here, '''key '''will be the '''FOSS''' and '''value '''will be the '''ArrayList''' of its available languages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:39&lt;br /&gt;
| Next, declare an '''array list''' to store languages of a particular '''FOSS,''' as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:46&lt;br /&gt;
| We will use this '''ArrayList''' to fill our '''HashMap''' '''fossVsLanguage'''&lt;br /&gt;
|-&lt;br /&gt;
| 04:52&lt;br /&gt;
| First we will write the code to fill '''ArrayList''' with languages for one '''FOSS'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:58&lt;br /&gt;
| Type the code as I have done here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:01&lt;br /&gt;
| '''JAVA course''' is available in''' English, Gujarati, Hindi '''and''' Kannada '''languages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:08&lt;br /&gt;
| I’ll write the code for the remaining '''FOSS''' and its available language as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:14&lt;br /&gt;
| We have stored all the required data.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:18&lt;br /&gt;
| Next let us create an '''object''' for both the '''spinner''' tools as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:24&lt;br /&gt;
| You may see an error or warning in the code, which is highlighted in red color.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:30&lt;br /&gt;
| Keep the cursor on the code and press '''Alt+Enter''' keys to quick fix the errors.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:37&lt;br /&gt;
| Do this whenever warning message appears.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:41&lt;br /&gt;
| Now we need to fill the '''spinners''' with their respective options.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:46&lt;br /&gt;
| We need a list of available '''FOSS''' options.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:50&lt;br /&gt;
| Type the code as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:53&lt;br /&gt;
| This code will extract the '''keys''' of '''HashMap''' '''fossVsFossID''' to get the list of '''FOSS''' options.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:02&lt;br /&gt;
| Likewise, we can extract the keys of '''languageVsLanguageID''' '''HashMap''' to get the list of languages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:11&lt;br /&gt;
| Write the code as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:14&lt;br /&gt;
| Here we are converting it to a '''mutable list'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:18&lt;br /&gt;
| So we can change the list according to the '''FOSS''' selected.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:23&lt;br /&gt;
| Now we will create two '''variables''' to store the selected '''FOSS''' and languages:&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:28&lt;br /&gt;
| Type the code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:30&lt;br /&gt;
| We set these '''variables''' to '''none''' so that no option is selected initially.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:36&lt;br /&gt;
| Now we will create '''adapters''' for the '''spinners''' which will fill the options into it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:42&lt;br /&gt;
| First we create an '''adapter''' for the '''FOSS spinner'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:46&lt;br /&gt;
| Write the below code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:48&lt;br /&gt;
| We are using '''simple underscore list underscore item underscore activated underscore 1 method''' to highlight the option which is selected.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:59&lt;br /&gt;
| We pass the '''fossOptions''' list as the '''data'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:03&lt;br /&gt;
| Now we set this '''adapter''' to '''FOSS spinner.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:07&lt;br /&gt;
| Type '''fossSpinner.''adapter equal to  '''fossAdapter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:12&lt;br /&gt;
| Now we will do the same steps again for '''language spinner:'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:17&lt;br /&gt;
| Next we will create''' item selected listener '''for '''spinners'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:22&lt;br /&gt;
| First we create a '''listener''' for '''FOSS''' with the required '''methods''' inside it.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:28&lt;br /&gt;
| Keep the cursor on '''AdapterView''' and press '''Alt+Enter '''keys. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:34&lt;br /&gt;
| Then select '''import''' from the list. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:38&lt;br /&gt;
| Place the cursor on the '''object''' and press '''Alt+Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:43&lt;br /&gt;
| Select''' implement members''' from the available list.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:47&lt;br /&gt;
| Add the required '''methods''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:51&lt;br /&gt;
| Next we change the list of languages according to the '''FOSS''' selected.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:56&lt;br /&gt;
| Write the below code inside '''onItemSelected method''':&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:04&lt;br /&gt;
| First let us clear the '''list''' which was already present for languages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:09&lt;br /&gt;
| This code gets the '''FOSS''' from its position and saves it in '''selectedFoss variable'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:16&lt;br /&gt;
| We extract the '''ArrayList '''from '''fossVsLanguage hashmap'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:22&lt;br /&gt;
| Then we fill '''languageOptions''' with the languages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:27&lt;br /&gt;
| '''notifyDataSetChanged method''' is used to refresh the '''dataset''' whenever '''data''' has been changed.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:35&lt;br /&gt;
| Now we create a second '''adapter''' for '''language spinner'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:40&lt;br /&gt;
| For this we write the below code after the '''foss.spinner.''onItemSelectedListener block'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:49&lt;br /&gt;
| Here I have aligned the code for better view.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:53&lt;br /&gt;
| Inside '''onItemSelected method''', the language that has been selected, is stored in the '''selectedLanguage variable'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:02&lt;br /&gt;
| Next we will write the code for '''Search button '''click.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:06&lt;br /&gt;
| Write the following code after the '''languageSpinner dot ''onItemSelectedListener'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:13&lt;br /&gt;
| Any '''code''' written between the '''blocks '''get executed when the '''Search button''' is clicked.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:19&lt;br /&gt;
| We write an '''if else '''code inside this '''on click listener block''' to check if the user has not selected any option.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:28&lt;br /&gt;
| In the''' if block''' if nothing is selected, a short pop-up error message is displayed with''' Toast method.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:36&lt;br /&gt;
| And in the '''else block''' we extract the '''FOSS ID '''and '''Language ID '''of the selected options.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:44&lt;br /&gt;
| Next we will create a new activity called '''Second Activity'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:49&lt;br /&gt;
| Here the selected '''FOSS''' and '''Language''' is shown as the output in the new window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:55&lt;br /&gt;
| Right-click on the '''app '''folder on the left panel.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:00&lt;br /&gt;
| Select '''New '''  '''Activty ''''''Empty Activity'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:06&lt;br /&gt;
| '''Configure Activity''' window pops up.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:10&lt;br /&gt;
| Enter the name of the activity as '''SecondActivity''' and click on the '''Finish''' button at the bottom of the window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:18&lt;br /&gt;
| Click on '''activity underscore second dot xml.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:23&lt;br /&gt;
| We will display the''' FOSS ID '''and '''Language ID''' in a '''TextView'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:28&lt;br /&gt;
| Drag a '''TextView''' and drop it in the center of the '''layout editor'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:33&lt;br /&gt;
| Set the '''constraints''' and align the size as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:39&lt;br /&gt;
| Remove the''' text attribute''' and keep the '''TextView''' as empty.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:44&lt;br /&gt;
| Change the '''ID''' to '''selectedOption'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:48&lt;br /&gt;
| Change the '''textAppearance attribute''' to '''material dot large'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 10:53&lt;br /&gt;
| We will launch this second activity from the first activity when the user clicks on the '''Search''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:00&lt;br /&gt;
| Go to '''FirstActivity.kt.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:03&lt;br /&gt;
| Inside the '''else block''' at the end, write the below code.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:08&lt;br /&gt;
| In the '''Intent object, putExtra method''' adds the '''FOSS ID''' and '''Language ID.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:15&lt;br /&gt;
| Finally '''StartActivity method''' starts the activity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:20&lt;br /&gt;
| Go to '''SecondActivity dot kt'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:23&lt;br /&gt;
| We write the code in '''onCreate method'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:27&lt;br /&gt;
| Here we used the '''intent object''' to get the '''fossID''' and '''languageID''' from the first activity.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:34&lt;br /&gt;
| Then we set the text of the '''TextView''' as shown here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:39&lt;br /&gt;
| This will change the '''TextView''' to show the '''FOSS ID''' and '''language ID'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|11:44&lt;br /&gt;
| Now run the '''Kotlin App.''' Launch the '''ST Search''' App&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:51&lt;br /&gt;
| Select the '''Foss'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 11:54&lt;br /&gt;
| Select the '''Language'''. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Search''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:00&lt;br /&gt;
| The '''FOSS ID''' and '''language ID''' is displayed as expected.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:06&lt;br /&gt;
| This brings us to the end of this tutorial. Let us summarize.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:12&lt;br /&gt;
| In this tutorial we learnt to&lt;br /&gt;
&lt;br /&gt;
Create a '''Search app''' for '''Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:19&lt;br /&gt;
|  Run the '''Kotlin App''' to see the output in an '''Android''' phone&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:24&lt;br /&gt;
| As an assignment do the following.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:27&lt;br /&gt;
|  Select various '''FOSS Id '''and''' Language Id''' in the '''App''' &lt;br /&gt;
|-&lt;br /&gt;
| 12:32&lt;br /&gt;
| Click on the search button&lt;br /&gt;
&lt;br /&gt;
Check the output&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 12:37&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;
|12:45&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;
|  12:56&lt;br /&gt;
|  Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 13:00&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;
| 13:12&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;
| 13:19&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>