How to open the My Files folder in Android Programatically (using Intent)?

后端 未结 6 689
说谎
说谎 2020-12-28 22:30

I am using the below code which opens up the Gallery, Music Player, Dropbox and Contacts, i want the My Files folder to get open programatically, please let me know if there

6条回答
  •  一整个雨季
    2020-12-28 23:19

    You can use this code to file the files.

    int PICKFILE_RESULT_CODE=1;            
    Intent intent = new Intent(Intent.ACTION_GET_CONTENT);                 
    intent.setType("file/*");              
    startActivityForResult(intent,PICKFILE_RESULT_CODE);
    

    this will help you to browse the files from your storage.

提交回复
热议问题