Scoped Storage in Android in a Nutshell

  Рет қаралды 39,098

Philipp Lackner

Philipp Lackner

Күн бұрын

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

Пікірлер: 105
@ZaidAli-wh7iu
@ZaidAli-wh7iu 3 жыл бұрын
Totally stupid step taken by Google, they are making android more like ios day by day
@Indently
@Indently 3 жыл бұрын
wuow, very excited to see the special effects and animations you will be using in a year from now. It's looking super professional!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
thanks sir, in a year I will animate realistic hollywood movies with vector graphics from scratch
@codinginflow
@codinginflow 3 жыл бұрын
Sounds like a reasonable step to me. Also, great video 😍
@arpitanand6534
@arpitanand6534 3 жыл бұрын
Please make a video on this storage access system
@lazyprogrammer3152
@lazyprogrammer3152 Жыл бұрын
@@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
@gubatron
@gubatron 3 жыл бұрын
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
@yunusemrearslan3696
@yunusemrearslan3696 3 жыл бұрын
Dude, I just wanna tell you are improving yourself more and more just keep going!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thank you!!
@re_allyedge
@re_allyedge 3 жыл бұрын
Im not even gonna say good or bad. We all know that there is no bad videos in Philipps channel 😎
@futuretechnology2515
@futuretechnology2515 3 жыл бұрын
exactly
@livlop
@livlop 3 жыл бұрын
❤ beautiful explanation, music and animation... great content in a short time. Thanks Sir . ☕
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thank you, happy to help!
@shubhamshinde-lt7hr
@shubhamshinde-lt7hr 2 жыл бұрын
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. 👍🙏
@hi_its_jerry
@hi_its_jerry 7 ай бұрын
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!
@kumarbharani2718
@kumarbharani2718 3 жыл бұрын
Awesome content bro, please make the videos like this new features & Behaviour changes android Q, R. Its Really help ful , Thanks
@mehulbisht9708
@mehulbisht9708 3 жыл бұрын
also, please tell the background music name it was very pleasing with the awesome animations you put in, greetings from India.
@johnsabilla5897
@johnsabilla5897 3 жыл бұрын
great explanation, thank you!
@Sc2MooDy
@Sc2MooDy 3 жыл бұрын
Great video, thanks!
@hdkloh6857
@hdkloh6857 3 жыл бұрын
Nice explanation... Google should really think to make this type of Explanation in its documentation...
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks!
@ahmetbiyik7392
@ahmetbiyik7392 3 жыл бұрын
backround music is amazing :) can you also make a video on this topic with coding
@AnthonyDunk
@AnthonyDunk 3 жыл бұрын
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.
@dpsairam
@dpsairam 3 жыл бұрын
How long , will this requestLegacyExternalStorage flag work.i read that starting from may 5th this will be removed or not work on Android 11
@AnthonyDunk
@AnthonyDunk 3 жыл бұрын
@@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.
@2yearsago330
@2yearsago330 2 жыл бұрын
How did you do that it's not working for me
@areala830
@areala830 Жыл бұрын
@@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.
@boyhoody4996
@boyhoody4996 3 жыл бұрын
Great news. And great music btw !
@PhilippLackner
@PhilippLackner 3 жыл бұрын
thanks!
@TwskiTV
@TwskiTV 3 жыл бұрын
no, it's very bad news
@armandoavila4615
@armandoavila4615 3 жыл бұрын
Nice, didn't know about that, thank you!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Happy to help!
@harshalpudale7037
@harshalpudale7037 3 жыл бұрын
Good video, background music is fire
@baur22
@baur22 3 жыл бұрын
Super you explain very well the course on dagger 2 can you make or one video?
@DivyangM
@DivyangM 2 жыл бұрын
It's literally free education, Always a good video.
@chirantanchaudhury2809
@chirantanchaudhury2809 3 жыл бұрын
thanks for covering this topic
@PhilippLackner
@PhilippLackner 3 жыл бұрын
you're welcome
@yossimaskin1393
@yossimaskin1393 3 жыл бұрын
Just perfect!
@gauravthakkar802
@gauravthakkar802 3 жыл бұрын
Just Apple Things coming to Android
@PhilippLackner
@PhilippLackner 3 жыл бұрын
yes :/
@gentrithoxha7797
@gentrithoxha7797 3 жыл бұрын
Can you please make a video that shows how to save different file format in android 11.
@waltergrimm7161
@waltergrimm7161 2 жыл бұрын
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
@algo_chronicles
@algo_chronicles 3 жыл бұрын
if i am taking images only from the galary , should i use manage external storage , pls reply
@thripthi3458
@thripthi3458 3 жыл бұрын
How to do write to external storage in android 11.. I need code
@aasinationtech5083
@aasinationtech5083 2 жыл бұрын
email me to get compelte code.
@amingrateful7661
@amingrateful7661 Жыл бұрын
good content. thanks. the background (actually not that background!) music is distracting
@eyeofthepyramid2596
@eyeofthepyramid2596 2 жыл бұрын
The worst update ever throughout my life I have been using file system that was easy to access.
@coreretsupport5020
@coreretsupport5020 3 жыл бұрын
i want to save image, should i need storage permission . please reply
@raghavaggarwal8644
@raghavaggarwal8644 3 жыл бұрын
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?
@user-hi9yx2ns1l
@user-hi9yx2ns1l Жыл бұрын
Because Google is stupid.
@bjugdbjk
@bjugdbjk 3 жыл бұрын
Great Video, One small query, Is there a way to delete the files immediately without moving to trash programmatically ?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
yes, you'll learn that in my current playlist
@kartikagarwal1795
@kartikagarwal1795 3 жыл бұрын
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?
@patiencezero1025
@patiencezero1025 2 жыл бұрын
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.
@arpitanand6534
@arpitanand6534 3 жыл бұрын
Please make a video on this storage access system
@theai06
@theai06 Жыл бұрын
I think they did good as per the user privacy and data protection in future it will going to be more secure
@joshgracin59
@joshgracin59 Жыл бұрын
Are resistance band weights accurate?
@jorge2106
@jorge2106 2 жыл бұрын
The general idea is good, however in the end is Google who decides the file manage access which is terrible
@theonlyarjun
@theonlyarjun 3 жыл бұрын
Oh that's a very niche area you've covered
@AntHertz-xj7wx
@AntHertz-xj7wx Жыл бұрын
I still don't understand how to access the external storage. Where do I write this command: manage_external_storage??? Can someone help me?
@mikemikee7797
@mikemikee7797 3 жыл бұрын
Let's tackle filesystem on android in detail
@baijusharma6027
@baijusharma6027 3 жыл бұрын
The content is informative, but please don't add background music. It's become difficult to focus on the actual content.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
thanks for the feedback
@ybtoo7
@ybtoo7 2 жыл бұрын
May be you can lower the backgroun music by half to let us focus on the content well.
@mehulbisht9708
@mehulbisht9708 3 жыл бұрын
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?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
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
@fghinty7623
@fghinty7623 3 жыл бұрын
but you can read your files without permission and write also. Isn't that cool?)
@mahetachirag8395
@mahetachirag8395 2 жыл бұрын
As a Android user I like new storage privacy, As a Android Developer I dislike new storage privacy
@obiwalter483
@obiwalter483 2 жыл бұрын
As an android user i freaking hate it. File management is like 10 times slower than android 10 below
@NeneSimone
@NeneSimone 2 жыл бұрын
The concept is good. Just the concept.
@nitrovenom991
@nitrovenom991 3 жыл бұрын
Good step
@shyper17
@shyper17 8 ай бұрын
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.
@tanmaysinghal8370
@tanmaysinghal8370 3 жыл бұрын
I want to create a folder in the root folder and then ave a file in it , how can I do that
@emreaka3965
@emreaka3965 2 ай бұрын
thanks :)
@nicolasmanurung
@nicolasmanurung 3 жыл бұрын
Please make Multiple API handle with Coroutine
@imnithish
@imnithish 3 жыл бұрын
background music bro?
@SanjayDevTech
@SanjayDevTech 3 жыл бұрын
Scoped storage is good for Google and users... But it is a headache for me 😂
@fghinty7623
@fghinty7623 3 жыл бұрын
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
@jafartemirov7812
@jafartemirov7812 3 жыл бұрын
make some video about it
@hersy100
@hersy100 3 жыл бұрын
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 ...
@aaryakansara8711
@aaryakansara8711 2 жыл бұрын
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.
@jonnycompton2360
@jonnycompton2360 3 жыл бұрын
Shit is so stupid. I can't access any of my files for my emulators
@MrIdntgivafuk
@MrIdntgivafuk 3 жыл бұрын
Yeah I just got my note 20 ultra.... what a waste of money it feels like now :(
@jonnycompton2360
@jonnycompton2360 3 жыл бұрын
@@MrIdntgivafuk flash 2.5 back on using Odin dude. I'm not updating again until they fix this
@petarpetrov1141
@petarpetrov1141 2 жыл бұрын
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!
@user-zp5tp3fi3l
@user-zp5tp3fi3l 7 ай бұрын
Nice video. But please don't add any background music. It's annoying.
@jessemaycaramonte2004
@jessemaycaramonte2004 7 ай бұрын
i dislike bc im doing a planet edition in sfs snd i was mad 1 day after my new ideas calmed me
@MDDanishAnsariDev
@MDDanishAnsariDev 3 жыл бұрын
so basically they want us to put one more if condition in our code
@houssemzaier
@houssemzaier 3 жыл бұрын
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.
@a_p_vox
@a_p_vox 2 жыл бұрын
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.
@NeneSimone
@NeneSimone 2 жыл бұрын
SCRAP THE SCOPE.
@mnouman6736
@mnouman6736 2 жыл бұрын
video is awesome but google is making things difficult for devs
@user-hi9yx2ns1l
@user-hi9yx2ns1l Жыл бұрын
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.
@ashar9327
@ashar9327 3 жыл бұрын
I hope not google force us to download apps only from google play 🤔
@PhilippLackner
@PhilippLackner 3 жыл бұрын
I just hope Android is not becoming iOS. I hated all the limitations on iOS devices
@quanic_en_calzones
@quanic_en_calzones 2 жыл бұрын
Ngl the video was great, but practically scoped storage is a fucked up thing and makes everything more complex than it needs to be
@spookyneha7670
@spookyneha7670 3 жыл бұрын
These short videos have million dollars knowledge...
@BeDb_MeDb
@BeDb_MeDb 2 жыл бұрын
bad idea from google
@inalingthedead
@inalingthedead 3 жыл бұрын
This has ruined my poweramp app
@Servidor_Publico_do_Ancapistao
@Servidor_Publico_do_Ancapistao 2 жыл бұрын
Just use SAF people.
@heim8t
@heim8t Жыл бұрын
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Uris (Unique Resource Identifier) - Android Basics 2023
14:21
Philipp Lackner
Рет қаралды 22 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 59 МЛН
Preparing for scoped storage (Android Dev Summit '19)
35:43
Android Developers
Рет қаралды 72 М.
What Is Kotlin Multiplatform And How Does It Work? - KMP for Beginners
10:17
What's new in Android development tools
43:40
Android Developers
Рет қаралды 33 М.
Everything about storage on Android
12:17
Android Developers
Рет қаралды 18 М.
Kotlin Flows in a Nutshell
13:59
Philipp Lackner
Рет қаралды 57 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 553 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 105 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 78 М.
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 59 МЛН