Тёмный

How to Use Internal Storage (Save, Load, Delete) - Android Studio Tutorial 

Подписаться
Просмотров 66 тыс.
% 1 261

In this video you will learn how you can save, load and delete photos in internal storage.
00:00 - Introduction
04:50 - Saving files
10:52 - Loading files
14:33 - Deleting files
15:51 - Setting up the RecyclerView
18:08 - Taking photos and saving them
⭐ 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/code-review/payment?locale=en
Get the initial source code for this video here:
github.com/philipplackner/AndroidStorage
Get the source code for the video here:
github.com/philipplackner/AndroidStorage/tree/Part1-InternalStorage
Regular Android tutorials on my Instagram: _philipplackner_
Checkout my GitHub: github.com/philipplackner

Опубликовано:

 

20 май 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 104   
@yashhh9123
@yashhh9123 3 года назад
Can we just appreciate that this is actually free of cost😊
@bjugdbjk
@bjugdbjk 3 года назад
This is a GOLD standard vid man, really confusing topic and u made it super simple, Thanks a ton for your efforts,
@PhilippLackner
@PhilippLackner 3 года назад
Glad it helped!
@9paradox
@9paradox 3 года назад
Finally some tutorials on android storages. The storage for Android has become very complex since android 10 api, so complex that they had to add new api in Android 11 to simplify it a bit, such as changes to Mediastore and Document Api. Even the official docs and videos are not so clear. Thanks for these tutorials, can't wait for the complete series.
@PhilippLackner
@PhilippLackner 3 года назад
yep it's a mess, hope I can clarify some things here
@Sam-yb9ut
@Sam-yb9ut Год назад
Thank you for the great support and content. There are other channels, but they actually do not give a professional approach. But you give us PERFECT code snippets and solutions where we can use in the production apps, and that is PRICELESS.... I don't have words to thank you. You are one of the coolest guys I have seen on RU-vid. Just a small idea - If you can have a web interface where people can ask "How to do this" then it will be easy for you to make content. If someone asked something that you have already published, then you could enter the link over there. This way it will benefit us in a super great way and you can drive traffic too. Thank you. BTW you can name the system ASK-Philipp :) I truly appreciate your work...
@PhilippLackner
@PhilippLackner Год назад
Thanks for your comment, happy to help!
@mandroidx1474
@mandroidx1474 3 года назад
After watching your videos hard things getting easier ,thanks manh♥️💥
@PhilippLackner
@PhilippLackner 3 года назад
Thanks man!
@baijusharma6027
@baijusharma6027 3 года назад
Finally scope storage is here with simple and easy explanation. Thank you bro.
@PhilippLackner
@PhilippLackner 3 года назад
Welcome 👍
@baijusharma6027
@baijusharma6027 3 года назад
@@PhilippLackner Please create a next tutorial series on Android custom views. No good resource available on the internet.
@lakshaymudgal5568
@lakshaymudgal5568 3 года назад
only tutor that makes tuttorials on latest technology. Thank you very much Sir
@osmanmusse9432
@osmanmusse9432 2 года назад
Haven't even watched the video, but can already smell it's gonna be good, well done lackner
@kaychi9369
@kaychi9369 3 года назад
Great series! Complex made simple. Would be great to see a series of camera2api too
@noyaljose9635
@noyaljose9635 3 года назад
A thank you won't be enough ❤️
@PhilippLackner
@PhilippLackner 3 года назад
it is :)
@unaisulhadi9102
@unaisulhadi9102 3 года назад
Contract is really helpful.. Loved it
@sharadjain8314
@sharadjain8314 3 года назад
Most Awaited Topic finally got it....Thank you so much.
@PhilippLackner
@PhilippLackner 3 года назад
Most welcome 😊
@maxsimpleapps
@maxsimpleapps 3 года назад
Many thanks from Russia. Your tutorials is great! 😸
@abdomahany2893
@abdomahany2893 3 года назад
my favorite android channel
@danyelsh874
@danyelsh874 3 года назад
I'm from Iran you're my hero i really like your videos
@deshabhaktg6530
@deshabhaktg6530 3 года назад
Please make a video on roadmap for learning android from scratch. You're awesome ❤😍
@tiltedbybox6118
@tiltedbybox6118 3 года назад
Just what I need, thanks man!
@sheikh9036
@sheikh9036 3 года назад
Awesome work! Appreciated 👍
@PhilippLackner
@PhilippLackner 3 года назад
Thanks a lot!
@tobiasplankl3783
@tobiasplankl3783 3 года назад
How can I load the pictures from the internal Storage in the inside of a Framgent or the ListAdapter?
@swaminathbera6407
@swaminathbera6407 3 года назад
Really , love these... thank you so much @Philipp Lackner
@oyanfelipe
@oyanfelipe Год назад
how to use with jetpack compose?
@imsherry7225
@imsherry7225 3 года назад
Exactly this is what i needed Thank You😍😍😍😍😍😍😍😍😍😍😍
@PhilippLackner
@PhilippLackner 3 года назад
you're welcome!
@joka9119stzz
@joka9119stzz 3 года назад
Hi Philipp, may i ask your help? i need similar tutorial or some explanation about save and load file in android 11 but in java language no kotlin. Can you help me? thanks in advice
@ignew1352
@ignew1352 Год назад
Same here. I work with a game engine that allows Android extensions but through java, not Kotlin.
@anmac6910
@anmac6910 4 месяца назад
How can I change or add more timestamp information or timezone info to saved photos ?
@jillianfrimml8277
@jillianfrimml8277 2 года назад
How would you implement an alert dialog box to help confirm if the user wants to delete a photo before it is actually deleted?
@FaisalJavid
@FaisalJavid 2 года назад
It always helps , Great Content.
@shubhamshinde-lt7hr
@shubhamshinde-lt7hr 2 года назад
Nice Video to learn, helped alot. 👌
@majd4405
@majd4405 2 года назад
Can I use the saved dat in another screen? if so does this video explains it ? I need some help to finish my project so ill appreciate any help
@howtosaywhattosay
@howtosaywhattosay Год назад
Do you have a video on sql lite as well? I want to store a SQL table in my mobile app. Thanks for this video!
@mightyboognish6579
@mightyboognish6579 2 года назад
This is great, thank you. I created an in-app camera for my app (using cameraX) to take photos and videos, is there any way I can use that camera activity with the takePhoto method or can I only use the default camera app?
@ignew1352
@ignew1352 Год назад
Do we have this same tutorial in Java language in further videos? Some projects not programmed with Android Studio but using extensions of Android, make the extension possible through Java, not Kotlin. Edit: 19:14
@reyzer7032
@reyzer7032 2 года назад
hi philipp, is the approach to saving image data possible with room, sorry i'm still a beginner
@muhamadarief3506
@muhamadarief3506 3 года назад
can u turn on the subtitles of your videos? thanks philipp :)
@tmjromao
@tmjromao 2 года назад
Hello Philipp, how to read a json file on the resources directory in Jetpack Compose? thanks
@malookshah9327
@malookshah9327 3 года назад
How to load audio file from specific directory? Someone can answer
@maheshk_7
@maheshk_7 2 года назад
Hello sir, for creating Internal Storage Directory required "WRITE_EXTERNAL_STORAGE" permissions?
@veluchamykarthik107
@veluchamykarthik107 2 года назад
Can you make video for pick image and upload file for android 11 or latest
@ZaidZakir
@ZaidZakir 3 года назад
Hi phillip jst an idea, you should have a buy this developer coffee option, would definitely do it
@PhilippLackner
@PhilippLackner 3 года назад
Thank you mate for the support. Checkout my premium courses on pl-coding.com/courses. This is not only a way to support me and my work, but much more a way to improve your Android and backend skills.
@futuretechnology2515
@futuretechnology2515 3 года назад
you are so genius bro...
@zentech9310
@zentech9310 3 года назад
finally scope storage , Thank you so much.
@PhilippLackner
@PhilippLackner 3 года назад
you're welcome buddy
@dineshasija4535
@dineshasija4535 3 года назад
❤️❤️❤️ Thnx it's best needed for dev
@PhilippLackner
@PhilippLackner 3 года назад
you're welcome
@malookshah9327
@malookshah9327 3 года назад
Hello,,, I tried this code for audio file but can get it can you tell me how can i show audio files with this please guide me
@SmartSoftek
@SmartSoftek 3 года назад
hey Philipp, your course idea is amazing as usual but I thought that all of your course will be in jetpack compose after your wonderful tutorials about it and the successful course Pokedex but again you go back to the classic Kotlin, my personal opinion is jetpack compose is much easier, productive and opens door to more options so Please tell me in the comments if you think that I should spend much time learning the Jetpack compose or not ? Danke schön
@PhilippLackner
@PhilippLackner 3 года назад
thank you, I love compose as well, but to consistently use it in my videos here I want to wait until it's stable. Not every of my viewers here has or wants to get canary. Also I don't want to re-record every video because things get deprecated. To answer your question, you should definitely spend time on compose, but I wouldn't use it in production until it's stable
@SmartSoftek
@SmartSoftek 3 года назад
@@PhilippLackner Thank you for your prompt response, I appreciate your advise and respect your opinion
@somith16
@somith16 3 года назад
will it be the same for storing media files also
@emmanuelonwumah915
@emmanuelonwumah915 2 года назад
Hey Phillip, reference this for a project that I'm working on and ran into issue. The ListAdapter will be empty if there is 0 images files saved in internal storage but I want to have some place holder images to start with, what do you think would be best approach for this? My first thought is to upload the place holder images upon app launch but I do not this that would be best approach. Is there a way I can have a list of InternalStoragePhoto adapter initialized to a set size and default bmp value if one does not exist?
@PhilippLackner
@PhilippLackner 2 года назад
Why not just check if size is 0 and if so, add the placeholders to your list?
@emmanuelonwumah915
@emmanuelonwumah915 2 года назад
@@PhilippLackner what I ended up doing is initializing a mutablist in my viewmodel init block an set the name to and empty string and the bitmap to null. Works fine.
@hubinsord9009
@hubinsord9009 2 года назад
5:27 Internal storage - when, why do we need it 5:58 Are permissions needed for internal storage
@Adam0001
@Adam0001 Год назад
Amazing Thanks a lot
@matijasokol2881
@matijasokol2881 3 года назад
Why delete and save file functions are not suspend functions. They should also be executed on background thread.
@Chintanparmar
@Chintanparmar 3 года назад
Commenting for better reach💯
@PhilippLackner
@PhilippLackner 3 года назад
thanks for the support!
@mustafaammar551
@mustafaammar551 3 года назад
very cool video thank you bro
@PhilippLackner
@PhilippLackner 3 года назад
no problem
@chewataapp7021
@chewataapp7021 3 года назад
You rock!
@leecat565
@leecat565 3 года назад
Thank you bro
@ravisorathiya1756
@ravisorathiya1756 3 года назад
Just observed your all adaperlters code Why are you performing buttons clicks In onbind method instead of view holder class It is recommended to use click events in viewholder class for performance
@PhilippLackner
@PhilippLackner 3 года назад
and why?
@ravisorathiya1756
@ravisorathiya1756 3 года назад
@@PhilippLackner stackoverflow.com/questions/33845846/why-is-adding-an-onclicklistener-inside-onbindviewholder-of-a-recyclerview-adapt This might help you
@PhilippLackner
@PhilippLackner 3 года назад
thank you
@freekiad1931
@freekiad1931 3 года назад
we take permission from user for "permission.READ_EXTERNAL_STORAGE" but where users data saved like Images / contact list etc. ? how we can read or see images?
@emmanuelonwumah915
@emmanuelonwumah915 2 года назад
In device explorer in AS studio , choose the emulator you’re running. Click data -> data -> yourAppPackageName -> files
@yahya5229
@yahya5229 2 года назад
is it work for videos?
@CoCo-cm3jm
@CoCo-cm3jm 2 года назад
I am sorry, but I downloaded your code, and after I clicked on camera button, the app stopped.
@darwinspace
@darwinspace 3 года назад
Tutorial series about how to create your own backend for Android pleaseee
@RobertMair80
@RobertMair80 3 года назад
Have a look at his Homepage. There is an course with an cool todo App and ktor backend
@idnull8434
@idnull8434 3 года назад
I am your fan.
@kalidsherefuddin
@kalidsherefuddin Год назад
Thanks
@m.irtizakhursheed3040
@m.irtizakhursheed3040 3 года назад
Kindly explain internal storage for Android 11 version
@PhilippLackner
@PhilippLackner 3 года назад
Did you watch the video? 😂 This works on any version
@arnxxau
@arnxxau 3 года назад
Thanks :)
@PhilippLackner
@PhilippLackner 3 года назад
No problem!
@aldredcresp6312
@aldredcresp6312 2 года назад
Did you use the camera without permission? Maybe I need permission bc I'm in a fragment.
@aldredcresp6312
@aldredcresp6312 2 года назад
update: the problem was that i had the camera permissions in the manifest file. Had nothing to do with the fragment.
@luckykatariya2900
@luckykatariya2900 3 года назад
Getting null while using bitmap factory method
@MrJonas04
@MrJonas04 3 года назад
First like, then watch🥕😍
@codingwithsam4992
@codingwithsam4992 2 года назад
For those who don't know: SHORTCUT FOR TOAST: just type toast (small letters)
@talhashakeel3921
@talhashakeel3921 3 года назад
i want this in java ... please can anyone help me
@DeepSingh-wk5ts
@DeepSingh-wk5ts 3 года назад
Thanks you
@PhilippLackner
@PhilippLackner 3 года назад
you're welcome
@merhounriyadh9106
@merhounriyadh9106 2 года назад
i want to make rename for image
@subhodas6268
@subhodas6268 6 месяцев назад
want java code
@jansprlak110
@jansprlak110 2 года назад
Beta tester od roku 2016 oceňujem,
@thimsonpolorei4754
@thimsonpolorei4754 4 дня назад
Wow. Wunderbare rede, nur schade das diese Rede überhaupt nötig ist.
@tuanle2347
@tuanle2347 3 года назад
Hi Philipp, Can you help me? I have trouble in android 11 when I download an image to this internal storage 'file:///storage/emulated/0/Android/data/com.myapp/menu-images/homescreen.png' but my app can't load it like background-image url anymore. Can you help point me to right direction to use this internal image?