PERMISSIONS - Android Fundamentals

PERMISSIONS - Android Fundamentals

Philipp Lackner

4 года назад

46,178 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Emmanuel Ekow Acquah
Emmanuel Ekow Acquah - 28.09.2023 20:01

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.

Ответить
Ohmega Tech
Ohmega Tech - 26.07.2023 07:02

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

Ответить
Byte
Byte - 28.05.2023 10:00

my brain:Lord's mercy

Ответить
Dmitry Sorokin
Dmitry Sorokin - 19.04.2023 10:27

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.

Ответить
Rishab Jain
Rishab Jain - 11.11.2022 20:48

can some one help me out after the activtyCompat(....)==packageManager.PERMISSION_GRANTED for me the PERMISSION_GRANTED IS NOT SHOWING??

Ответить
Dev Prasad
Dev Prasad - 30.10.2022 22:55

That permission dialog box is not showing for me

Ответить
Sachin Timilsina
Sachin Timilsina - 18.10.2022 09:06

This was quite the video man. Almost didn't understand it but I did it!! I understand this subject at last.

Ответить
Gilson Junior
Gilson Junior - 17.10.2022 20:12

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

Ответить
Astaghfirullahalzim Astaghfirullahalzim
Astaghfirullahalzim Astaghfirullahalzim - 29.08.2022 07:38

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?

Ответить
Charless Chen
Charless Chen - 10.07.2022 08:18

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

Ответить
Rahul Chaurasia
Rahul Chaurasia - 03.06.2022 10:09

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

Ответить
b4ux1t3
b4ux1t3 - 19.05.2022 19:43

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.

Ответить
lara
lara - 11.05.2022 20:48

Whenever i create app with internet permission it only works when installed from android studio.Not as apk why so?

Ответить
Dharmesh Basapati
Dharmesh Basapati - 08.04.2022 14:33

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,

Ответить
George Trialonis
George Trialonis - 04.04.2022 23:10

No Permission prompt after I press the button. Can somebody help?

Ответить
t1mothy
t1mothy - 02.04.2022 18:58

Awesome! 👍

Ответить
Parthiban Akt
Parthiban Akt - 30.03.2022 20:26

How to analyze in Androidmanifest.xml file mentioned permissions are required for the application? It means how to find unwanted permissions ?

Ответить
Mehmet Durmaz
Mehmet Durmaz - 26.03.2022 16:43

You are King.

Ответить
Titus Nangi
Titus Nangi - 24.03.2022 21:07

u always spot on with ur explanations...thank you Phillip

Ответить
PJ
PJ - 19.01.2022 11:13

You are amazing thanks a lot

Ответить
Amit sharma
Amit sharma - 08.12.2021 15:12

thanks bro.. from india

Ответить
DK Compilation 🔴
DK Compilation 🔴 - 09.10.2021 06:20

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?

Ответить
Kartikeya Rawat
Kartikeya Rawat - 04.10.2021 21:55

You're OG!

Ответить
Sergio Master
Sergio Master - 22.09.2021 14:07

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.

Ответить
BRIAC ROA
BRIAC ROA - 17.08.2021 21:00

too complex. start with one permission.

Ответить
Rupendra Kumar
Rupendra Kumar - 13.07.2021 23:01

How to enable location services in WebView...?

Ответить
KKN Desa Nyiur Tebel
KKN Desa Nyiur Tebel - 07.07.2021 16:08

why not able to android R this permission?

Ответить
Matt Graves
Matt Graves - 12.06.2021 03:41

I gotta add, best Android permissions video currently.

Ответить
Beta Account
Beta Account - 18.05.2021 09:59

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

Ответить
Matt Graves
Matt Graves - 14.05.2021 22:53

Very cool Philipp!

Ответить
A C
A C - 07.05.2021 22:43

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.

Ответить
Jacob Akoto
Jacob Akoto - 30.04.2021 03:08

Will this code work for android 11?

Ответить
Jishnu N Krishnan
Jishnu N Krishnan - 08.04.2021 10:48

Thank You

Ответить
I Am Funny
I Am Funny - 14.01.2021 10:41

Pls how to open permission for data collector of code on Android studio

Ответить
Denis K
Denis K - 13.01.2021 23:45

Do notifications need permissions?

Ответить
Atharva Aswale
Atharva Aswale - 03.01.2021 20:15

What about internet permission?

Ответить
HXRIN
HXRIN - 05.12.2020 14:24

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

Ответить
Manish Pingale
Manish Pingale - 24.10.2020 13:55

Why there is '=" sign in front of that function? Thanks for AWESOME content

Ответить
Allyedge
Allyedge - 20.10.2020 13:05

I knew it, you are german. Me too :D

Ответить
Николай Турьев
Николай Турьев - 15.10.2020 09:35

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

Ответить
dwisaji
dwisaji - 23.09.2020 18:42

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

Ответить
Gurarshdeep Singh
Gurarshdeep Singh - 21.08.2020 14:25

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

Ответить
21MCA009 _Himanshu Seth
21MCA009 _Himanshu Seth - 25.07.2020 06:21

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 .

Ответить
Guti c
Guti c - 19.04.2020 06:57

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

Ответить
fuady dheo
fuady dheo - 25.02.2020 07:43

Its awesome dude, keeping up make more videos, because its very useful for us to learning fundamental to expert android, love from Indonesia

Ответить
Code of Duty
Code of Duty - 24.02.2020 22:17

Nice video.
Please follow me. I have nice video too

Ответить