mFileId = (DriveId) data.getParcelableExtra(
OpenFileActivityBuilder.EXTRA_RESPONSE_DRIVE_ID);
Log.e("file id", mFileId.getResourceId() + "");
DriveFile file = mFileId.asDriveFile();
try {
results = file.open(mGoogleApiClient, DriveFile.MODE_READ_ONLY, null).await();//this is to return a driveContent object
DriveContents contents = results.getDriveContents();
This is the error it gives when that file should be opened in readonly mode, but the file is already open in readonly mode
InputStream in=contents.getInputStream();