Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
- {
- if (requestCode != INPUT_FILE_REQUEST_CODE || mFilePathCallback == null)
- {
- super.onActivityResult(requestCode, resultCode, data);
- return;
- }
- Uri[] results = null;
- if (resultCode == RESULT_OK && requestCode == INPUT_FILE_REQUEST_CODE)
- {
- if (data == null)
- {
- Log.e(TAG, "DEZE ?!");
- if (mCameraPhotoPath != null)
- {
- results = new Uri[]{Uri.parse(mCameraPhotoPath)};
- }
- }
- else
- {
- Log.e(TAG, "DEZE 6");
- String dataString = data.getDataString();
- Log.e(TAG, ""+data.toString());
- if (dataString != null)
- {
- Log.e(TAG, "DEZE 7");
- results = new Uri[]{Uri.parse(dataString)};
- }
- }
- }
- mFilePathCallback.onReceiveValue(results);
- mFilePathCallback = null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement