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

  Рет қаралды 64,663

Philipp Lackner

Philipp Lackner

Күн бұрын

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/...
Get the initial source code for this video here:
github.com/philipplackner/And...
Get the source code for the video here:
github.com/philipplackner/And...
Regular Android tutorials on my Instagram: / _philipplackner_
Checkout my GitHub: github.com/philipplackner

Пікірлер: 103
@yashhh9123
@yashhh9123 3 жыл бұрын
Can we just appreciate that this is actually free of cost😊
@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
@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!
@osmanmusse9432
@osmanmusse9432 2 жыл бұрын
Haven't even watched the video, but can already smell it's gonna be good, well done lackner
@lakshaymudgal5568
@lakshaymudgal5568 3 жыл бұрын
only tutor that makes tuttorials on latest technology. Thank you very much Sir
@kaychi9369
@kaychi9369 3 жыл бұрын
Great series! Complex made simple. Would be great to see a series of camera2api too
@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 KZfaq. 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!
@tiltedbybox6118
@tiltedbybox6118 3 жыл бұрын
Just what I need, thanks man!
@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 😊
@abdomahany2893
@abdomahany2893 3 жыл бұрын
my favorite android channel
@swaminathbera6407
@swaminathbera6407 3 жыл бұрын
Really , love these... thank you so much @Philipp Lackner
@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.
@FaisalJavid
@FaisalJavid 2 жыл бұрын
It always helps , Great Content.
@shubhamshinde-lt7hr
@shubhamshinde-lt7hr 2 жыл бұрын
Nice Video to learn, helped alot. 👌
@mandroidx1474
@mandroidx1474 3 жыл бұрын
After watching your videos hard things getting easier ,thanks manh♥️💥
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks man!
@sheikh9036
@sheikh9036 3 жыл бұрын
Awesome work! Appreciated 👍
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks a lot!
@maxsimpleapps
@maxsimpleapps 3 жыл бұрын
Many thanks from Russia. Your tutorials is great! 😸
@danyelsh874
@danyelsh874 2 жыл бұрын
I'm from Iran you're my hero i really like your videos
@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?
@noyaljose9635
@noyaljose9635 3 жыл бұрын
A thank you won't be enough ❤️
@PhilippLackner
@PhilippLackner 3 жыл бұрын
it is :)
@Adam0001
@Adam0001 Жыл бұрын
Amazing Thanks a lot
@futuretechnology2515
@futuretechnology2515 3 жыл бұрын
you are so genius bro...
@tobiasplankl3783
@tobiasplankl3783 3 жыл бұрын
How can I load the pictures from the internal Storage in the inside of a Framgent or the ListAdapter?
@deshabhaktg6530
@deshabhaktg6530 3 жыл бұрын
Please make a video on roadmap for learning android from scratch. You're awesome ❤😍
@mightyboognish6579
@mightyboognish6579 Жыл бұрын
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?
@leecat565
@leecat565 2 жыл бұрын
Thank you bro
@imsherry7225
@imsherry7225 3 жыл бұрын
Exactly this is what i needed Thank You😍😍😍😍😍😍😍😍😍😍😍
@PhilippLackner
@PhilippLackner 3 жыл бұрын
you're welcome!
@mustafaammar551
@mustafaammar551 3 жыл бұрын
very cool video thank you bro
@PhilippLackner
@PhilippLackner 3 жыл бұрын
no problem
@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
@reyzer7032
@reyzer7032 2 жыл бұрын
hi philipp, is the approach to saving image data possible with room, sorry i'm still a beginner
@kalidsherefuddin
@kalidsherefuddin Жыл бұрын
Thanks
@dineshasija4535
@dineshasija4535 3 жыл бұрын
❤️❤️❤️ Thnx it's best needed for dev
@PhilippLackner
@PhilippLackner 3 жыл бұрын
you're welcome
@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!
@anmac6910
@anmac6910 Ай бұрын
How can I change or add more timestamp information or timezone info to saved photos ?
@maheshk_7
@maheshk_7 2 жыл бұрын
Hello sir, for creating Internal Storage Directory required "WRITE_EXTERNAL_STORAGE" permissions?
@tmjromao
@tmjromao 2 жыл бұрын
Hello Philipp, how to read a json file on the resources directory in Jetpack Compose? thanks
@zentech9310
@zentech9310 3 жыл бұрын
finally scope storage , Thank you so much.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
you're welcome buddy
@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
@malookshah9327
@malookshah9327 3 жыл бұрын
How to load audio file from specific directory? Someone can answer
@somith16
@somith16 3 жыл бұрын
will it be the same for storing media files also
@idnull8434
@idnull8434 3 жыл бұрын
I am your fan.
@joka9119stzz
@joka9119stzz 2 жыл бұрын
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.
@oyanfelipe
@oyanfelipe 10 ай бұрын
how to use with jetpack compose?
@chewataapp7021
@chewataapp7021 3 жыл бұрын
You rock!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
thanks you too!
@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
@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.
@arnxxau
@arnxxau 3 жыл бұрын
Thanks :)
@PhilippLackner
@PhilippLackner 3 жыл бұрын
No problem!
@veluchamykarthik107
@veluchamykarthik107 2 жыл бұрын
Can you make video for pick image and upload file for android 11 or latest
@muhamadarief3506
@muhamadarief3506 3 жыл бұрын
can u turn on the subtitles of your videos? thanks philipp :)
@Chintanparmar
@Chintanparmar 3 жыл бұрын
Commenting for better reach💯
@PhilippLackner
@PhilippLackner 3 жыл бұрын
thanks for the support!
@matijasokol2881
@matijasokol2881 3 жыл бұрын
Why delete and save file functions are not suspend functions. They should also be executed on background thread.
@DeepSingh-wk5ts
@DeepSingh-wk5ts 3 жыл бұрын
Thanks you
@PhilippLackner
@PhilippLackner 3 жыл бұрын
you're welcome
@MrMinaAnton
@MrMinaAnton 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
@MrMinaAnton
@MrMinaAnton 3 жыл бұрын
@@PhilippLackner Thank you for your prompt response, I appreciate your advise and respect your opinion
@yahya5229
@yahya5229 2 жыл бұрын
is it work for videos?
@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.
@MrJonas04
@MrJonas04 3 жыл бұрын
First like, then watch🥕😍
@hubinsord9009
@hubinsord9009 2 жыл бұрын
5:27 Internal storage - when, why do we need it 5:58 Are permissions needed for internal storage
@freekiad1931
@freekiad1931 2 жыл бұрын
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
@codingwithsam4992
@codingwithsam4992 2 жыл бұрын
For those who don't know: SHORTCUT FOR TOAST: just type toast (small letters)
@luckykatariya2900
@luckykatariya2900 3 жыл бұрын
Getting null while using bitmap factory method
@talhashakeel3921
@talhashakeel3921 2 жыл бұрын
i want this in java ... please can anyone help me
@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?
@merhounriyadh9106
@merhounriyadh9106 2 жыл бұрын
i want to make rename for image
@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
@subhodas6268
@subhodas6268 3 ай бұрын
want java code
@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
@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
@CoCo-cm3jm
@CoCo-cm3jm 2 жыл бұрын
I am sorry, but I downloaded your code, and after I clicked on camera button, the app stopped.
@jansprlak110
@jansprlak110 2 жыл бұрын
Beta tester od roku 2016 oceňujem,
@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.
Cleaner Code With Use Cases - The Full Guide
14:16
Philipp Lackner
Рет қаралды 50 М.
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 43 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 104 МЛН
Everything about storage on Android
12:17
Android Developers
Рет қаралды 19 М.
Kotlin Context Receivers - How to Use, Why, and Best Practice
24:22
Rock the JVM
Рет қаралды 4,4 М.
I Rewrote This Entire Main File // Code Review
16:08
The Cherno
Рет қаралды 150 М.
FRAGMENTS - Android Fundamentals
17:29
Philipp Lackner
Рет қаралды 326 М.
SQLite Database for Android - Full Course
1:28:22
freeCodeCamp.org
Рет қаралды 247 М.
Uris (Unique Resource Identifier) - Android Basics 2023
14:21
Philipp Lackner
Рет қаралды 22 М.
Save TXT File in Android Internal Storage | Java Programming
10:54
start skill
Рет қаралды 1,5 М.
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН