You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks a lot for sharing the solution regarding opening files on Android. It helped me a lot. I found a solution which works at least for me regarding opening files on external drive (SD card, USB stick etc.). Please have a look my changed code in QSharePathResolver.java
if (isExternalStorageDocument(uri)) {
Log.d("Muzika"," isExternalStorageDocument");
final String docId = DocumentsContract.getDocumentId(uri);
final String[] split = docId.split(":");
final String type = split[0];
Log.d("Muzika","Storage type: "+type+" ,"+split[1]);
if ("primary".equalsIgnoreCase(type)) {
return Environment.getExternalStorageDirectory() + "/" + split[1];
}
else {
return "/storage/"+type+"/"+split[1];
}
}
Is there a problem with this solution? Unfortunately I don't have enough devices to test it generally.
The text was updated successfully, but these errors were encountered:
Thanks a lot for sharing the solution regarding opening files on Android. It helped me a lot. I found a solution which works at least for me regarding opening files on external drive (SD card, USB stick etc.). Please have a look my changed code in QSharePathResolver.java
Is there a problem with this solution? Unfortunately I don't have enough devices to test it generally.
The text was updated successfully, but these errors were encountered: