Deleting Files in External / Scoped Storage (API 30+) - Android Studio Tutorial

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 52

  • @andycass900
    @andycass900 3 года назад +6

    This is gold, Android scoped storage is a nightmare, Thank you.....

  • @alexmercerind
    @alexmercerind 2 года назад +6

    Android API is evolving... just backwards.

    • @nerox8580
      @nerox8580 4 месяца назад

      🤣🤣🤣🤣🤣🤣🤣

  • @alexmercerind
    @alexmercerind 2 года назад +1

    Thanks a lot for this!!! This is the only resource I think guiding about new scoped storage deletion.
    It's just very confusing because API level 29 & 30 are completely different and so is 28...

  • @usefulapps8809
    @usefulapps8809 3 года назад +4

    This is real gem for me.
    Thanks very much for creating awsome tutorials for us🙏🙏🙏🙏🙏

  • @anoopkulkarni2672
    @anoopkulkarni2672 3 года назад +2

    Thanks so much ! This is both fascinating and yet exasperating. Thanks for explaining it so well.

  • @shubhamshinde-lt7hr
    @shubhamshinde-lt7hr 2 года назад +1

    Thank you very very much for this scoped storage playlist.. 💜👏

  • @beachdogvet
    @beachdogvet 3 года назад +3

    Is it me or has it become Inordinately complex to simply delete a text file in Android 11? I've created an xml file in the "Download" folder. I want to delete the file before writing it again. I tried following this example, but got hung up on the whole photo stuff. Anyone know of a straightforward way or example that shows how to delete a text file from the "Download" folder for Android 11?

  • @Goku-wc1ti
    @Goku-wc1ti 2 года назад +1

    hey phillip can you help me
    i deleted the image as you said
    image get deleted from my app recycleView and it's not showing even i run app again and i also double check the uri with File(imageUri).isExist()
    but image is still in Gallery and File manager
    image is not deleted May be it entry from mediaStore get deleted but not physical file from storage
    i am using android sdk 29 ( Android 10 )

  • @crazytv6887
    @crazytv6887 3 месяца назад

    8:55 I want to notify my adapter after user delete item (deleting one of item of recyclerView ) I created interface and i am calling deletion in my activity. I also created customAdapter in my main activvity but if i customAdapter.notifyItemRemoved(id) it doesnt work. Can someone help i am begginer maybe i am doing sth wrong with viewmodel

  • @anonymous-cy5bl
    @anonymous-cy5bl Год назад +1

    Thanks a lot for helping!

  • @shobhithjb4626
    @shobhithjb4626 3 года назад

    Thanks Philip....Can you make videos on MediaStore and SAF in detail ?

  • @Adam0001
    @Adam0001 Год назад

    Amazing playlist
    Thank you so much

  • @patrikkatai2578
    @patrikkatai2578 2 года назад

    Hey Philipp, do you know how to create delete request with other generic file types like documents? This solution only works for images

  • @saurabhsingh1608
    @saurabhsingh1608 3 года назад

    Hey, can u make some videos for accessibility covered in some tutorials for List, make custom message, Sectional and Fragment & child Fragments accessibility if possible would be helpful. Your contents are awesome

  • @khushalkhunt1095
    @khushalkhunt1095 3 года назад

    what if I want to delete multiple file in one content resolver query, you only pass one uri in that query and if there is only one uri pointing at one record in media store then why they provide Selection and Selection Argument

  • @Tekkerue
    @Tekkerue 2 года назад

    Is there a way to get permission from the user to take ownership of a directory that a previous installation created? My app creates a directory in the public Documents directory and stores user created files there, but after uninstall and reinstall it no longer has access to the files it created because Android treats it like a new app. Everything else is working aside from this one major problem. Thanks!

  • @ng_hung3729
    @ng_hung3729 Год назад

    If I have an album that has 100 photos, how can I delete that album?

  • @idnull8434
    @idnull8434 3 года назад

    Hi Philipp, you were cool men. Please create video about mvi and flow.

  • @miljaarnautovic2774
    @miljaarnautovic2774 3 года назад

    can you delete folder after deleting images from folder in external directory?

  • @em_nikhil_007
    @em_nikhil_007 3 года назад

    Hey Philipp , thank you so much ..

  • @김동현-z1s9v
    @김동현-z1s9v 3 года назад

    How can i delete multiple Audio file In Android Q With Mediastore? is it possible???

  • @codingcosmos7010
    @codingcosmos7010 3 года назад +1

    Hi Philipp, when i am creating account on your website then re-verification link is not coming on my Gmail....... i have tried it out with two gmail ids.... Please look

    • @PhilippLackner
      @PhilippLackner  3 года назад +2

      Have you looked in the spam folder? If yes, what's your username?

    • @codingcosmos7010
      @codingcosmos7010 3 года назад

      @@PhilippLackner Yes in spam, promotional, etc, everywhere....... my Username was Haid

    • @codingcosmos7010
      @codingcosmos7010 3 года назад

      @@PhilippLackner Please reply

    • @PhilippLackner
      @PhilippLackner  3 года назад +1

      I approved you

    • @codingcosmos7010
      @codingcosmos7010 3 года назад

      @@PhilippLackner Thanks....

  • @adityaroy1851
    @adityaroy1851 2 года назад

    How to hide alert dialog and delete multiple images?

  • @omare7475
    @omare7475 2 месяца назад

    can someone explain what he said from 1:42

  • @shivamsethi3829
    @shivamsethi3829 3 года назад

    Thank you Philip

  • @AnilChoudhary-vv5tu
    @AnilChoudhary-vv5tu 3 года назад

    Great tutorial

  • @ruchitlogicgo8476
    @ruchitlogicgo8476 2 года назад

    I can't delete document file with this method please help me....

  • @AbdulSamad-yu1zn
    @AbdulSamad-yu1zn 3 года назад

    Please Tell how to add Audio File in MediaStore

  • @shaikhnabeel6443
    @shaikhnabeel6443 3 года назад

    But sir, there is one more method to delete any file in android 10 if we add android:requestLegacyExternalStorage and maxSdkVersion="29" in WRITE_EXTERNAL_STORAGE in Manifest....then it will never throw security exception....i wanna know is this correct method or not? i dont know why you are not replying to anyone's problem...but please communicate🙏

    • @ericks6783
      @ericks6783 3 года назад

      The requestLegacyExternalStorage flag was Google's way of giving developers some time before moving to scoped storage. From now on it is necessary to target API 30 (Android 11) so that new apps can be uploaded to the Play Store, and from November this will also apply to updating existing apps. requestLegacyExternalStorage is ignored when targeting Android 11.
      So no, that way is no longer recommended.

    • @shaikhnabeel6443
      @shaikhnabeel6443 3 года назад

      @@ericks6783 thanks☺

  • @dilawar_uchiha
    @dilawar_uchiha 3 года назад +1

    How Will file explorers work 😭

  • @Ahmed-sv9sy
    @Ahmed-sv9sy 3 года назад +1

    wtf bro like why? *ugh* now i gotta update my code :/

  • @aniketshetty4800
    @aniketshetty4800 3 года назад

    👍🏻👍🏻👍🏻👍🏻👍🏻

  • @mehulbisht9708
    @mehulbisht9708 3 года назад

    would the outro screen never return? :'(

    • @PhilippLackner
      @PhilippLackner  3 года назад

      maybe I'll make another one at some point

  • @murlipatle2705
    @murlipatle2705 3 года назад

    We can't follow MVVM on this?

    • @sagarock1012
      @sagarock1012 3 года назад

      We can follow create separate methods for Q on wards and normal delete method for below Q

  • @surajnath5148
    @surajnath5148 3 года назад

    Can you make it on java? Thanks.

    • @PhilippLackner
      @PhilippLackner  3 года назад +5

      Can you learn Kotlin? Thanks.

    • @surajnath5148
      @surajnath5148 3 года назад

      @@PhilippLackner Yeah good suggestion, thanks

  • @namanmehrotra9394
    @namanmehrotra9394 3 года назад

    Can someone please provide the code in java

  • @loveworksnoevil
    @loveworksnoevil 2 года назад

    Title should say MediaStore

  • @theai2020
    @theai2020 2 года назад

    I think android people on api level 29 trying to save that deleted photo to trashbin but that did not go as per they plan they definenlty missed upon fully exucting the delete query for api 29