THIS Is How You Use the New Android 13 Photo Picker (It's AMAZING!)

  Рет қаралды 34,893

Philipp Lackner

Philipp Lackner

Жыл бұрын

⭐ 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 be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
Subscribe to my FREE 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/New...
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...

Пікірлер: 80
@migueli3955
@migueli3955 Жыл бұрын
This video came through very clutch. Every other video I've found and followed through, I encountered some errors related to using deprecated APIs and receiver type mismatches when converting a Drawable object to a Bitmap object. You shared a modern implementation of selecting images using Android's new activity result API. And for that, we thank you! You earned a like and a new subscriber.
@immortal_lnight
@immortal_lnight Жыл бұрын
It works no only with photos, also with videos and other file formats. I noticed this new file picker today, and you just made a video about it
@yamadakun844
@yamadakun844 Жыл бұрын
does it work with pdf? How?
@tch.777
@tch.777 Жыл бұрын
Sweet video like always, thank you! 😊
@theai2020
@theai2020 Жыл бұрын
Again the great tutorial can't find content as good as you
@deja1408
@deja1408 Жыл бұрын
Great video, very helpful : ). Keep it up brother
@hussein9577
@hussein9577 Жыл бұрын
Thanks philpp for your great content.
@mehrtashsouri6862
@mehrtashsouri6862 Жыл бұрын
Dear Philip . is there a library for image cropping and resizing for jetpack compose ?
@Marcix456
@Marcix456 Жыл бұрын
Nailing the thumbnail!
@alskaa1
@alskaa1 Жыл бұрын
thanks for your sharing
@amirhosseinghafoorian9985
@amirhosseinghafoorian9985 Жыл бұрын
amazing content , thanks
@arcadudu
@arcadudu Жыл бұрын
Many thanks for useful content!
@pratyanshmaddheshia5415
@pratyanshmaddheshia5415 8 ай бұрын
thank you !! it helped me alot.
@carlozgrafic1276
@carlozgrafic1276 Ай бұрын
Muchas gracias! Buen contenido como siempre.
@zohaibraza1365
@zohaibraza1365 Жыл бұрын
Hi Philip, thanks for such amazing videos. Does it handle the permissions stuff itself or do we want to handle it on our own ?
@ArnyminerZ
@ArnyminerZ Жыл бұрын
In fact, this picker is exactly for this, it doesn't grant any permissions. The uri returned is what is authorized.
@Akshaykumar-xr9yj
@Akshaykumar-xr9yj Жыл бұрын
Phillipp Lackner, Please make a video on how we can use Services in android using clean architechture in jetpack compose and we can use callbacks like onResume and onPause to bind and unbind the services.
@proandroiddevir
@proandroiddevir Жыл бұрын
It is possible to post a tutorial on cropping photos? Thank you very much Philip Lackner
@johnshepard1267
@johnshepard1267 11 ай бұрын
The biggest problem I encountered with that picket was that when picking multiple photos - it doesn't return them in the order you selected the photos. It always return the photos and some wierd order, probably by creation data or something. And I didn't find any way to handle this. So, I think I will have to look for some custom photo picker...
@imamyusupbachtiar5461
@imamyusupbachtiar5461 Жыл бұрын
Could you make it for using the camera please , capture a image and show it. and also make a preview like normal camera apps like they are including change camera lens, capture button, flash button.
@Leon-un2ii
@Leon-un2ii Жыл бұрын
Awesome! Please make an alarm clock app. It would be great! Or a "remind me" app.
@michaelfeb8418
@michaelfeb8418 Жыл бұрын
What mac you use for android developement?
@user-me1ry6lg6d
@user-me1ry6lg6d 5 ай бұрын
What a video Philip !!! i would like a thousand times if KZfaq had that feature ! However , what if you wanted to send the image to a server ? how would that be like ? Thanks sir.
@galaxiegalaxie5003
@galaxiegalaxie5003 Жыл бұрын
does it work for the image size of 2-3 mb each, will there be some lagging on ui? also how do i compress the image i selected say 2 mb pic to 400 kb compreesed image and then show on ui? is there any particular library for this? could you make this kind of video as well.thanks for your great content.
@acclorite_
@acclorite_ 7 ай бұрын
Thanks for the video. Actually it works on lower APIs, i tested on Android 8(API 26) and it works perfectly fine, though i tested only single photo picker.
@John-ub3su
@John-ub3su Жыл бұрын
Pros: no permission needed, support choose limit, better UI. Cons: another different type of Uri, can't get image info like folder name or exif through ContentResolver, using OPEN_DOCUMENT as a backup. I think currently it's pretty hard to maintain, using a custom picker is much more easy.
@John-qt6qk
@John-qt6qk 10 ай бұрын
Awesome! What a about a contextual menu ?
@amirhoseinmusavi4965
@amirhoseinmusavi4965 9 күн бұрын
The best teacher in the world
@cipriangabor45
@cipriangabor45 Жыл бұрын
Amazing video
@steven23811
@steven23811 9 ай бұрын
I have a similar task for school. I need to choose an image from gallery like you did, but when I pick an image, options for opening the image need to be dislpayed. For example, I choose an image, choose Gallery application, and the image opens in the Gallery app. How would i do this?
@mobileappsdevware264
@mobileappsdevware264 Жыл бұрын
Thanks for your great effort. I have a question here, do we need permissions to fetch images here?
@likatest7718
@likatest7718 8 ай бұрын
What does did function NewPhotoPickerAndroid13Theme do in line 31? Sorry i actually really beginner in here
@gori_maheswari8994
@gori_maheswari8994 Жыл бұрын
Amazing😍
@moheltanani1036
@moheltanani1036 11 ай бұрын
Where did you get that android light behind you?
@dwaynewalley8301
@dwaynewalley8301 11 ай бұрын
Please tell me did Android remove location data from photos in their new image picker???
@santubasak7860
@santubasak7860 Жыл бұрын
Please make a video on how to enable the automatic installation of the backported photo picker module through Google Play services for API level 19 through API level 29. There's something wrong in the code to write in the application tag of the Manifest for the same as mentioned in the official document. Please help because there' s not a single solution for this in the internet even though the problem is real.
@DaumasDev
@DaumasDev 8 ай бұрын
Muy bueno y útil, saludos desde Argentina!
@laszlobarnaludescher7847
@laszlobarnaludescher7847 7 ай бұрын
thx
@muhsinakdogan2667
@muhsinakdogan2667 Жыл бұрын
is there any way to get audios like images ? / What is the best way get audios in android 13?
@cengieyt
@cengieyt 29 күн бұрын
sorry if this question is dumb but is this best practise? is it okay to use this without asking for permissions?
@harshsaini2639
@harshsaini2639 22 күн бұрын
Wait for the new Android 14 permission for only user only selected photos
@muhammaddanial3954
@muhammaddanial3954 Жыл бұрын
How do we convert the uri to a file and upload it to the server? Stuck on this for days .. new to images and file
@osamasayed4086
@osamasayed4086 4 ай бұрын
You can simply get the path from Uri, and then send it using the Midpart body available in Retrofit
@jousufjacob8251
@jousufjacob8251 4 ай бұрын
Hi Buddy, can you make tutorial that how can save the images save to room from imagePicker. thanks
@operatorkareto1180
@operatorkareto1180 Жыл бұрын
how should i use auto image slider ?😭😭
@RiteshVishwakarma-jg3px
@RiteshVishwakarma-jg3px Ай бұрын
Can we customize this gallery picker
@jirigongol4207
@jirigongol4207 Жыл бұрын
I have problem, when I store Uri to Room DB and when I relaunch app, it dont load image but only white square. Does anyone know where could be the problem?
@dogu0101
@dogu0101 8 ай бұрын
I guess it's not okay to store uri's in the database because they are only usable for a short period of time. So when you restart the app, the uri's inside the database already became useless.
@BQ-AI
@BQ-AI 11 ай бұрын
Does not shows all folder in album
@MrBoy-bc4zy
@MrBoy-bc4zy 7 ай бұрын
guys help please how to get permission to get photos not only throught photopicker
@ALEFA-ID
@ALEFA-ID 2 ай бұрын
man Im struggling in saving the uri into Room db. my approach was convert the URI to string then saved it in room db, then I use URI.parse(string_uri) but the image is not shown after I close the app. can you please guide?
@PhilippLackner
@PhilippLackner 2 ай бұрын
Watch my video about Uris and you'll know why 😄
@ALEFA-ID
@ALEFA-ID 2 ай бұрын
@@PhilippLackner please advice bro. Already watched that but not solving the problem
@denisk3852
@denisk3852 Жыл бұрын
Multiple picking does not work on android 12 without limit of images
@WeAreFitnessFreak
@WeAreFitnessFreak Жыл бұрын
Please help me I got stucked in between production of my fitness app. Whenever I add Room (entity+dao+abstract database) i get an error:- string too large to encode using UTF-8 instead written as 'STRING_TOO_LARGE'. Please help me to get out of this error.
@Trcmrtrac
@Trcmrtrac Жыл бұрын
What are you trying to save to the room database?
@WeAreFitnessFreak
@WeAreFitnessFreak Жыл бұрын
@@Trcmrtrac just 2 things name and number
@WeAreFitnessFreak
@WeAreFitnessFreak Жыл бұрын
@@Trcmrtrac can you resolve the issue?
@MCStarYT
@MCStarYT Жыл бұрын
Is there a similar good looking solution for older Android versions?
@PhilippLackner
@PhilippLackner Жыл бұрын
Just the normal file picker from the gallery
@samdroid37
@samdroid37 Жыл бұрын
Thank you again this is awesome. A video over how to persist images using this strategy would be great to see from you. DataStore? Room? Uri's are a pain.
@McRookworst
@McRookworst Жыл бұрын
Does this work with xml? Or compost only?
@ArturoDevA
@ArturoDevA Жыл бұрын
Works with XML
@ArturoDevA
@ArturoDevA Жыл бұрын
Why dont request permission ??
@JahnDough
@JahnDough Жыл бұрын
I dont want itttt, how to remove lol?
@xpopcornx1747
@xpopcornx1747 Жыл бұрын
It has a huge flaw. Photo picker removes location data so if you don't want this it's unusable.
@nickvillareallycool5228
@nickvillareallycool5228 Жыл бұрын
wow thats horrible
@ka61er
@ka61er 10 ай бұрын
bruh it's very helpful to prevent hacker or stranger find your location
@tippufisalsheriff1071
@tippufisalsheriff1071 Жыл бұрын
How to restrict the count for image selection
@tippufisalsheriff1071
@tippufisalsheriff1071 Жыл бұрын
Answer finded: val photoPickers = rememberLauncherForActivityResult( contract = ActivityResultContracts.PickMultipleVisualMedia(maxItems = 5), onResult = { uris -> selectedImageUris = uris }) // set maxItems on contract
@BaldingEagle51
@BaldingEagle51 11 ай бұрын
Drawing the line at 10 for most people will remove too many supported devices, which means you must keep a fallback and maintain both.
@juandurini309
@juandurini309 10 ай бұрын
I tested this just now on Api 25 (7.1 Nougat) and it works just fine. It doesn't show a modal as in the video, but it shows your files management screen and you can choose any picture there (I just tested the singlePhoto method, as that was what I needed)
@penelopeisgoingofftopic6786
@penelopeisgoingofftopic6786 Жыл бұрын
Me with my Derpdroid 8.1
@naskar23
@naskar23 Жыл бұрын
Doesn't it need permission to access the media?
@sanryoooo
@sanryoooo Жыл бұрын
i was going to ask the same
@ashar9327
@ashar9327 Жыл бұрын
🌹🌹🌹🌹
@ashar9327
@ashar9327 Жыл бұрын
@office_Philipp_Lackner01 how can I get it ?
@dzartxstudio
@dzartxstudio Жыл бұрын
First
@fuckgooglestoptryingtoforc6613
@fuckgooglestoptryingtoforc6613 11 ай бұрын
In my experience there is a bug here. If you select an image from "recent" the uri leads nowhere but if you select a video from recent or a photo from camera it works fine. Wtf.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
How to Build a Camera App With CameraX - Taking Photos
29:35
Philipp Lackner
Рет қаралды 37 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 15 МЛН
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 335 М.
We Built an App in 24 Hours [No Code]
11:56
Raw Startup
Рет қаралды 418 М.
React Native vs Flutter in 2024 - Make the RIGHT Choice (Difference Explained)
10:31
Daniel Dan | Tech & Data
Рет қаралды 159 М.
Gestures in Jetpack Compose
31:33
Android Developers
Рет қаралды 22 М.
Intents & Intent Filters - Android Basics 2023
25:36
Philipp Lackner
Рет қаралды 67 М.
What Are APIs? - Simply Explained
6:49
Simply Explained
Рет қаралды 877 М.
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 90 М.
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН