Creating a Search App - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- Android app using Kotlin Tutorials - English
-
Why var foss = intent.getStringExtra("fossID") instead of var foss = intent.getIntExtra("fossID",-1)
Thanks in advance. please help me.In Activity-1 whare we passing int values using intent to next activity but Activity-2 we are using intent.getStringExtra("fossID")it throwing an typecasting error, to solve this i change code as below its works for me. var foss=intent.getIntExtra("RefferFossId", -1) var language=intent.getIntExtra("RefferLanguageId",-1)
11-12M 0-10S ravikr.973161@gmail.com
Answer last updated on: May 18, 2021, 3:26 p.m.
-
App is Not Opening
sir, despite of writing all the codes correctly its not opening in my phone .i have run my other app earlier,others runned out. But this app is not opening.kindly help .I will be very obliged to you.as I am trying it last 5 hours. ---
00-01M 50-60S alwaysaneesh
Answer last updated on: May 17, 2021, 5:23 p.m.
-
Compiling Error
Please this line of code is giving me compiling error "languageOptions.addAll(ArrayList(fossVsLanguage.get(selectedFoss)))".This is the compiler error below:Type inference failed. Please try to specify type arguments explicitly. Type mismatch: inferred type is kotlin.collections.ArrayList<string>? /* = java.util.ArrayList<string>? */ but (MutableCollection<out string!="">..Collection<string!>) was expected</string!></out></string></string> Please I restart it but the problem persist.I also read the blog you send but the problem keep on coming.Thank you.
08-09M 20-30S edemtech
Answer last updated on: May 10, 2021, 1:09 a.m.
-
kotlin problem,not able to go through this problem
Type inference failed. Please try to specify type arguments explicitly. Type mismatch: inferred type is kotlin.collections.ArrayList? /* = java.util.ArrayList? */ but (MutableCollection..Collection) was expected
11-12M 40-50S satrishabh
Answer last updated on: Oct. 12, 2020, 4:52 p.m.
-
REGARDING NOT OPENING OF STSEARCH APP N MY PHONE
sir, despite of writing all the codes correctly its not opening in my phone .i have run my other app earlier,others runned out. But this app is not opening.kindly help .I will be very obliged to you.as I am trying it last 5 hours. ---SUBHASHINI
11-12M 40-50S kanthsubhashini1308@gmail.com
Answer last updated on: Sept. 8, 2020, 2:23 p.m.
Questions posted on ST Forums:
5762 visits
Outline:
Create a new Android Studio project as ST search Data identification in Spoken tutorial server Design the App with Text views, Spinner and Search button How to store the FOSS and Language IDs in HashMap data structure? How to declare Array list to store Languages of a particular FOSS? Use of Mutable list Create adapter for FOSS and Language spinner Source code for selecting an item from the spinner Launch the app in the phone Run the App to see the selected FOSS ID and Language ID as output in the Android phone
Width: | 1168 | Height: | 640 |
---|---|---|---|
Duration: | 00:13:27 | Size: | 6.7 MB |
Show video info