I've looked around the You Tube 'Android Studio / Kotlin' video tutorial options and keep coming back to yours as, you explain things better than the rest...
Amazing Course!!!! Please try to make a video of the things that are changed in the new versions, a short video about some important things that are changed since this course was made would be really helpful. Thank you for making these great tutorials and courses.
Great tutorial as always, direct to the point and following the recommended code for every situation, great job! 👍I have learned so much from yours tutorials Thank you!
Nice lecture @Philipp Lackner.. 1. what is the use case of DialogInterface? 2. when you select some values in Dialog and re-open the old values are shown. Not the default values. why and how?
This is all good and all but this must be used to access the dialog's answer the user's input right? How can we access such data from alert dialog and How can we use such dialog in our projects ?
great tuto, just one observation, you forgot to change the multichoiceItems.setTitle. Cuestion: how it could be reset the options checked when I get into to select multichoice, I mean all of the options get back to unchecked
What you've shown is how to select item. Assuming you want to use the selected items in the parent activity that triggered the dialog, how do you make that happen?
is there another way to close an alertdialog other than using buttons and clicking on the screen? asked because I'm in a scan reading app and I want it to close after reading any object, as if the reading were a click
Hi, I have followed this method but there seems to be a problem with mine.. at 11:32 part of your video, the right one to choose after the .setSingleChoiceItems() should be {dialogInterface, i ->} But in my case, there's no such suggestion, is there another way to do that? Or Android studio updated? I recently downloaded the app, I guess this is the latest version that's why I'm wondering why I cannot find that
I haven't tried that in the latest version yet, but maybe there are just no suggestions. Did you try to put the parameters there even though you don't have suggestions?
if anyone facing error in .singlechoiceItems val checkedItem = intArrayOf(-1) val listItems = arrayOf("first Item","second Item","third Item") val singleChoiceOptionDialog=AlertDialog.Builder(this) singleChoiceOptionDialog.setTitle("Choose on of the option") singleChoiceOptionDialog.setSingleChoiceItems(listItems, checkedItem[0]) { dialog, which -> checkedItem[0]=which Toast.makeText(this,"you choose option $which",Toast.LENGTH_SHORT).show() }
I've looked around the You Tube 'Android Studio / Kotlin' video tutorial options and keep coming back to yours as, you explain things better than the rest...
Amazing Course!!!!
Please try to make a video of the things that are changed in the new versions, a short video about some important things that are changed since this course was made would be really helpful.
Thank you for making these great tutorials and courses.
Alert Dialog was most fun till now!
Great tutorial as always, direct to the point and following the recommended code for every situation, great job! 👍I have learned so much from yours tutorials Thank you!
Nice lecture @Philipp Lackner..
1. what is the use case of DialogInterface?
2. when you select some values in Dialog and re-open the old values are shown. Not the default values. why and how?
This is all good and all but this must be used to access the dialog's answer the user's input right? How can we access such data from alert dialog and How can we use such dialog in our projects ?
Thank you very much , almost time you are amazing
Thank you so much, so helpful to me !
Very useful and educational video, greetings from Caracas, Venezuela
Very useful and detailed tutorials
Glad you liked it
great tuto, just one observation, you forgot to change the multichoiceItems.setTitle. Cuestion: how it could be reset the options checked when I get into to select multichoice, I mean all of the options get back to unchecked
Great!!! Thank you 🙌!!!
Glad I could help👐
Nice explanation
Nice explanation sir ,🙏🙏
Thank you! :)
What you've shown is how to select item. Assuming you want to use the selected items in the parent activity that triggered the dialog, how do you make that happen?
I am going to try this ..hope that this thung also is not deprecated coz all things are deorecates these days
is there another way to close an alertdialog other than using buttons and clicking on the screen? asked because I'm in a scan reading app and I want it to close after reading any object, as if the reading were a click
awesome dude!!
Thanks man!
very useful content!
Good one
Hi ,
Can't we use menu bar items to do the same instead of buttons ? I am trying but not getting.. Could you pls help !!
Thank You
You are amazing! :)
When I try to add .setPositiveButton, after control + space, the option to add dialog interface and I is not showing up, PLEASE HELP!.
You have to write that manually.
Ctrl + Space not working!! is there other ways to do so?
Thanks
my favourite part is how it doesnt work even on the easiest videos like these 😊
wunderbar
Cool 👍
How to prevent alert dialog from closing on outside touch
Or dialog.setCancelable(false)
Hi, I have followed this method but there seems to be a problem with mine.. at 11:32 part of your video, the right one to choose after the .setSingleChoiceItems() should be {dialogInterface, i ->}
But in my case, there's no such suggestion, is there another way to do that? Or Android studio updated? I recently downloaded the app, I guess this is the latest version that's why I'm wondering why I cannot find that
I haven't tried that in the latest version yet, but maybe there are just no suggestions. Did you try to put the parameters there even though you don't have suggestions?
holy cow
we want animated custom dialogs in jetpack compose as i am not using xml anymore
Mr. Poop xD
Please don't use Mr. Poop , I imagine that whenever you wrote it.🤣🤣
avg. indian guy 😂🙂
how's learning going on ? completed android dev basics ??
@@Luffy_2804 yeah
Mr.Poop
this is my most confusing video so far. I'm trying to understand it but its challenging
likewise
App crashing on button click
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
try adding this code to your build.gradle file:
buildFeatures {
viewBinding true
}
Add this after:
kotlinOptions {
jvmTarget = '1.8'
}
if anyone facing error in .singlechoiceItems
val checkedItem = intArrayOf(-1)
val listItems = arrayOf("first Item","second Item","third Item")
val singleChoiceOptionDialog=AlertDialog.Builder(this)
singleChoiceOptionDialog.setTitle("Choose on of the option")
singleChoiceOptionDialog.setSingleChoiceItems(listItems, checkedItem[0]) { dialog, which ->
checkedItem[0]=which
Toast.makeText(this,"you choose option $which",Toast.LENGTH_SHORT).show()
}