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

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

  • @ZaidAli-wh7iu
    @ZaidAli-wh7iu 3 года назад +28

    Totally stupid step taken by Google, they are making android more like ios day by day

  • @Indently
    @Indently 3 года назад +7

    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 года назад +9

      thanks sir, in a year I will animate realistic hollywood movies with vector graphics from scratch

  • @gubatron
    @gubatron 3 года назад +42

    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 года назад +5

    Dude, I just wanna tell you are improving yourself more and more just keep going!

  • @shubhamshinde-lt7hr
    @shubhamshinde-lt7hr 2 года назад +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. 👍🙏

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

    ❤ beautiful explanation, music and animation... great content in a short time. Thanks Sir . ☕

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

    Awesome content bro, please make the videos like this new features & Behaviour changes android Q, R. Its Really help ful , Thanks

  • @re_allyedge
    @re_allyedge 3 года назад +14

    Im not even gonna say good or bad. We all know that there is no bad videos in Philipps channel 😎

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

    great explanation, thank you!

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

    Great video, thanks!

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

    backround music is amazing :)
    can you also make a video on this topic with coding

  • @hi_its_jerry
    @hi_its_jerry 8 месяцев назад +2

    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!

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

    Good video, background music is fire

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

    Nice, didn't know about that, thank you!

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

    thanks for covering this topic

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

    also, please tell the background music name it was very pleasing with the awesome animations you put in, greetings from India.

  • @codinginflow
    @codinginflow 3 года назад +59

    Sounds like a reasonable step to me.
    Also, great video 😍

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

      Please make a video on this storage access system

    • @lazyprogrammer3152
      @lazyprogrammer3152 Год назад +1

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

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

    It's literally free education, Always a good video.

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

    Great news. And great music btw !

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

    Just perfect!

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

    Nice explanation... Google should really think to make this type of Explanation in its documentation...

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

    Super you explain very well the course on dagger 2 can you make or one video?

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

    good content. thanks. the background (actually not that background!) music is distracting

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

    Can you please make a video that shows how to save different file format in android 11.

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

    I think they did good as per the user privacy and data protection in future it will going to be more secure

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

  • @AnthonyDunk
    @AnthonyDunk 3 года назад +14

    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 года назад +1

      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 года назад +4

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

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

    if i am taking images only from the galary , should i use manage external storage , pls reply

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

    i want to save image, should i need storage permission . please reply

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

    Please make a video on this storage access system

  • @gauravthakkar802
    @gauravthakkar802 3 года назад +11

    Just Apple Things coming to Android

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

    Good step

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

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

    Oh that's a very niche area you've covered

  • @AntHertz-xj7wx
    @AntHertz-xj7wx Год назад +1

    I still don't understand how to access the external storage. Where do I write this command: manage_external_storage??? Can someone help me?

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

    thanks :)

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

    How to do write to external storage in android 11.. I need code

  • @eyeofthepyramid2596
    @eyeofthepyramid2596 2 года назад +2

    The worst update ever throughout my life I have been using file system that was easy to access.

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

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

    May be you can lower the backgroun music by half to let us focus on the content well.

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

    Are resistance band weights accurate?

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

    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.

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

    Let's tackle filesystem on android in detail

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

    Please make Multiple API handle with Coroutine

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

    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?

  • @shyper17
    @shyper17 9 месяцев назад

    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.

  • @jorge2106
    @jorge2106 2 года назад +5

    The general idea is good, however in the end is Google who decides the file manage access which is terrible

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

    background music bro?

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

    The content is informative, but please don't add background music. It's become difficult to focus on the actual content.

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

  • @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 года назад +1

      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?)

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

    make some video about it

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

    As a Android user I like new storage privacy,
    As a Android Developer I dislike new storage privacy

    • @obiwalter483
      @obiwalter483 2 года назад +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.

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

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

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

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

    so basically they want us to put one more if condition in our code

  • @user-zp5tp3fi3l
    @user-zp5tp3fi3l 7 месяцев назад

    Nice video. But please don't add any background music. It's annoying.

  • @jessemaycaramonte2004
    @jessemaycaramonte2004 8 месяцев назад

    i dislike bc im doing a planet edition in sfs snd i was mad 1 day after my new ideas calmed me

  • @jonnycompton2360
    @jonnycompton2360 3 года назад +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

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

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

    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

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

    I hope not google force us to download apps only from google play 🤔

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

      I just hope Android is not becoming iOS. I hated all the limitations on iOS devices

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

    SCRAP THE SCOPE.

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

    video is awesome but google is making things difficult for devs

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

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

    These short videos have million dollars knowledge...

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

    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.

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

    NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

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

    This has ruined my poweramp app

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

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

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

    bad idea from google

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

    Just use SAF people.