I have just started android app creating about a week ago, I have written an application that can display images from a user's google drive account, however when I load the application it starts at root folder (by default). I need the app to open in a specific folder with the same name across multiple accounts.
For example regardless of the user I want the app to open in their "my pics" folder.
I understand the way to do this is to .setActivityStartFolder(folderID)
However, I don't know how to get the ID of a folder by name. Is there a way to Query and filter down to only folders with that specific name and then get the ID? thanks in advance,
Ross.
For reference here is my activity builder:
IntentSender intentSender = Drive.DriveApi
.newOpenFileActivityBuilder()
//setActivityStartFolder(folderID) NEEDS TO GO HERE?
.setMimeType(new String[]{ "video/mp4", "image/jpeg" })
.build(getGoogleApiClient());