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...
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?
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 )
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
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
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
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!
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
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🙏
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.
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
This is gold, Android scoped storage is a nightmare, Thank you.....
Android API is evolving... just backwards.
🤣🤣🤣🤣🤣🤣🤣
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...
This is real gem for me.
Thanks very much for creating awsome tutorials for us🙏🙏🙏🙏🙏
Glad you like them!
Thanks so much ! This is both fascinating and yet exasperating. Thanks for explaining it so well.
Thank you very very much for this scoped storage playlist.. 💜👏
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?
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 )
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
Thanks a lot for helping!
Thanks Philip....Can you make videos on MediaStore and SAF in detail ?
Amazing playlist
Thank you so much
Hey Philipp, do you know how to create delete request with other generic file types like documents? This solution only works for images
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
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
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!
If I have an album that has 100 photos, how can I delete that album?
Hi Philipp, you were cool men. Please create video about mvi and flow.
can you delete folder after deleting images from folder in external directory?
Hey Philipp , thank you so much ..
How can i delete multiple Audio file In Android Q With Mediastore? is it possible???
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
Have you looked in the spam folder? If yes, what's your username?
@@PhilippLackner Yes in spam, promotional, etc, everywhere....... my Username was Haid
@@PhilippLackner Please reply
I approved you
@@PhilippLackner Thanks....
How to hide alert dialog and delete multiple images?
can someone explain what he said from 1:42
Thank you Philip
Great tutorial
I can't delete document file with this method please help me....
Please Tell how to add Audio File in MediaStore
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🙏
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.
@@ericks6783 thanks☺
How Will file explorers work 😭
wtf bro like why? *ugh* now i gotta update my code :/
👍🏻👍🏻👍🏻👍🏻👍🏻
would the outro screen never return? :'(
maybe I'll make another one at some point
We can't follow MVVM on this?
We can follow create separate methods for Q on wards and normal delete method for below Q
Can you make it on java? Thanks.
Can you learn Kotlin? Thanks.
@@PhilippLackner Yeah good suggestion, thanks
Can someone please provide the code in java
Title should say MediaStore
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