PERMISSIONS - Android Fundamentals

preview_player
Показать описание
In this video you will learn everything you need to know about permissions in Android.

⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

🎓 Become an industry-ready developer in the Mobile Dev Campus:

🎁 Get my FREE 4.5h course "The Best Practice Guide to Android Architecture":

Read our weekly Android blog:

Рекомендации по теме
Комментарии
Автор

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:
&&

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.

s-w
Автор

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.

buxt-tech
Автор

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

fuadydheo
Автор

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

НиколайТурьев-жр
Автор

Hi, Philipp, thanks again for your awesome content!
Can I ask why at 11:10 you specified that in this case "Make sure you use ActivityContext instead of ApplicationContext"?
Still confused about when to use ActivityContext or ApplicationContext

nervous
Автор

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

TheImaginativeSachin
Автор

so confusing man!! :0
edit:
i've watched it like 5 times i understand :)
thank you so much Pal

code_sorcererx
Автор

very precise and complete at the same time, thank you Philipp

shivtiwarii
Автор

I gotta add, best Android permissions video currently.

matt-g-recovers
Автор

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.

emmanuel_n_e_acquah
Автор

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

titusnangi
Автор

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

charlesschen
Автор

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

rahulchaurasia
Автор

Dexter is useful to manage multiple permissions, which is better ?

KhinYadanarZaw-llcq
Автор

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,

dharmeshbasapati
Автор

Sir i visited your site to buy android course unfortunatly i can't effort. I'm working as a Mobile App developer only for 120$ per month. Sir if you have any scholor program please let me know. Btw thank you for you high quality tutorials.

prolaymm
Автор

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.

redballtoy
Автор

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?

footballCartoon
Автор

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

hxrin
Автор

That permission dialog box is not showing for me

devprasad