Scoped Storage in Android in a Nutshell
HTML-код
- Опубликовано: 31 июл 2024
- Scoped Storage is mandatory for Android R. This video tells you what it is and how you can make use of it.
⭐ 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/...
Regular Android tutorials on my Instagram: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
Totally stupid step taken by Google, they are making android more like ios day by day
wuow, very excited to see the special effects and animations you will be using in a year from now. It's looking super professional!
thanks sir, in a year I will animate realistic hollywood movies with vector graphics from scratch
excellent video. Google just keeps making access to the file system harder and more confusing than it needs to be.
I miss Android 5 and under. Native and File access through simple paths
Dude, I just wanna tell you are improving yourself more and more just keep going!
Thank you!!
Thank you for explaining, before this video I have gone through many things but I was always confused.
This video cleared many things about scoped storage. 👍🙏
❤ beautiful explanation, music and animation... great content in a short time. Thanks Sir . ☕
Thank you, happy to help!
Awesome content bro, please make the videos like this new features & Behaviour changes android Q, R. Its Really help ful , Thanks
Im not even gonna say good or bad. We all know that there is no bad videos in Philipps channel 😎
exactly
great explanation, thank you!
Great video, thanks!
backround music is amazing :)
can you also make a video on this topic with coding
i hadn't used Android in 3-4 years, and when i got back into it, i was very eager to see what was new and the amount of control i'd be able to have compared to iOS, but boy was i wrong!
i'm currently trying to set up a convenient sync system between my phone and my computer and so far it's been all but convenient thanks to Google!
Good video, background music is fire
Nice, didn't know about that, thank you!
Happy to help!
thanks for covering this topic
you're welcome
also, please tell the background music name it was very pleasing with the awesome animations you put in, greetings from India.
Sounds like a reasonable step to me.
Also, great video 😍
Please make a video on this storage access system
@@arpitanand6534 it a reasonable step, but there are no simple documentation or api created to simplify the access to this files path, 😋😋oh i miss Flutter
It's literally free education, Always a good video.
Great news. And great music btw !
thanks!
no, it's very bad news
Just perfect!
Nice explanation... Google should really think to make this type of Explanation in its documentation...
Thanks!
Super you explain very well the course on dagger 2 can you make or one video?
good content. thanks. the background (actually not that background!) music is distracting
Can you please make a video that shows how to save different file format in android 11.
I think they did good as per the user privacy and data protection in future it will going to be more secure
Thanx for the Video, could you make a Video showing how to get the root space dir in the scoped storage, so it can be processed in Xam form to create dirs and DB etc, thanx
Nice video. Unfortunately, all 10 of my apps on Google Play will need to be changed when scoped storage becomes mandatory later this year, so I'm dreading the changes I'll need to make. Currently I'm using the requestLegacyExternalStorage flag in my manifest files to keep them working. I'm worried about how this change will affect my existing users since their files will now presumably need to be stored in different locations to where they have been previously. I guess I will have to try and allow them to still read files from the old location (Internal storage/), but only allow writing to the new scoped storage folder... Although I can see why they're doing it, I think it would have been better if Google only required scope storage for new apps, not existing ones.
How long , will this requestLegacyExternalStorage flag work.i read that starting from may 5th this will be removed or not work on Android 11
@@dpsairam My understanding is that you can continue to use this flag as long as you are targeting Android 10 with your apps. This flag cannot be used once you update them to target Android 11. According to Google's info: "Starting in November 2021, app updates will be required to target API level 30 or above and adjust for behavioral changes in Android 11."
The main change I had to make in my apps to target Android 11 was to remove this legacy storage flag from the manifest and change calls to the function Environment.getExternalStorageDirectory() to getExternalFilesDir(null). This meant the files exported from my apps went to Android/data//files in the phone's internal storage, instead of a top-level folder I was creating in internal storage with the app's name.
How did you do that it's not working for me
@@AnthonyDunk
You cannot submit apps to Goolge Play targeting Android 10 or lower. Thus it's not possible to use legacy storage flag now.
I guess app updates are also affected. So a terrible situation for existing apps.
if i am taking images only from the galary , should i use manage external storage , pls reply
i want to save image, should i need storage permission . please reply
Please make a video on this storage access system
Just Apple Things coming to Android
yes :/
Great now i cant play undertale mobile
Good step
Have a doubt
What if there is an app which let users updates their profile picture from choosing images from storage or gallery?
Using file provider will need MANAGE_EXTERNAL_STORAGE permission?
Oh that's a very niche area you've covered
I still don't understand how to access the external storage. Where do I write this command: manage_external_storage??? Can someone help me?
thanks :)
How to do write to external storage in android 11.. I need code
email me to get compelte code.
The worst update ever throughout my life I have been using file system that was easy to access.
I want to create a folder in the root folder and then ave a file in it , how can I do that
May be you can lower the backgroun music by half to let us focus on the content well.
Are resistance band weights accurate?
Bad, bad, bad. For making music in my mobile DAW I cannot figure out how to manage my project assets, especially adding new wav samples.
If I cannot use my DAW or art programs with out having to hassle to find my files, I may as well go pick up a dumb phone/ flip phone.
It sounds to me like they are messing things up, like Apple has been for years.
Let's tackle filesystem on android in detail
Please make Multiple API handle with Coroutine
Doubt: If there is an app which downloads music files to my phone, then why would i want those downloaded files to also get deleted when the app is uninstalled? Scoped storage is aiming to do this right?
Because Google is stupid.
There is a problem however. In my case, my phone isn't letting me approve the modification of "hidden files". This means I can't use my system file manager to modify Android/data, which is just mildly annoying.
The general idea is good, however in the end is Google who decides the file manage access which is terrible
background music bro?
The content is informative, but please don't add background music. It's become difficult to focus on the actual content.
thanks for the feedback
Great Video, One small query, Is there a way to delete the files immediately without moving to trash programmatically ?
yes, you'll learn that in my current playlist
so is there a restriction to the app's storage limit? A messenger app needs lot of storage for videos and images besides the text messages. Would an app like whatsapp store them in this app's specific storage without having to delete them after the limit is approaching?
There is no limit in storage, you can just not access other app's files that easily anymore. Instead that needs the users approval now
but you can read your files without permission and write also. Isn't that cool?)
make some video about it
As a Android user I like new storage privacy,
As a Android Developer I dislike new storage privacy
As an android user i freaking hate it. File management is like 10 times slower than android 10 below
The concept is good. Just the concept.
Scoped storage was not really a good idea, for example none of my third party apps can even access a simple file like a pdf for example, whenever I use my whatsApp, I download a file, but as soon as I download it, it gets encrypted, none of the pdf viewer I download or even my phones own pdf viewer has access to it, only when I go to that file location into my file manager only then I can view it, it is a very tiresome process. Scope storage is bad, very very bad. I can't even upload things into a google form if I wanted, even chrome doesn't have access to the storage in the phone.
External storage are managed by ME,,, through other devices like computers and SD-Card-Reader by the future purpose of mine which I don't know yet(edit,backup,...)...How stupid and arrogant Google Programmers are ,they think they know my usages ,,,and manage it without my grant and prevent me from managing my external storage against my will...and call it automatic, safe? They are constantly changing external storage access from the beginning ...because of that, I quit maintainning my app ...
so basically they want us to put one more if condition in our code
Nice video. But please don't add any background music. It's annoying.
i dislike bc im doing a planet edition in sfs snd i was mad 1 day after my new ideas calmed me
Shit is so stupid. I can't access any of my files for my emulators
Yeah I just got my note 20 ultra.... what a waste of money it feels like now :(
@@MrIdntgivafuk flash 2.5 back on using Odin dude. I'm not updating again until they fix this
Personally, I don't like it. I have to access some app data files through PC and that, not just, makes no sense but gives me more work to do something simple. This measure affects mostly power users.
Scoped storage is good for Google and users... But it is a headache for me 😂
no, this is also good for developers. Do you want to save a picture for the user? Use mediastore. Want to save a file for your app? Use fileprovider. It's very simple. there is also saf, it delegates work with the storage to the user. it's great that google has added an owner option for files. this tells you who created this file. well, information about which files will be deleted along with the application is transparent. There is also a case for fileprovider where you can write to external storage in the android/data/obb/packagenameyourapp / folder without restrictions. create whatever you want there. however, this was before the storage area was limited, and nothing has changed for normal applications, and abnormal ones will no longer create a mess in the root directory
I hope not google force us to download apps only from google play 🤔
I just hope Android is not becoming iOS. I hated all the limitations on iOS devices
SCRAP THE SCOPE.
video is awesome but google is making things difficult for devs
Of course a sh*tty one.
Very deep sh*tty indeed.
In my case: many hours of work to make collection of videos for my daughter is no longer even visable, because there where in app folder.Now cant copy, cant use, cant even erase them.
No longer use files between apps, as i say… Deep Sh*tty one!
They get closer & closer to andrOS!
These short videos have million dollars knowledge...
Google just realized that iOS won the privacy and the performance war.
So now they are modifying the SDK to make new features. But we all know that their SDK is not flexible for changes.
The reason why they are pushing us to use the extensions jetpack libraries. They have a lot of problems with many of their jetpack libraries too. You can see it clear with the unstoppable alpha releases of those libs. To be more specific google is just creating workarounds and hotfixes.
I have one decade of experience with Android and I'm tired !
I hope that the new Fushia OS come fast to rescue the developers and support the modern features.
Will it support security and privacy features. Yes
Will it support Kotlin as a first dev language? I hope.
Will it support old Android apps I'm not sure.
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
This has ruined my poweramp app
We need an Android fork that doesn't have this stupid Scoped Storage and phone makers should start using this fork. And developmeners should all go start making apps for this fork.
Ngl the video was great, but practically scoped storage is a fucked up thing and makes everything more complex than it needs to be
bad idea from google
Just use SAF people.