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

后端 未结 6 688
说谎
说谎 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:24

    try this below code. if any file manager available , then it will pop up in a form of menu to choose appropriate for the user.

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

提交回复
热议问题