Тёмный

How to Do PROPER Permission Handling in Jetpack Compose - Android Studio Tutorial 

Philipp Lackner
Подписаться 175 тыс.
Просмотров 26 тыс.
50% 1

In this video you will learn how you can properly request runtime permissions in a Jetpack compose project.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses/
💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:
elopage.com/s/philipplackner/...
Subscribe to my newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/newsletter
Join this channel to get access to perks:
/ @philipplackner
Get the source code for this video here:
github.com/philipplackner/Per...
Regular live codings on Twitch:
/ philipplackner
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/philippl...

Опубликовано:

 

8 ноя 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@PhilippLackner
@PhilippLackner Год назад
Seems like things have changed and not everything is working anymore as it used to. Will soon make another updated video about permissions in compose :)
@NeerajKumar-du4rm
@NeerajKumar-du4rm Год назад
they added perm.status
@meghashreeacharya5057
@meghashreeacharya5057 Год назад
Can you create a video on non-compose implementation using same logic
@meme_Overflow
@meme_Overflow Год назад
@@NeerajKumar-du4rm bro I m using it in a floating button but it's not working as expected please suggest me Dialog is not showing
@aestheticdesigns7469
@aestheticdesigns7469 2 года назад
Bro you are doing tutorials for all important topics. Thanks keep doing:)
@shaikhshafeen
@shaikhshafeen 2 года назад
I can't thank you enough for all these work that you have done. I am really happy to stumble upon your channel. Nobody bothers to make good videos on android development in Kotlin. Also PLEASE don't care about the views and likes maybe like me if others dig a bit deep they will surely find the gem! Once again thanks a lot and keep up the good work!
@tikayz
@tikayz 2 года назад
Nobody explains concepts better than you do. keep up the good work. Thanks so much for all these free tutorials
@davidgaskillUK
@davidgaskillUK 2 года назад
Thank you very much! Another great tutorial!
@ubersticks
@ubersticks 2 года назад
Thanks Phillip - short and sweet, excellent.
@PhilippLackner
@PhilippLackner 2 года назад
Very welcome
@deepakdas6423
@deepakdas6423 2 года назад
Lots of love from India... Your videos are very helpful...
@kunduztalaybekovna8406
@kunduztalaybekovna8406 2 года назад
Thank you very much! )
@kisanshah3739
@kisanshah3739 2 года назад
Nice video 🔥🔥🔥 Please cover Local storage with MVVM.
@akashkumardas6521
@akashkumardas6521 2 года назад
Thank you so much sir
@mustafaammar551
@mustafaammar551 2 года назад
very cool thank you
@kanutso2425
@kanutso2425 Год назад
thanks for helping : )
@vengateshm2122
@vengateshm2122 2 года назад
Thank You. Since permissionState is inside composable we have used DisposableEffect. Otherwise we can request in onResume or separate class of Lifecycle observer registered in activity. Please create a video on creating custom rememberState() For instance rememberBatteryLevelState() rememberNetworkConnectionState() so that we can observe and change the ui. This will be helpful in real projects.
@harisai3580
@harisai3580 2 года назад
Thankyou sir, I have been thinking about this. You have clarified.
@immanueljzv6832
@immanueljzv6832 2 года назад
Hey philip thank you for the great tutorial, I was wondering whether we could call the permissions inside a plain kotlin file or should it be defined in class of activity or fragment ?
@DaleHawkins
@DaleHawkins 2 года назад
Well, that's what I get for coding along and listening to the audio as a queue to focus back on the video. (Hit the ON_RESUME vs ON_START issue. :-) )
@dendroid4389
@dendroid4389 Год назад
danke!❤❤
@codinginflow
@codinginflow 2 года назад
first
@ChrisAthanas
@ChrisAthanas 2 года назад
The Florian Raider is back!
@velitasali
@velitasali 2 года назад
Nice video. Btw Android kills the app if the user revokes permission while the app is running. Also, instead of DisposableEffect, wouldn't launchWhenResumed also work in this scenario (although I haven't used it before)?
@anthonycraddock4782
@anthonycraddock4782 2 года назад
Another excellent tutorial, thanks Philipp!! I love learning about the latest libraries and API's that are available. Can I ask a true or false question? Using these experimental features in practice code is fine and one day they will probably become non-experimental but if you were to publish an app on the Play store your code should not contain any experimental API's or dependency library's in beta or alpha versions?
@PhilippLackner
@PhilippLackner 2 года назад
Tbh, I personally don't pay much attention to that. When I take a look at coroutines, there are things marked as experimental for ages (like runBlockingTest). In regards to compose im more careful and not using that in general for production yet. Not because it's unstable, but because it can lead to a lot of unexpected issues and things that can't easily be done yet
@anthonycraddock4782
@anthonycraddock4782 2 года назад
@@PhilippLackner
@mykhailomykytyn
@mykhailomykytyn Год назад
straight to prod
@pranavsubramanian2549
@pranavsubramanian2549 2 года назад
Philipp, I am a 12-year-old student working on a project. Your videos are really good for beginners. If not for your channel I would not be able to do my project. My Suggestions: Please make content on: Advanced UI with Jetpack Compose Google Accompanist for Jetpack Jetpack navigation Advanced Chat Application Recording and Playing Audio/Video Jetpack Compose Multiplatform Building Jetpack Libraries Speech-to-Text and Text-To-Speech And many more AI projects Thank you so much for the work you're doing.
@friendsandfamily2312
@friendsandfamily2312 2 года назад
please make more tutorials on android canvas
@SudhanshuKumar-xy6xv
@SudhanshuKumar-xy6xv 2 года назад
🔥🔥
@FCXPERT10
@FCXPERT10 2 года назад
Please upload videos about mvvm in jetpack compose
@sebastianseno9285
@sebastianseno9285 Год назад
Philipp you should enable your "Thanks" button on RU-vid. I want to treat you a coffee sometimes 😁.
@jemspatel5359
@jemspatel5359 2 года назад
Please make video about local storage with MVVM 😁😁
@brainman2125
@brainman2125 2 года назад
Thanks for video! But now this tutorial is outdated , with the last version of this library has changed some things
@amineayachi335
@amineayachi335 2 года назад
the best 5 starts/5
@alexaguiar7268
@alexaguiar7268 2 года назад
@ExperimentalPermissionsApi gives now an error in kotlin compiler 1.6. I see no further solution
@thebigboi5357
@thebigboi5357 2 года назад
Try moving the annotation to the top of the MainActivity class rather than above setContent{}
@alfietapping4034
@alfietapping4034 2 года назад
Something this doesn't cover is when giving a permission, how can a developer handle that? A real life scenario would be to give access to the the phone's media after both camera & read external storage permission is given, so what should you do inside perm.hasPermission {} to then check read external storage is also given?
@PhilippLackner
@PhilippLackner 2 года назад
of course this is very individual depending on the permission you're requesting. This is not a storage, camera or whatever tutorial
@mahetachirag8395
@mahetachirag8395 2 года назад
What about flutter??
@ashokkar5790
@ashokkar5790 Год назад
completely secouried
@ericgacoki2225
@ericgacoki2225 2 года назад
Why is no one talking about the thumbnail? 😂
@bokangthoola9095
@bokangthoola9095 2 года назад
First to comment!
@martinmaartensson
@martinmaartensson 2 года назад
second
@MrJonas04
@MrJonas04 2 года назад
Fourth!
@Berk45632
@Berk45632 2 года назад
People from StackOverflow: these are all stupid comments. 😂
@bren7473
@bren7473 Год назад
Androids logic behind permissions is so bizarrely confusing to implement. Now accompanist permissions has been updated and it no longer works properly for me. Why in the hell is google making permissions so confusing to implement?
@haissayf
@haissayf 2 года назад
Nice tutorial but the thumbnail 🤣🤣🤣🤣🤣
@nickvillareallycool5228
@nickvillareallycool5228 Год назад
Why is DisposableEffect needed instead of just SideEffect?
Далее
Make Your Code Clean With the SOLID Principles
18:24
Просмотров 96 тыс.
Memory Leaks on Android
18:36
Просмотров 56 тыс.
Clean Theming in Compose (You're Doing It Wrong!)
10:43
Most overpowered way to build mobile apps?
8:33
Просмотров 744 тыс.
How To Properly Handle Permissions in Android
21:36
Просмотров 1 тыс.
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23