Комментарии:
I want to say a big thanks Philipp. Your videos have a very easy-to-grasp logic and have been a big help with my studies. I would like to request if you could make an update on the permissions video. When I follow the session after launching the app, it does not show the request to accept permissions.
ОтветитьOK but this doesn't explain at all when you should request the permissions, what to do once you've gotten them, when yo might need to request them again or anything about how permissions work in the context of a full Android application
Ответитьmy brain:Lord's mercy
Ответитьthis code will only work for API<=29,
it would be great to update the lessons with the new requirements, and even better to talk about them.
can some one help me out after the activtyCompat(....)==packageManager.PERMISSION_GRANTED for me the PERMISSION_GRANTED IS NOT SHOWING??
ОтветитьThat permission dialog box is not showing for me
ОтветитьThis was quite the video man. Almost didn't understand it but I did it!! I understand this subject at last.
ОтветитьHey man, need some help, do you know why is this permission?
<uses-permission android:name="android.permission.ACCOUNT_MANAGER" />
I tried to remove it and run the app, did several tests and apparently nothing changed, but I am trying to understand why this permission is needed, thank you
suddenly i am thinking if i can convert manifest file into JSON object then maybe i can do something with it using javascript..
does xml code being compiled/ parsed into java byte code?
is there a way of asking permission using kotlin (programmatically) and not xml
is xml secure?
Hi phillip i could really understand about every video you've put into work. But there's one that still confused me.
Why we use hasWriteExternalStorage with "function (private fun)" instead of "variable (var/val)"
Please help if someone could give an explanation. Thankyou
Nice Video Sir, How to handle when user again click "deny and Don't ask again" . I prefer open device permission setting on the basis of result of onRequestPermissionResult. Please guide ??
ОтветитьHey Philipp, I love your videos.
I just wanted to point out that this workflow is (sorta?) deprecated according to the documentation. I'd love to see an updated video covering the new paradigm. I've been trying to wrap my head around it, and was kind of disappointed you don't have a more recent video on this, since you're who I turn to to clarify stuff like this!
In any case, keep up the great work. Loving the newer Compose content.
Whenever i create app with internet permission it only works when installed from android studio.Not as apk why so?
ОтветитьHi Philipp,
Great video once again.
Could you please create one more video showing how to use new Activity Contract API for requesting permissions and handling denying and rejections.
Thanks in advance,
No Permission prompt after I press the button. Can somebody help?
ОтветитьAwesome! 👍
ОтветитьHow to analyze in Androidmanifest.xml file mentioned permissions are required for the application? It means how to find unwanted permissions ?
ОтветитьYou are King.
Ответитьu always spot on with ur explanations...thank you Phillip
ОтветитьYou are amazing thanks a lot
Ответитьthanks bro.. from india
Ответитьwhat is the difference between dexter permissions and android default permissions is dexter more powerfull then the default android permissions and will this code run with android 11 as well?
ОтветитьYou're OG!
ОтветитьIf your app targets Android 10 (API level 29) or higher, remove the ACCESS_BACKGROUND_LOCATION permission from your app's manifest. When you remove this permission, all-the-time access to location isn't an option for the app on devices that run Android 10.
Ответитьtoo complex. start with one permission.
ОтветитьHow to enable location services in WebView...?
Ответитьwhy not able to android R this permission?
ОтветитьI gotta add, best Android permissions video currently.
ОтветитьIt is not working on A11 like the pop up for asking for permission is not showing up at all on clicking button, the log says button was clicked but nothing regarding the permission
while the app works properly on A10 or below
Very cool Philipp!
ОтветитьMay 2021 update: For those having trouble with location permissions on API 30 or higher, here is a solution.
Within requestPermissions(), on the third if() statement regarding background permissions, change the code to:
if(!hasLocationBackgroundPermission() && hasLocationForegroundPermission())
In this case, the button must be clicked twice to request background location permissions. (I'm sure there's a more correct way to implement this, but this is an easy way to correct the problem in this case).
To learn more why this works, look up "Request location permissions" in the Android Developer documentation. There is a statement that says requesting foreground and background permissions at the same time will be ignored. Furthermore, background permissions will not be granted unless foreground permissions were previously granted.
Will this code work for android 11?
ОтветитьThank You
ОтветитьPls how to open permission for data collector of code on Android studio
ОтветитьDo notifications need permissions?
ОтветитьWhat about internet permission?
ОтветитьHi Phillip, thanks a lot for your tutorials, they are great. I am having problem with this part though, I've done everything you did but Im not getting the Permission prompt after clicking a button, nothing happens. I am using API 30 (Pixel 2) - could that be a problem? Thanks a lot
ОтветитьWhy there is '=" sign in front of that function? Thanks for AWESOME content
ОтветитьI knew it, you are german. Me too :D
ОтветитьVery very cool. Very local, as if everything was gradually assembled, the first I see this. You are younger !!! Good luck, thanks for the content !!!
Ответитьhey can you helped me?
my code give a warning on
btnpermisi.setOnClickListener {
requestPermissions()
}
it give warning no value for parameter 'permissons' and 'requested code'
its something wrong but idk how to solve it
thanks
Here in HAS functions we use = sign ...not curly brackets ... I noticed If I put brackets and specify type explicit then == GrantPermission..... not works ...why ??
ОтветитьVery nice explanation , dear sir I have two questions
1. In my mobile this code only asks for COARSE_LOCATION and EXTERNAL_STORAGE but not for BACKGROUND_LOCATION
I don't know why ???
2. When I accept those permission my GPS location doesn't on , and also internet connection doesn't ON, Why ?? I have accepted those permission .
Nice video as always!!! I have a question with this line:
if(permissionsToRequest.isNotEmpty()) {
ActivityCompat.requestPermissions(this,permissionsToRequest.toTypedArray(),0)
}
I dont understand well why you use ActivityCompat.requestPermissions(this,permissionsToRequest.toTypedArray(),0)
Thanks a lot for such amazing videos
Its awesome dude, keeping up make more videos, because its very useful for us to learning fundamental to expert android, love from Indonesia
ОтветитьNice video.
Please follow me. I have nice video too