Android Permissions Using registerForActivityResult() 2021

  Рет қаралды 582

Graphics Illusion

Graphics Illusion

Күн бұрын

In Android using most of the APIs require the Developer to ask the user the Permission for it First... Simple Permissions are Granted without bothering User, But dangerous Permissions like Camera or External Storage Require Careful Scenario Planning to ask the user for specific permission.
The New Method for asking permission is by using the API called registerForActivityResult(). Using this API, It's easier to ask permission and get it's result within a Fragment instead of Activity.
registerForActivityResult() :
developer.andr...
Android Permissions :
developer.andr...

Пікірлер: 6
@robertonegri3200
@robertonegri3200 Жыл бұрын
Thanks a lot but how you have called the requestPermission variable inside its own definition but without using even if was using another funciton? Does not create recursive issues?
@graphicsillusion8598
@graphicsillusion8598 Жыл бұрын
Hey... You're welcome... I haven't called requestPermission In it's own definition.... In "requestPermission" I'm calling another function "requestStoragePermission" And Don't worry there's nothing wrong with this code. It executes perfectly without recursion
@aliihsantasdelen4030
@aliihsantasdelen4030 Жыл бұрын
thanks a lot. You are really help me. Just I wanna ask you question. Why did I wrote MaterialAlertDialogBuilder. I Wrote it like you and I delete it later. Anything didnt change
@graphicsillusion8598
@graphicsillusion8598 Жыл бұрын
That is for the scenario where User has Denied the Permission once ... In This Case, We Show a Dialog to User Explaining why we need the permission and ask the permission again... 👍
@aliihsantasdelen4030
@aliihsantasdelen4030 Жыл бұрын
@@graphicsillusion8598 oh can I see it from this video?
@Adam0001
@Adam0001 2 жыл бұрын
Hello, this does not work my code is a copy-paste of your code
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 72 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 75 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 10 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 105 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
Android UCrop Library using registerForActivityResult() Tutorial 2021
5:58
Graphics Illusion
Рет қаралды 2,6 М.
Guy Appears On Screen !
2:52
Graphics Illusion
Рет қаралды 68
Why are bootcamps not teaching Laravel?
11:31
Josh Cirre
Рет қаралды 2,7 М.
Login and Registration using Firebase in Android
36:33
Codes Easy
Рет қаралды 359 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 75 МЛН