Official Android SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
When the Google drive app is allowed to get images from the camera we are able to see that google drive images in Gallery.
The problem occurs in FilesUtils.java class
public static TypedFile getTypedFileFromUri(Context context, Uri uri) {
String mimetype;
if("content".equalsIgnoreCase(uri.getScheme())) {
...
File file = new File(path); // here the file will be nil, as the returned path being = null
The biggest problem resides in getPath. In
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
there is no option for check against com.google.android.apps.docs and in this way null is returned, giving an error when retrieving a path to the file from the provided URI
When the Google drive app is allowed to get images from the camera we are able to see that google drive images in Gallery.
The problem occurs in FilesUtils.java class
The biggest problem resides in getPath. In
there is no option for check against com.google.android.apps.docs and in this way null is returned, giving an error when retrieving a path to the file from the provided URI