I am using the Google Drive SDK to create spreadsheets with this code:
File body = new File();
body.setTitle(title);
body.setMimeType("application/vnd.google-apps.spreadsheet");
body.setParents(Arrays.asList(new ParentReference().setId(currentParent)));
File file = driveHelper.getDrive().files().insert(body).execute();
Is there a way to get a specific spreadsheet created with the Drive SDK using Googles Spreadsheet API? I have many spreadsheets with the same name in different folders and when I am looping through all spreadsheets I don't want to compare the titles to get a specific spreadsheet.