Requesting Permissions at Runtime in Android Studio 2020 (Kotlin)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 30

  • @yoavfeiner2745
    @yoavfeiner2745 2 года назад +3

    Best guide for the task! thanks bro you are awesome

  • @pliniomourao
    @pliniomourao 3 года назад

    Thank you so much for this video.
    Google didactic is not very good and they not always offer example codes as easy as you did.
    Also it is rare to find those who want to share the knowledge they have due to bias reasons or greed.
    Please continue to give us this small features that is not easy to come to a clean solution as you did. This is very much perfect.
    Once again, thank you so much!

  • @absiayman
    @absiayman 3 года назад +1

    Thank you for simplifying permissions request in android.
    I've irrelevant questions, You have used buttons in activity without declaration using find by Id and IDE didn't show error. How you achieved it?
    Thanks again.

    • @gamecheats7383
      @gamecheats7383 3 года назад +2

      You must import this: import kotlinx.android.synthetic.main.activity_main.*, and in build.gradle file in plugins add this id: id 'kotlin-android-extensions', after that you can use view id without findViewById

  • @samuelwakoli
    @samuelwakoli 2 года назад

    Thanks bro. I have learned from you.

  • @L4szcZ
    @L4szcZ 3 года назад +1

    What if API version is lower than 23? You are not handling that case?

  • @012chris210
    @012chris210 3 года назад

    Great tutorial! just have one question, How can I differentiate the onRequestPermissionResult method to run one set of methods if one of the permissions is granted and another set of methods if the other has been granted? thank you!

  • @dariocrea8230
    @dariocrea8230 Год назад

    Hey, ottimo tutorial! Avrei giusto due domande, nel mio codice non riesce a trovare l'id del bottone e lo segna in rosso con risoluzione "crea una variabile locale" e nel onRequestPermissionsResults mi chiede la super o di sopprimerla. Cosa mi consiglieresti di fare? Grazie in anticipo della risposta :D

  • @mikec4220
    @mikec4220 3 года назад

    Thank you very much for this tutorial, clean and easy! SUBSCRIBED.

  • @abdurhmonovamarjona350
    @abdurhmonovamarjona350 4 года назад +1

    Thanks a bunch for very useful tutorials!

  • @freekiad1931
    @freekiad1931 3 года назад

    we take permission from user for "permission.READ_EXTERNAL_STORAGE" but where users data saved ? how we can read or see?

  • @alexaguiar7268
    @alexaguiar7268 3 года назад

    Why am I getting 'onRequestPermissionsResult' overrides nothing??

  • @lara-kp7lp
    @lara-kp7lp 2 года назад

    How use one button for multiple permission?

  • @bedosayd9714
    @bedosayd9714 Год назад

    bro how can i see permission on any time i mean if i make an app and i but in app camera permission how can i see from my pc the man who use my app and watsh it

    • @Indently
      @Indently  Год назад

      You understand this is considered illegal in most countries right?

  • @Roosevelth
    @Roosevelth 4 года назад +1

    Can you make an automatic image slider tutorial kotlin please?

    • @Indently
      @Indently  4 года назад

      That's very easy using ViewPager2, I'll try to put a tutorial about it in a couple of weeks

    • @Roosevelth
      @Roosevelth 4 года назад

      @@Indently Thank you.

  • @максимкупырёв-д9о
    @максимкупырёв-д9о 3 года назад

    How can I do that in fragment?

  • @ShivamVerma-dn3tk
    @ShivamVerma-dn3tk 4 года назад +1

    Super

  • @rahul_spawar
    @rahul_spawar 3 года назад

    How to check if user has checked don't ask this permission again checkbox?

    • @Indently
      @Indently  3 года назад

      It should be automatic.

    • @rahul_spawar
      @rahul_spawar 3 года назад

      @@Indently I want to redirect the user to settings screen if he has taped never ask this permission again checkbox

    • @Indently
      @Indently  3 года назад

      @@rahul_spawar Just check whether the permissions have been granted, and if not send them to the settings screen

  • @Crystoico
    @Crystoico 3 года назад

    So good man

  • @jishnunkrishnan5783
    @jishnunkrishnan5783 3 года назад +1

    Thank YOu

  • @Karuni7
    @Karuni7 4 года назад +1

    ¦

  • @secondaccount4689
    @secondaccount4689 Год назад

    Thank you so much for this video.
    I just want to ask how i can pass the data and the permission granted will only prompt once what i do is ) == PackageManager.PERMISSION_GRANTED -> {
    // Toast.makeText(applicationContext,"$name permission granted", Toast.LENGTH_SHORT).show()
    // captureImageUsingCamera()
    // }
    // shouldShowRequestPermissionRationale(permission) -> showDialog(permission,name,requestCode)
    //
    // else -> ActivityCompat.requestPermissions(this, arrayOf(permission), requestCode)
    // }
    // }
    // }
    i just pass the captureImageusing camera in the granted so everytime i clicked the btn it show text toast overall thank you so much

  • @vinayTshetty
    @vinayTshetty 2 года назад +1

    where is the soure code avaliable ?