How to Request Runtime Permissions in Android applications | Request permission at runtime

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ม.ค. 2025
  • If you declare a dangerous permissions in android apps, you must request the permissions at runtime. In this video i have explained the steps to request for runtime permissions.
    1. Check for the permission granted
    2. Request runtime permissions
    3. Show request rationale
    4. Show permission request with Settings option
    5. Allow permission from app settings
    Request runtime permissions
    developer.andr...
    #android
    #permissions
    #runtime

ความคิดเห็น • 36

  • @VikasSingh-sw6yh
    @VikasSingh-sw6yh ปีที่แล้ว +5

    Kudos to you for explaining all the scenarios for handling permissions.

  • @tusharmittal5998
    @tusharmittal5998 ปีที่แล้ว +1

    Thank you so much you just saved me a lot of time i wasnt able to find apt solution for this problem

  • @umairkhan-rw4nk
    @umairkhan-rw4nk ปีที่แล้ว +1

    I found it very useful video.
    how can we handle for multiple permissions.
    Please make one video for multiple permissions.
    Thanks for this amazing video.

  • @jlmg3543
    @jlmg3543 6 หลายเดือนก่อน

    This was spectacular, thank you so much!

  • @vikasmalik1744
    @vikasmalik1744 ปีที่แล้ว

    🎉🎉🎉Great mam, awesome tutorial, but i wnat to know how to take latest read and write permissions in android java. Please make a 2 minutes video on that. 😢😢😢❤❤❤

  • @javawithsam
    @javawithsam ปีที่แล้ว

    Thank you very much! You really helped me, keep it up!

  • @JorgeVazquez-ge6tt
    @JorgeVazquez-ge6tt ปีที่แล้ว

    Muchas Gracias por el tiempo de hacer este video, muy bueno lo recomindo !!

  • @codewithcc
    @codewithcc 9 หลายเดือนก่อน

    love it , everyone should watch it

  • @Mousoukyou
    @Mousoukyou ปีที่แล้ว

    Finally! Thank you so much.

  • @jeet198
    @jeet198 ปีที่แล้ว +1

    How to get storage permission to download a file and save that in the folder of the internal storage. On Android 13.

  • @60_vivekkesharwani95
    @60_vivekkesharwani95 ปีที่แล้ว

    Thank
    u so much for this video

  • @tagarbsoft8196
    @tagarbsoft8196 ปีที่แล้ว

    Please make a video of how to add gdpr to all Android applications according to the latest modification, and thank you very much

  • @ChristianAndres-x7b
    @ChristianAndres-x7b 10 หลายเดือนก่อน

    Thank you so much for this tuto, i had some issues at permission, and this part make me do the result as i want it, but i have another issue. i´m using another library (middleware) and in that codepart they still showing an error telling me that im not request the permission. can you help with that?

  • @awaisahmad5908
    @awaisahmad5908 ปีที่แล้ว

    Thank You so much !

  • @PopCapMusicTrending
    @PopCapMusicTrending 7 หลายเดือนก่อน

    Omg this is what I need.

  • @mexico4915
    @mexico4915 ปีที่แล้ว

    Gracias esto era lo que necesitaba

  • @anils3798
    @anils3798 ปีที่แล้ว

    Thanks for the great tutorial. But it was too fast for a beginner to follow along. Can you provide the full source code for new developers to practice with it? Thanks

  • @chandanv8430
    @chandanv8430 ปีที่แล้ว

    maam iam getting Symbol cannot be resolved for initilizing the String variable for "Manifest.permission.RECORD_AUDIO"
    please help me

  • @gerdsfargen6687
    @gerdsfargen6687 9 หลายเดือนก่อน

    Ma'am you are so beautiful the explanations can we go a virtual request date please maam

  • @twin_lifesaver
    @twin_lifesaver ปีที่แล้ว +2

    Hi onRequestPermissionsResult is outdated, what is used instead, please tell me

    • @irekhatechsolutions
      @irekhatechsolutions  ปีที่แล้ว

      onRequestPermissionsResult is not deprecated in androidx.core.app.ActivityCompat class, however it is deprecated in androidx.fragment.app.Fragment class. In Fragment you can use registerForActivityResult to handle runtime permissions callback. Refer developer.android.com/reference/androidx/fragment/app/Fragment#onRequestPermissionsResult(int,java.lang.String[],int[])

    • @twin_lifesaver
      @twin_lifesaver ปีที่แล้ว

      @@irekhatechsolutions Thank you, you saved me a lot of time 😉

    • @irekhatechsolutions
      @irekhatechsolutions  ปีที่แล้ว

      @@twin_lifesaver You are welcome.

  • @bawagrafix
    @bawagrafix ปีที่แล้ว

    good explaination but speed was quite fast for beginners

  • @lthakur92411
    @lthakur92411 4 หลายเดือนก่อน

    how to do it below android 13

  • @VinnyKoder
    @VinnyKoder ปีที่แล้ว

    hello mam how are you? i hope you are doing well. i need your help . i am seeing this error. in admob (IAB TCF v2.0 errors detected) can you help me in this topic ?

    • @irekhatechsolutions
      @irekhatechsolutions  ปีที่แล้ว

      Hello Vinny. I am fine :-). Sorry, I don't have any idea on this error. You can open a ticket to Admob on this error. Let them suggest you further on this.

    • @VinnyKoder
      @VinnyKoder ปีที่แล้ว

      @@irekhatechsolutions IAB TCF v2.0 errors detected
      We've detected an issue on your IAB TC string on one or more of your sites or apps. These errors may affect your ability to serve ads to European users. A detailed report is available for you on the EU user consent page.

  • @rijupakira
    @rijupakira 9 หลายเดือนก่อน

    Mam please do this for kotlin language

  • @stobartevans7540
    @stobartevans7540 ปีที่แล้ว

    Hi how to get microphone permission status while allowe or denied

    • @irekhatechsolutions
      @irekhatechsolutions  ปีที่แล้ว +1

      To get microphone permission status you need to do checkSelfPermission(
      Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED

  • @CoinCoders
    @CoinCoders ปีที่แล้ว

    😢😢😢😢😢😢😢😢😢😢😢😢Great, but can you make a video how we take permission in a separate class and use every where in app where I need to check is that permission is granted or not. ❤❤
    Please please please please please pleas

  • @AjithKumar-vk1fw
    @AjithKumar-vk1fw 11 หลายเดือนก่อน

  • @pwhelper781
    @pwhelper781 ปีที่แล้ว

    mam can i contact you?

  • @MamtaKumari-mg4tm
    @MamtaKumari-mg4tm ปีที่แล้ว

    Mam your Instagram id