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

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2022
  • ⭐ 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 ปีที่แล้ว +6

    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.

  • @theai2020
    @theai2020 ปีที่แล้ว +1

    Again the great tutorial can't find content as good as you

  • @tch.777
    @tch.777 ปีที่แล้ว +1

    Sweet video like always, thank you! 😊

  • @immortal_lnight
    @immortal_lnight ปีที่แล้ว +10

    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 ปีที่แล้ว +1

      does it work with pdf? How?

  • @Marcix456
    @Marcix456 ปีที่แล้ว +1

    Nailing the thumbnail!

  • @hussein9577
    @hussein9577 ปีที่แล้ว

    Thanks philpp for your great content.

  • @deja1408
    @deja1408 ปีที่แล้ว

    Great video, very helpful : ). Keep it up brother

  • @mehrtashsouri6862
    @mehrtashsouri6862 ปีที่แล้ว +8

    Dear Philip . is there a library for image cropping and resizing for jetpack compose ?

  • @alskaa1
    @alskaa1 ปีที่แล้ว

    thanks for your sharing

  • @arcadudu
    @arcadudu ปีที่แล้ว

    Many thanks for useful content!

  • @carlozgrafic1276
    @carlozgrafic1276 หลายเดือนก่อน

    Muchas gracias! Buen contenido como siempre.

  • @amirhosseinghafoorian9985
    @amirhosseinghafoorian9985 ปีที่แล้ว

    amazing content , thanks

  • @pratyanshmaddheshia5415
    @pratyanshmaddheshia5415 8 หลายเดือนก่อน

    thank you !! it helped me alot.

  • @zohaibraza1365
    @zohaibraza1365 ปีที่แล้ว +4

    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 ปีที่แล้ว +1

      In fact, this picker is exactly for this, it doesn't grant any permissions. The uri returned is what is authorized.

  • @amirhoseinmusavi4965
    @amirhoseinmusavi4965 7 วันที่ผ่านมา

    The best teacher in the world

  • @proandroiddevir
    @proandroiddevir ปีที่แล้ว +2

    It is possible to post a tutorial on cropping photos?
    Thank you very much Philip Lackner

  • @cipriangabor45
    @cipriangabor45 ปีที่แล้ว

    Amazing video

  • @gori_maheswari8994
    @gori_maheswari8994 ปีที่แล้ว

    Amazing😍

  • @user-me1ry6lg6d
    @user-me1ry6lg6d 5 หลายเดือนก่อน

    What a video Philip !!! i would like a thousand times if TH-cam had that feature ! However , what if you wanted to send the image to a server ? how would that be like ? Thanks sir.

  • @DaumasDev
    @DaumasDev 8 หลายเดือนก่อน

    Muy bueno y útil, saludos desde Argentina!

  • @Akshaykumar-xr9yj
    @Akshaykumar-xr9yj ปีที่แล้ว +1

    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.

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

  • @John-qt6qk
    @John-qt6qk 10 หลายเดือนก่อน

    Awesome! What a about a contextual menu ?

  • @imamyusupbachtiar5461
    @imamyusupbachtiar5461 ปีที่แล้ว +2

    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.

  • @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.

  • @mobileappsdevware264
    @mobileappsdevware264 ปีที่แล้ว

    Thanks for your great effort. I have a question here, do we need permissions to fetch images here?

  • @moheltanani1036
    @moheltanani1036 11 หลายเดือนก่อน

    Where did you get that android light behind you?

  • @John-ub3su
    @John-ub3su ปีที่แล้ว +1

    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.

  • @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.

  • @laszlobarnaludescher7847
    @laszlobarnaludescher7847 6 หลายเดือนก่อน

    thx

  • @likatest7718
    @likatest7718 8 หลายเดือนก่อน

    What does did function NewPhotoPickerAndroid13Theme do in line 31? Sorry i actually really beginner in here

  • @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...

  • @muhsinakdogan2667
    @muhsinakdogan2667 ปีที่แล้ว

    is there any way to get audios like images ? / What is the best way get audios in android 13?

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

  • @jousufjacob8251
    @jousufjacob8251 4 หลายเดือนก่อน

    Hi Buddy, can you make tutorial that how can save the images save to room from imagePicker. thanks

  • @dwaynewalley8301
    @dwaynewalley8301 11 หลายเดือนก่อน

    Please tell me did Android remove location data from photos in their new image picker???

  • @santubasak7860
    @santubasak7860 ปีที่แล้ว +1

    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.

  • @samdroid37
    @samdroid37 ปีที่แล้ว +1

    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.

  • @operatorkareto1180
    @operatorkareto1180 ปีที่แล้ว

    how should i use auto image slider ?😭😭

  • @muhammaddanial3954
    @muhammaddanial3954 ปีที่แล้ว +3

    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 3 หลายเดือนก่อน

      You can simply get the path from Uri, and then send it using the Midpart body available in Retrofit

  • @harshsaini2639
    @harshsaini2639 21 วันที่ผ่านมา +1

    Wait for the new Android 14 permission for only user only selected photos

  • @RiteshVishwakarma-jg3px
    @RiteshVishwakarma-jg3px หลายเดือนก่อน

    Can we customize this gallery picker

  • @cengieyt
    @cengieyt 28 วันที่ผ่านมา

    sorry if this question is dumb but is this best practise? is it okay to use this without asking for permissions?

  • @MCStarYT
    @MCStarYT ปีที่แล้ว

    Is there a similar good looking solution for older Android versions?

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +1

      Just the normal file picker from the gallery

  • @jirigongol4207
    @jirigongol4207 ปีที่แล้ว +1

    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

  • @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 ปีที่แล้ว +1

      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?

  • @McRookworst
    @McRookworst ปีที่แล้ว

    Does this work with xml? Or compost only?

    • @ArturoDevA
      @ArturoDevA ปีที่แล้ว

      Works with XML

  • @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

  • @MrBoy-bc4zy
    @MrBoy-bc4zy 7 หลายเดือนก่อน

    guys help please how to get permission to get photos not only throught photopicker

  • @denisk3852
    @denisk3852 ปีที่แล้ว

    Multiple picking does not work on android 12 without limit of images

  • @tippufisalsheriff1071
    @tippufisalsheriff1071 ปีที่แล้ว

    How to restrict the count for image selection

    • @tippufisalsheriff1071
      @tippufisalsheriff1071 ปีที่แล้ว +1

      Answer finded:
      val photoPickers = rememberLauncherForActivityResult(
      contract = ActivityResultContracts.PickMultipleVisualMedia(maxItems = 5),
      onResult = { uris -> selectedImageUris = uris })
      // set maxItems on contract

  • @ArturoDevA
    @ArturoDevA ปีที่แล้ว

    Why dont request permission ??

  • @JahnDough
    @JahnDough ปีที่แล้ว

    I dont want itttt, how to remove lol?

  • @penelopeisgoingofftopic6786
    @penelopeisgoingofftopic6786 ปีที่แล้ว

    Me with my Derpdroid 8.1

  • @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 หลายเดือนก่อน +1

      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)

  • @xpopcornx1747
    @xpopcornx1747 ปีที่แล้ว +1

    It has a huge flaw. Photo picker removes location data so if you don't want this it's unusable.

    • @nickvillareallycool5228
      @nickvillareallycool5228 ปีที่แล้ว +1

      wow thats horrible

    • @ka61er
      @ka61er 10 หลายเดือนก่อน

      bruh it's very helpful to prevent hacker or stranger find your location

  • @ashar9327
    @ashar9327 ปีที่แล้ว

    🌹🌹🌹🌹

    • @ashar9327
      @ashar9327 ปีที่แล้ว

      @office_Philipp_Lackner01 how can I get it ?

  • @naskar23
    @naskar23 ปีที่แล้ว

    Doesn't it need permission to access the media?

    • @sanryoooo
      @sanryoooo ปีที่แล้ว

      i was going to ask the same

  • @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.