sir how to load apk file or docs from external storage as u mentioned 8:51 that u can filter any type of file like docx..so kindly make video on other extenions...thanks in advance..
You can easily load .apk file by just doing this filename.endsWith('.apk'). Try and let me know does it work or not and also please subscribe to my channel.
@@learnthroughanimation6924 The method u told me,it works....amazing.....it worked on documents and apk files as well😘😊😊..thanks again..u saved my alot time & U MADE MY DAY👋
TH-cam download video can't be shown in any other application than TH-cam application. It's not allowed. I'm talking about the offline youtube video. Other downloaded videos will be shown by this method.
Friend, could you add a filter of intentions so that the application comes out with other applications when opening it from the option to open with this application and is more complementary?
This applies for only Android 9 and below. Android 10 use requestLegacyExternalStorage will work, but give null exception randomly for each URI (this time run, another time not run), Android 11, of course, will not work. And by the way, this function of recursive will take much time and resource of device, will not suit for reality project!
sir I get all image path from device following this video but it take more time to show images some time due to our time app has been carshed and some time it show images but after taking more times please help me out
You can easily load any file by just doing this filename.endsWith('extension here'). Try and let me know does it work or not and also please subscribe to my channel.
Part 2) How to show delete popup when click on three-dotted icon: th-cam.com/video/L3gs8uFxLBM/w-d-xo.html My first application on Play Store. Please check it out. play.google.com/store/apps/details?id=com.kukustudio.kuku
sir, we can display our thumbnail in 17:14 using glide and uri right. But what if I used file like '.txt' and 'docx' instead of video like 'mp4'. How can I display the image of file like that thumbnail? I try to put image in files_list.xml in 12:56 and delete Glide.with(mContext)...... it really display what I want but when i run it, the system become more slow.. like broken app 😂😂😂
I didn't try this out, so not sure. I think for '.txt', '.docx' we can use an icon or an image. There will be no need to display different thumbnails each time. What do you say?
//Increase Scrolling Performance of recycler view recyclerView.setHasFixedSize(true); recyclerView.setItemViewCacheSize(20); recyclerView.setDrawingCacheEnabled(true); recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); recyclerView.setNestedScrollingEnabled(false); Add these lines of code before following line. recyclerView.setAdapter(adapter);
This is not the best way. And the best way is using media query object. If you know make a video on that please. How to fetch data list using media query cursor object?
there is problem when close the app and reopen it all files are duplicated I adjusted your code in general and solved the problem check it out github.com/josefKalash/SAFProject.git
Your learning tricks is very powerful.
Thank nice video but i have problem
5:57 ->Method.load_Directory_Files(directory);
i can't find Method.load_Directory_Files what can i do??
Really Good Tutorial. Loved it!
What changes should I make to storageutil so that only the folder I select should be loaded
you really deserve a "THANKS" + subscription
sir how to load apk file or docs from external storage as u mentioned 8:51 that u can filter any type of file like docx..so kindly make video on other extenions...thanks in advance..
You can easily load .apk file by just doing this
filename.endsWith('.apk').
Try and let me know does it work or not and also please subscribe to my channel.
@@learnthroughanimation6924 ok bro
..consider it done
@@learnthroughanimation6924 The method u told me,it works....amazing.....it worked on documents and apk files as well😘😊😊..thanks again..u saved my alot time
& U MADE MY DAY👋
this is not working on all phone like my realme 5 and huwae y9A but its working in xiomi, can you please suggest the solution
Wanderful. but how to get external path when i clicked on item! please and thanks
Will it also show my youtube downloaded internal videos?? From com.google.android.youtube...
TH-cam download video can't be shown in any other application than TH-cam application. It's not allowed. I'm talking about the offline youtube video. Other downloaded videos will be shown by this method.
Friend, could you add a filter of intentions so that the application comes out with other applications when opening it from the option to open with this application and is more complementary?
how to play the videos using an intent to videoplayer
what a job Appreciated ..keep it up bro
the loading of Video files does not work for Android 10 but it does works for android 7.. What could be the reason?. Please update
This applies for only Android 9 and below. Android 10 use requestLegacyExternalStorage will work, but give null exception randomly for each URI (this time run, another time not run), Android 11, of course, will not work. And by the way, this function of recursive will take much time and resource of device, will not suit for reality project!
Do you have any alternative please
5:57 i can't Method.load_Directory_Files
I am having the same problem, please help
You can find it at Method.java. Copy that class too.
Bro how I can sort files by date please help me
How to show video files in folder by folder like Mx Player???? Any help me plzzzz.
I'm planning to do next video on this. Please subscribe and stay tune.
@@learnthroughanimation6924 ok, I am waiting. Thank you
not working for me
Hi Sir Thanks For the Tutorial :)
Nice work bro
Thanks 🔥 Please subscribe the channel, it will mean a lot to me
Thanks for tutorial
sir I get all image path from device following this video but it take more time to show images some time due to our time app has been carshed and some time it show images but after taking more times please help me out
Use Glide library to laod images.
Also if your working on big application use content provider to load files. But Glide will help you a lot.
@@learnthroughanimation6924 i use glide libraries but it still not working
@@learnthroughanimation6924 i work on app in which user can delete the duplicate files from his device
can you send me the code related to this issue please
Very helpful. How to get video file with their respective folder. Exm- all WhatsApp video in only WhatsAppvideo folder.
Bro how to make a popup menu in that image button plzzz make tutorial
Next video is in editing. But if you need it urgent, just search it's so simple. Support my channel by subscription. Thanks for watching.
Sir the StorageUtil is not getting any file for my oneplus 6T please help
The better way to list videos in android is by using media query cursor object. If this method is not working for you then try to implement that.
@@learnthroughanimation6924 thanks brother
@@learnthroughanimation6924 sir, in this cases, you should add this in manifest: android:requestLegacyExternalStorage="true" . its worked for me
bro how load all types of files(pdf,docx,etc....)
You can easily load any file by just doing this
filename.endsWith('extension here').
Try and let me know does it work or not and also please subscribe to my channel.
Part 2) How to show delete popup when click on three-dotted icon: th-cam.com/video/L3gs8uFxLBM/w-d-xo.html
My first application on Play Store. Please check it out. play.google.com/store/apps/details?id=com.kukustudio.kuku
sir, we can display our thumbnail in 17:14 using glide and uri right. But what if I used file like '.txt' and 'docx' instead of video like 'mp4'. How can I display the image of file like that thumbnail? I try to put image in files_list.xml in 12:56 and delete Glide.with(mContext)...... it really display what I want but when i run it, the system become more slow.. like broken app 😂😂😂
I didn't try this out, so not sure. I think for '.txt', '.docx' we can use an icon or an image. There will be no need to display different thumbnails each time. What do you say?
Sir, after installing app recyclerview is not showing. Can u tell the reason?
Sir, please reply to me
Sir please make folder wise load video files.
yes please
Method.load_Directory_Files(directory);
i m getting error in load_Directory_Files what can i do sir
Remove import of method in splashscreen.java
Method is showing error that its not defined
@@sakshirani4632 after removing will it works
its displaying only Hello World, no media files displayed
Never stop it
Thank you so much :)
Working bro thank you
Can we list video files from a specific folder with this method, and great job thank you
Yes we can but this method is not ideal for big projects. There is now better way to do this.
@@learnthroughanimation6924 can you provide me where i can do this with kotlin
@@hishambinawiad2146 Sorry I have not done this in kotlin
how to delete file
How to delete video using storage access framework: th-cam.com/video/L3gs8uFxLBM/w-d-xo.html
@@learnthroughanimation6924 thanks sir
@@rimpidevi3209 Please subscribe my channel.
GitHub Link: github.com/abdullah432/SAFProject.git
Cannot resolve method 'load_Directory_Files' in 'Method'
@@vamsee7875 Clone GitHub code. Hope it will help
Bro my recycler view is lagging as hell. please help me
//Increase Scrolling Performance of recycler view
recyclerView.setHasFixedSize(true);
recyclerView.setItemViewCacheSize(20);
recyclerView.setDrawingCacheEnabled(true);
recyclerView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
recyclerView.setNestedScrollingEnabled(false);
Add these lines of code before following line.
recyclerView.setAdapter(adapter);
This is not the best way. And the best way is using media query object. If you know make a video on that please.
How to fetch data list using media query cursor object?
I know it's not the best way but helpful for small project. I will make video on second way too in future. Thanks for the suggestion.
@@learnthroughanimation6924 hi sir, can I know what is media query object and how to imply it?
wow thank u sir
there is lots of bugs in this code don t wast the time
is this code working in 2020 too?
still working in 2022
there is problem when close the app and reopen it all files are duplicated
I adjusted your code in general and solved the problem
check it out github.com/josefKalash/SAFProject.git
error 404.
For someone with same problem. Add "Constant.allMediaList.clear();" before check file storage