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 are any specific intent parameters i need to pass to get the File Manager open.
if it is not possible through intent then please give me a snippet or an hint to open the My Files folder programatically.
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
Intent i = Intent.createChooser(intent, "View Default File Manager");
startActivityForResult(i, CHOOSE_FILE_REQUESTCODE);
Thanks.
If you want to open samsung My Files application try this below code.
You can use this code to file the files.
this will help you to browse the files from your storage.
Its best that you include a library in your project which handles this scenario.
This worked for me:
This library shows the list of third-party apps. It also has its own file browser for selecting files.
You have to specifically mention the package name of the explorer application. Please find the example below to open a specific folder in ES Explorer.
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.
Bad thing is, most Android distributions may or may not ship with a file manager, and even so, may be not with the one which handles
CHOOSE_FILE_REQUESTCODE
.So, you are left to create your own file picker activity. Luckily there are many ready made ones available:
http://code.google.com/p/android-filechooser/
https://developers.inkfilepicker.com/docs/android/