ALERT DIALOG - Android Fundamentals

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 52

  • @wambugumassive
    @wambugumassive Рік тому +3

    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...

  • @kushagra-aa
    @kushagra-aa 2 роки тому +4

    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.

  • @farihazultana
    @farihazultana 2 роки тому

    Alert Dialog was most fun till now!

  • @reeceyamato
    @reeceyamato 2 роки тому +2

    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!

  • @DharaniPathyRamalingam
    @DharaniPathyRamalingam 3 роки тому +4

    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?

  • @TheImaginativeSachin
    @TheImaginativeSachin 2 роки тому +2

    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 ?

  • @mohammednashat6707
    @mohammednashat6707 2 роки тому

    Thank you very much , almost time you are amazing

  • @Leeminduc
    @Leeminduc 3 роки тому +1

    Thank you so much, so helpful to me !

  • @VenewebTV
    @VenewebTV 2 роки тому

    Very useful and educational video, greetings from Caracas, Venezuela

  • @WW-qv8uw
    @WW-qv8uw 3 роки тому

    Very useful and detailed tutorials

  • @angelmauriciorivas6160
    @angelmauriciorivas6160 2 роки тому

    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

  • @Dinocasanova
    @Dinocasanova 4 роки тому +4

    Great!!! Thank you 🙌!!!

  • @Amandeep-uc7qh
    @Amandeep-uc7qh 3 роки тому

    Nice explanation

  • @MCA_HimanshuSeth
    @MCA_HimanshuSeth 4 роки тому

    Nice explanation sir ,🙏🙏

  • @mahmudsulemansheikhwunnam3580
    @mahmudsulemansheikhwunnam3580 2 роки тому

    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?

  • @talhashaikh1435
    @talhashaikh1435 3 роки тому

    I am going to try this ..hope that this thung also is not deprecated coz all things are deorecates these days

  • @Joao-xk1ws
    @Joao-xk1ws 3 роки тому

    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

  • @fuadydheo3155
    @fuadydheo3155 4 роки тому +2

    awesome dude!!

  • @frozen1093
    @frozen1093 3 роки тому

    very useful content!

  • @marypaul9627
    @marypaul9627 2 роки тому

    Good one

  • @mahendranathreddye1720
    @mahendranathreddye1720 4 роки тому

    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

  • @bigotes20random86
    @bigotes20random86 2 роки тому

    You are amazing! :)

  • @billmolloy2264
    @billmolloy2264 Рік тому

  • @ankushgupta2528
    @ankushgupta2528 3 роки тому +1

    When I try to add .setPositiveButton, after control + space, the option to add dialog interface and I is not showing up, PLEASE HELP!.

  • @gangardarwagle8938
    @gangardarwagle8938 3 місяці тому

    Ctrl + Space not working!! is there other ways to do so?

  • @blo01
    @blo01 4 роки тому +1

    Thanks

  • @kittara8
    @kittara8 2 роки тому

    my favourite part is how it doesnt work even on the easiest videos like these 😊

  • @dongiannisiliadis9018
    @dongiannisiliadis9018 Рік тому

    wunderbar

  • @alexgireff2180
    @alexgireff2180 3 роки тому

    Cool 👍

  • @rohanchoudhary4034
    @rohanchoudhary4034 3 роки тому

    How to prevent alert dialog from closing on outside touch

  • @fujisakii7734
    @fujisakii7734 4 роки тому

    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

    • @PhilippLackner
      @PhilippLackner  4 роки тому +2

      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?

  • @digitalnomad4535
    @digitalnomad4535 Рік тому

    holy cow

  • @amineayachi335
    @amineayachi335 2 роки тому

    we want animated custom dialogs in jetpack compose as i am not using xml anymore

  • @filip_g
    @filip_g 4 роки тому +2

    Mr. Poop xD

  • @ankitpalsingh8191
    @ankitpalsingh8191 Рік тому +1

    Please don't use Mr. Poop , I imagine that whenever you wrote it.🤣🤣

  • @ahappyperson6530
    @ahappyperson6530 4 місяці тому

    Mr.Poop

  • @samkabiru8805
    @samkabiru8805 3 роки тому

    this is my most confusing video so far. I'm trying to understand it but its challenging

  • @wilwad
    @wilwad 2 роки тому +1

    App crashing on button click
    java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

    • @jang1542
      @jang1542 Рік тому

      try adding this code to your build.gradle file:
      buildFeatures {
      viewBinding true
      }
      Add this after:
      kotlinOptions {
      jvmTarget = '1.8'
      }

  • @BCS_AAMIRASHRAF
    @BCS_AAMIRASHRAF Рік тому

    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()
    }