How to load all video files from Internal and External Storage | Part 1 | Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ธ.ค. 2024

ความคิดเห็น •

  • @porimolbacher8229
    @porimolbacher8229 ปีที่แล้ว

    Your learning tricks is very powerful.

  • @jeonginmyeong1543
    @jeonginmyeong1543 3 ปีที่แล้ว +4

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

  • @broletmesnipe4936
    @broletmesnipe4936 4 ปีที่แล้ว +2

    Really Good Tutorial. Loved it!

  • @mohammedkamran8559
    @mohammedkamran8559 3 ปีที่แล้ว +1

    What changes should I make to storageutil so that only the folder I select should be loaded

  • @lazymind2433
    @lazymind2433 4 ปีที่แล้ว +3

    you really deserve a "THANKS" + subscription

  • @shadowthegermanshepherd9839
    @shadowthegermanshepherd9839 4 ปีที่แล้ว +1

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

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว +1

      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.

    • @shadowthegermanshepherd9839
      @shadowthegermanshepherd9839 4 ปีที่แล้ว

      @@learnthroughanimation6924 ok bro
      ..consider it done

    • @shadowthegermanshepherd9839
      @shadowthegermanshepherd9839 4 ปีที่แล้ว

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

  • @musicDreams225
    @musicDreams225 3 ปีที่แล้ว

    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

  • @RelaxingMusic-md6vk
    @RelaxingMusic-md6vk 4 ปีที่แล้ว +1

    Wanderful. but how to get external path when i clicked on item! please and thanks

  • @shouryashukla2000
    @shouryashukla2000 4 ปีที่แล้ว +1

    Will it also show my youtube downloaded internal videos?? From com.google.android.youtube...

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      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.

  • @roboticsmex7896
    @roboticsmex7896 4 ปีที่แล้ว +1

    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?

  • @ShahrukhKhan32802
    @ShahrukhKhan32802 4 ปีที่แล้ว +1

    how to play the videos using an intent to videoplayer

  • @zeeshanhabib1355
    @zeeshanhabib1355 4 ปีที่แล้ว

    what a job Appreciated ..keep it up bro

  • @sat_talk
    @sat_talk 3 ปีที่แล้ว

    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

  • @aliasstudio4077
    @aliasstudio4077 3 ปีที่แล้ว

    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!

    • @gtxprime
      @gtxprime 2 ปีที่แล้ว

      Do you have any alternative please

  • @taivan9450
    @taivan9450 4 ปีที่แล้ว +2

    5:57 i can't Method.load_Directory_Files

    • @nandinirai1766
      @nandinirai1766 3 ปีที่แล้ว

      I am having the same problem, please help

    • @ericquestmiduk9028
      @ericquestmiduk9028 3 ปีที่แล้ว

      You can find it at Method.java. Copy that class too.

  • @gtxprime
    @gtxprime 2 ปีที่แล้ว

    Bro how I can sort files by date please help me

  • @arbajraza637
    @arbajraza637 4 ปีที่แล้ว +1

    How to show video files in folder by folder like Mx Player???? Any help me plzzzz.

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      I'm planning to do next video on this. Please subscribe and stay tune.

    • @arbajraza637
      @arbajraza637 4 ปีที่แล้ว

      @@learnthroughanimation6924 ok, I am waiting. Thank you

  • @dmnjeetsingh1
    @dmnjeetsingh1 2 ปีที่แล้ว

    not working for me

  • @benjaminjr.togonon3827
    @benjaminjr.togonon3827 4 ปีที่แล้ว +1

    Hi Sir Thanks For the Tutorial :)

  • @ParthTagalpallewar
    @ParthTagalpallewar 4 ปีที่แล้ว +1

    Nice work bro

  • @mystuf1980
    @mystuf1980 5 ปีที่แล้ว +2

    Thanks for tutorial

  • @zeeshanhabib1355
    @zeeshanhabib1355 4 ปีที่แล้ว

    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

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      Use Glide library to laod images.

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      Also if your working on big application use content provider to load files. But Glide will help you a lot.

    • @zeeshanhabib1355
      @zeeshanhabib1355 4 ปีที่แล้ว

      @@learnthroughanimation6924 i use glide libraries but it still not working

    • @zeeshanhabib1355
      @zeeshanhabib1355 4 ปีที่แล้ว

      @@learnthroughanimation6924 i work on app in which user can delete the duplicate files from his device

    • @zeeshanhabib1355
      @zeeshanhabib1355 4 ปีที่แล้ว

      can you send me the code related to this issue please

  • @sutanurath1779
    @sutanurath1779 3 ปีที่แล้ว

    Very helpful. How to get video file with their respective folder. Exm- all WhatsApp video in only WhatsAppvideo folder.

  • @VinitPayalmusic
    @VinitPayalmusic 5 ปีที่แล้ว +1

    Bro how to make a popup menu in that image button plzzz make tutorial

    • @learnthroughanimation6924
      @learnthroughanimation6924  5 ปีที่แล้ว +1

      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.

  • @makg7
    @makg7 4 ปีที่แล้ว

    Sir the StorageUtil is not getting any file for my oneplus 6T please help

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      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.

    • @makg7
      @makg7 4 ปีที่แล้ว

      @@learnthroughanimation6924 thanks brother

    • @ThangLe-gx1ih
      @ThangLe-gx1ih 4 ปีที่แล้ว +1

      @@learnthroughanimation6924 sir, in this cases, you should add this in manifest: android:requestLegacyExternalStorage="true" . its worked for me

  • @vijikarthik809
    @vijikarthik809 4 ปีที่แล้ว +1

    bro how load all types of files(pdf,docx,etc....)

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      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.

  • @learnthroughanimation6924
    @learnthroughanimation6924  4 ปีที่แล้ว

    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

  • @ainanabilah2221
    @ainanabilah2221 4 ปีที่แล้ว

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

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว +1

      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?

  • @sakshirani4632
    @sakshirani4632 4 ปีที่แล้ว

    Sir, after installing app recyclerview is not showing. Can u tell the reason?

  • @adityaroy1851
    @adityaroy1851 4 ปีที่แล้ว +1

    Sir please make folder wise load video files.

  • @filmyzone778
    @filmyzone778 4 ปีที่แล้ว

    Method.load_Directory_Files(directory);
    i m getting error in load_Directory_Files what can i do sir

    • @sakshirani4632
      @sakshirani4632 4 ปีที่แล้ว

      Remove import of method in splashscreen.java

    • @nandinirai1766
      @nandinirai1766 3 ปีที่แล้ว

      Method is showing error that its not defined

    • @dmnjeetsingh1
      @dmnjeetsingh1 2 ปีที่แล้ว

      @@sakshirani4632 after removing will it works

  • @vijikarthik809
    @vijikarthik809 4 ปีที่แล้ว

    its displaying only Hello World, no media files displayed

  • @ParthTagalpallewar
    @ParthTagalpallewar 4 ปีที่แล้ว +1

    Never stop it

  • @AlovuddinKambarov
    @AlovuddinKambarov 2 ปีที่แล้ว

    Thank you so much :)

  • @chennurugurusankar2955
    @chennurugurusankar2955 3 ปีที่แล้ว

    Working bro thank you

  • @simomoumma2101
    @simomoumma2101 4 ปีที่แล้ว

    Can we list video files from a specific folder with this method, and great job thank you

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      Yes we can but this method is not ideal for big projects. There is now better way to do this.

    • @hishambinawiad2146
      @hishambinawiad2146 4 ปีที่แล้ว

      @@learnthroughanimation6924 can you provide me where i can do this with kotlin

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว +1

      @@hishambinawiad2146 Sorry I have not done this in kotlin

  • @rimpidevi3209
    @rimpidevi3209 4 ปีที่แล้ว +1

    how to delete file

  • @learnthroughanimation6924
    @learnthroughanimation6924  5 ปีที่แล้ว +2

    GitHub Link: github.com/abdullah432/SAFProject.git

    • @vamsee7875
      @vamsee7875 4 ปีที่แล้ว +1

      Cannot resolve method 'load_Directory_Files' in 'Method'

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว +1

      @@vamsee7875 Clone GitHub code. Hope it will help

  • @VinitPayalmusic
    @VinitPayalmusic 5 ปีที่แล้ว

    Bro my recycler view is lagging as hell. please help me

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว +2

      //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);

  • @AnTechByNirwal
    @AnTechByNirwal 4 ปีที่แล้ว +1

    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?

    • @learnthroughanimation6924
      @learnthroughanimation6924  4 ปีที่แล้ว

      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.

    • @ainanabilah2221
      @ainanabilah2221 4 ปีที่แล้ว

      @@learnthroughanimation6924 hi sir, can I know what is media query object and how to imply it?

  • @niqabiansGallery
    @niqabiansGallery 4 ปีที่แล้ว

    wow thank u sir

  • @acmartial
    @acmartial 2 ปีที่แล้ว

    there is lots of bugs in this code don t wast the time

  • @jayeshseth
    @jayeshseth 4 ปีที่แล้ว

    is this code working in 2020 too?

  • @joekal2240
    @joekal2240 4 ปีที่แล้ว +1

    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

    • @RafaelMascarenhasCosta
      @RafaelMascarenhasCosta 2 ปีที่แล้ว

      error 404.
      For someone with same problem. Add "Constant.allMediaList.clear();" before check file storage