I am working on an android application in which user will open file manager on a button click to select file either from Internal memory or Sdcard. My code is working fine on some smartphones but not on all .if anyone knows how to open a file manager programatically which works on all smartphones fine please help me.
Below is my code for opening file manager
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("/*");
Intent i = Intent.createChooser(intent, "Select File");
startActivityForResult(intent, RESULT_code);